logo       


Re: ViewVC cannot find svn python bindings, however subversion-python is : msg#00032

Subject: Re: ViewVC cannot find svn python bindings, however subversion-python is installed correctly...
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

Attachment: signature.asc
Description: OpenPGP digital signature

Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe