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

subversion-python rpm doesn't install Python bindings?

From: Colvin, Joshua <jcolvin_at_sfwmd.gov>
Date: 2007-03-14 18:46:31 CET

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

 

 
Received on Wed Mar 14 18:47:43 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.