logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

ViewCVS and Subversion: msg#00044

version-control.cvs.viewcvs.user

Subject: ViewCVS and Subversion

I've seen several posts about ViewCVS and Subversion, but I haven't been able to get ViewCVS here at work to talk to our Subversion repository. When I try to access ViewCVS, I get the following error:


An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/data/www/admin/viewcvs/lib/viewcvs.py", line 2468, in main
request.run_viewcvs()
File "/data/www/admin/viewcvs/lib/viewcvs.py", line 256, in run_viewcvs
import vclib.svn
File "/data/www/admin/viewcvs/lib/vclib/svn/__init__.py", line 27, in ?
from svn import fs, repos, core, delta
ImportError: No module named svn


I Googled this error and found the following post (to this mailing list):

http://mailman.lyra.org/pipermail/viewcvs/2003q1/001734.html

The poster recommends installing Swig 1.3.16 or greater (I checked, we have 1.3.19 installed), and compiling Subversion SWIG Python bindings, which I told configure to do. When I built Subversion, I used the following configure string:

./configure --with-apxs="/opt/apache2/bin/apxs" --with-ssl --prefix="/opt/subversion" \
--enable-swig-bindings=python

Doing "find /opt/subversion | grep py" yields:

/opt/subversion/lib/libsvn_swig_py-1.so.0.0.0
/opt/subversion/lib/libsvn_swig_py-1.so.0
/opt/subversion/lib/libsvn_swig_py-1.so
/opt/subversion/lib/libsvn_swig_py-1.la
/opt/subversion/lib/libsvn_swig_py-1.a

...so it's obvious that some Swig/Python-related libraries are being built. But curiously enough I don't see any actual ".py" files, which I assume are necessary for the python bindings to be seen by python applicaton. They can't just read .so files directly, right? I may be incorrect in this assumption (I'm not well-versed in Python).

I also thought that maybe installing Subversion to the nonstandard prefix "/opt/subversion" might mean that I need to alter the PYTHONPATH environment variable; but adding "/opt/subversion/lib" to this variable didn't seem to help the situation.

Can someone shed some insight into why python is unable to see these bindings?

Thanks in advance!

Jeremy


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
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

Navigation