Colvin, Joshua wrote:
>
> Hello all,
>
> SVN is working great after installing the below on RHEL 4:
>
> subversion-tools-1.4.2-1
>
> subversion-1.4.2-1
>
> subversion-perl-1.4.2-1
>
> subversion-python-1.4.2-1
>
> When using ViewVC, however, I get Python errors that indicate I have
> Python binding problems. The errors are:
>
>
>
> Traceback (most recent call last):
>
> File "/opt/web/viewvc-1.0.3/lib/viewvc.py", line 3629, in main
>
> request.run_viewvc()
>
> File "/opt/web/viewvc-1.0.3/lib/viewvc.py", line 253, in run_viewvc
>
> import vclib.svn
>
> File "/opt/web/viewvc-1.0.3/lib/vclib/svn/__init__.py", line 25, in ?
>
> from svn import fs, repos, core, delta
>
> File "/usr/lib/svn-python/svn/fs.py", line 19, in ?
>
> File "/usr/lib/svn-python/libsvn/fs.py", line 5, in ?
>
> ImportError: /usr/lib/python2.3/site-packages/libsvn/_fs.so: cannot
> open shared object file: No such file or directory
>
>
>
> subversion-python did install its files where it says it would:
> /usr/lib/python2.3/site-packages/svn and
>
> /usr/lib/python2.3/site-packages/libsvn (all the files are there), and
> in "import", listing sys.path shows python is
>
> looking there:
>
>
>
> >>> import sys
>
> >>> sys.path
>
> ['', '/usr/lib64/python23.zip', '/usr/lib64/python2.3',
> '/usr/lib64/python2.3/plat-linux2', '/usr/lib64/python2.3/lib-tk',
> '/usr/lib64/python2.3/lib-dynload',
> '/usr/lib64/python2.3/site-packages',
> '/usr/lib64/python2.3/site-packages/gtk-2.0',
> '/usr/lib/python2.3/site-packages']
>
> >>>
>
>
>
> I don't know why the above callback shows /usr/lib/svn-python, however
> I manually created a directory
>
> /usr/lib/svn-python with symlinks therein to svn and libsvn, and when
> I did that, the errors changes to:
>
>
>
> Traceback (most recent call last):
>
> File "/opt/web/viewvc-1.0.3/lib/viewvc.py", line 3629, in main
>
> request.run_viewvc()
>
> File "/opt/web/viewvc-1.0.3/lib/viewvc.py", line 253, in run_viewvc
>
> import vclib.svn
>
> File "/opt/web/viewvc-1.0.3/lib/vclib/svn/__init__.py", line 25, in ?
>
> from svn import fs, repos, core, delta
>
> File "/usr/lib/svn-python/svn/fs.py", line 19, in ?
>
> from libsvn.fs import *
>
> File "/usr/lib/svn-python/libsvn/fs.py", line 5, in ?
>
> import _fs
>
> ImportError: /usr/lib/python2.3/site-packages/libsvn/_fs.so: cannot
> open shared object file: No such file or directory
>
>
>
> and using "python" I get:
>
>
>
> >>> import svn.repos
>
> Traceback (most recent call last):
>
> File "<stdin>", line 1, in ?
>
> File "/usr/lib/svn-python/svn/repos.py", line 19, in ?
>
> from libsvn.repos import *
>
> File "/usr/lib/svn-python/libsvn/repos.py", line 5, in ?
>
> import _repos
>
> ImportError: /usr/lib/python2.3/site-packages/libsvn/_repos.so: cannot
> open shared object file: No such file or directory
>
> >>> quit
>
> 'Use Ctrl-D (i.e. EOF) to exit.'
>
> >>>
>
> [root@pcluster1 svn]# ls -l
> /usr/lib/python2.3/site-packages/libsvn/_repos.so
>
> -rwxr-xr-x 1 root root 150500 Nov 5 17:36
> /usr/lib/python2.3/site-packages/libsvn/_repos.so
>
> [root@pcluster1 svn]#
>
>
>
>
>
> Must I compile from source? If so, what good is subversion-python?
>
>
>
> Thanks in advance,
>
> Josh
>
>
>
>
>
I'm wondering if you have a problem with the install? I have rhel4 box
here, but I'm using the rpms from redhat ,1.3.2. But from what they
tell me, those shared objects are part of the subversion package:
$ rpm -q --whatprovides /usr/lib/python2.3/site-packages/libsvn/_repos.so
subversion-1.3.2-0.1.el4.rf
rpm -q --whatprovides /usr/lib/python2.3/site-packages/libsvn
subversion-1.3.2-0.1.el4.rf
I'm wondering if you might have some version conflicts?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 15 07:39:38 2007