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
This would seem to indicate the platform-specific compiled portions of
the Subversion bindings are missing, but later you demonstrate that
they are not. Interesting...
> 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,
When you build Subversion's bindings from source, that's the default
location for them. But if you haven't built from source, then what's
making Python look there for Subversion bindings?
What happens if you try running 'python -v', then doing the typical
'from svn import repos' statement?
> Must I compile from source? If so, what good is subversion-python?
*If* you must compile from source, I daresay subversion-python is good
for nothing. But let's see if there's not something else getting in
the way before making that judgment.
--
C. Michael Pilato <cmpilato@xxxxxxxxxx>
CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
Description: OpenPGP digital signature
|