[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Trouble with Python bindings while using ViewVC

From: <christofhamm-lists_at_yahoo.com>
Date: 2007-01-24 21:10:11 CET

I am trying to get ViewVC working but I believe I have
something wrong
in my config/build/installation of the Subversion
python bindings themselves.
When I click on a repository listed on the main page
of ViewVC
on my server I receive the following error trace with
the interesting part being the last line:

An Exception Has Occurred
Python Traceback

Traceback (most recent call last):
  File "/usr/local/viewvc/lib/viewvc.py", line 3629,
in main
  File "/usr/local/viewvc/lib/viewvc.py", line 253, in
    import vclib.svn
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py",
line 25, in ?
    from svn import fs, repos, core, delta
  File "/usr/local/lib/svn-python/svn/fs.py", line 19,
in ?
    from libsvn.fs import *
  File "/usr/local/lib/svn-python/libsvn/fs.py", line
7, in ?
    import _fs
ImportError: /usr/local/lib/svn-python/libsvn/_fs.so:
    undefined symbol: apr_hash_set


Note: after installing the python bindings into the
python module
directory, python initially complained that it coudn't
find '_fs'.
To remedy this, I made symbolic links in 'libsvn' to
all the modules
with underscore prefixes but not extensions
(such as: _core, _fs, _delta, etc.).


My system configuration is as follows:
Apache 2.0.59 (built from source)
Subversion 1.4.2 (built from source)
Swig 1.3.31 (build from source)
ViewVC 1.0.3

My 'configure' command for Subversion was as follows:

./configure --without-berkeley-db \
--with-apxs=/usr/local/apache2/bin/apxs \
--with-apr=/usr/local/apache2 \
--with-apr-util=/usr/local/apache2 \
--with-ssl \
--with-zlib \

I took the following steps to install:
sudo make install
make swig-py

## BTW: 'make check-swig-py' fails with a python error

## of "ImportError: No module named _core"

sudo make install-swig-py
sudo cp -R /usr/local/lib/svn-python/* /usr/lib/python
# Added symlinks in 'libsvn' similar to 'ln -s _core

Any ideas? Anyone seen this before?

Christof Hamm

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 24 23:35:51 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.