
vpaziran at gmail
Feb 3, 2007, 7:27 PM
Post #8 of 8
(6102 views)
Permalink
|
Another possible solution... Are you getting: TracError: Unsupported version control system "svn" ??? Or how about: ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context ? If you are getting the first error mentioned, go to the command prompt and type: python -c 'from svn import fs' Well, it took me several hours of pain to figure out a solution. So I've decided to reply to every thread in the Trac mailing list so that others will be sure to stumble upon a (possible) answer. I installed Trac 0.10.3 on RHEL4. Here's the site that cured my pain: http://www.liucougar.net/blog/ archives/53/ Basically, recompile subversion but edit the Makefile so that neon will explicitly link against gssapi lib: vi subversion-1.4.2/Makefile old: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm - lcrypt -lnsl -lpthread -ldl new: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm - lcrypt -lnsl -lpthread -ldl -lgssapi then compile + install again. You can always not compile neon, but don't you want to browse your code online? ;-) Btw, if you apply the above solution but get the new error: ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No such file or directory Then just reboot your box. Something is cached and needs to be restarted. keywords: red hat enterprise linux 4, rhel4, rhel, trac, subversion, rpm, source code, more keywords: see also: http://trac.edgewall.org/ticket/3706?format=rss http://trac.edgewall.org/ticket/3706 http://pacopablo.com/irclogs/2007/01/28 2007-02-02 18:29:45,878 Trac[main] ERROR: Unsupported version control system "svn" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request self.get_repository(req.authname) # triggers a sync if applicable File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 91, in get_repository raise TracError('Unsupported version control system "%s"' TracError: Unsupported version control system "svn" Python 2.4.4 (#1, Feb 2 2007, 16:33:34) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import svn >>> from svn import fs Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/svn-python/svn/fs.py", line 19, in ? from libsvn.fs import * File "/usr/local/lib/svn-python/libsvn/fs.py", line 5, in ? import _fs ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context >>> ------------------------------------------------------------ Quick-and-dirty notes on installing Trac from source code... ------------------------------------------------------------ [installed on RHEL4 - Nahant] wget http://mirror.x10.com/mirror/apache/httpd/httpd-2.0.59.tar.gz ./configure --enable-dav --enable-so --enable-maintainer-mode -- prefix=/usr/local/apache2 && make && make install wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz ./configure --prefix=/usr && make && make install # no need to get swig - subversion-1.4 have the wrappers in its own code #wget 'http://downloads.sourceforge.net/swig/swig-1.3.25.tar.gz? modtime=1118577644&big_mirror=0' #./configure --prefix=/usr/local && make && make install wget http://subversion.tigris.org/downloads/subversion-1.4.2.tar.gz wget http://subversion.tigris.org/downloads/subversion- deps-1.4.2.tar.gz sh autogen.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/ local && make && make install make swig-py && make install-swig-py ls /usr/local/lib/svn-python # you should see "svn" and "libsvn" dirs here echo /usr/local/lib/svn-python > /usr/lib/python2.4/site-packages/ subversion.pth wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz ./configure && make && make install wget http://peak.telecommunity.com/dist/ez_setup.py python2.4 ez_setup.py wget http://docutils.sourceforge.net/docutils-snapshot.tgz python2.4 setup.py build python2.4 setup.py install wget http://www.iki.fi/mtr/genscript/enscript-1.6.4.tar.gz ./configure --prefix=/usr/local && make && make install wget http://mirror.olnevhost.net/pub/apache/httpd/modpython/ mod_python-3.2.10.tgz ./configure --with-apxs=/usr/local/apache2/bin/apxs && make && make install wget http://www.sqlite.org/sqlite-3.3.11.tar.gz ./configure --prefix=/usr/local && make && make install wget http://initd.org/pub/software/pysqlite/releases/2.3/2.3.3/ pysqlite-2.3.3.tar.gz python2.4 setup.py build python2.4 setup.py install wget http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz python2.4 setup.py build python2.4 setup.py install On Dec 7 2006, 11:04 pm, "ajp" <theaj...@gmail.com> wrote: > Hey people, > > So it appeared I had the same problem. But after I compiled neon myself > and svn (again) i still had the same problem. in python i could import > svn but not svn.repos. It said it missed a lib. So then I noticed that > python's site-packages were installed in /usr/lib and py-swig libs and > svn libs were all installed in /usr/local/lib so I coppied *svn* to > /usr/lib and restarted apache and it worked :) > > greetz ajp > > Christian Billen wrote: > > Fantastic, following your instructions worked beautifully. > > > I built neon with this config > > ./configure --with-ssl -with-zlib --enable-shared --enable-static > > make > > make install > > > And after that subversion built without a problem and all is working > > > Thank you! > > C > > > On 11/3/06 1:53 PM, "Garrett McGrath" <gmcgrath...@gmail.com> wrote: > > > > It means your svn Python bindings are broken in some way or another, the > > > problem is this never manifests quiet the same on each machine. It could also > > > mean that Neon (a SVN dependancy) isn't built correctly. My recommendation. > > > Find your neon install ( i can almost guarantee it's inside the src folder for > > > your svn install) and rename the folder. Go into that folder and build new > > > using the shared and static enables, also make sure that neon is built against > > > ssl. This will prevent svn from building neon when it gets built. Then > > > rebuild your svn by first doing a make clean and make clean-swig-py. run > > > ./configure (with any flags you want) do a make && make swig-py. then do a > > > make install && make install-swig-py. That should help get you on your way. > > > > As an asside ensure that the versions of apr and apr-util that svn is building > > > against are correct and are infact the apache 2.2.3 ones (version1.2.7 not > > > 0.9.3 which is what svn comes with) I can almost guarantee that svn is > > > building those as well if you've unpacked the dependancies (so rename them too > > > and track down apr-config and apu-config and make sure they are the right > > > versions. apache 2.2.3 built those as apr-1-config and apu-1-config on my > > >systemso be careful.) > > > > I've actually written a bit about this on the svn mailing list because it took > > > me so long to fix, you can check there for more details (sorry I don't have a > > > link off hand.) > > > > On 11/3/06, Christian Billen <cbil...@warmlyyours.com> wrote: > > >> Ah, looks like we're on to something: > > > >> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) > > >> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2 > > >> Type "help", "copyright", "credits" or "license" for more information. > > >>>>> >>> import svn.repos > > >> Traceback (most recent call last): > > >> File "<stdin>", line 1, in ? > > >> File "svn/repos.py", line 19, in ? > > >> from libsvn.repos import * > > >> File "libsvn/repos.py", line 5, in ? > > >> import _repos > > >> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: > > >> SSL_shutdown > > > >> What it means I am not sure yet but I'm sure you guys do :) > > > >> C > > > >> On 11/3/06 1:29 PM, "Garrett McGrath" < gmcgrath...@gmail.com > > >> <mailto:gmcgrath...@gmail.com> > wrote: > > > >>> in python do this command: > > >>> import svn.repos > > > >>> What do you get out? > > > >>> On 11/3/06, Christian Billen < cbil...@warmlyyours.com > > >>> <mailto:cbil...@warmlyyours.com> > wrote: > > > >>>> Good afternoon, > > > >>>> I am getting "Unsupportedversioncontrolsystem"svn" when trying to > > >>>> access > > >>>> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10, > > >>>> SVN 1.4 on apache 2.2.3 via mod_python. > > > >>>> I have compiled subversion and the python bindings as such: > > > >>>> ./configure --with-apr=/usr/local/apache2 > > >>>> --with-apr-util=/usr/local/apache2 > > >>>> --with-ssl --with-swig > > > >>>> --with-neon=/us > > >>>> make > > >>>> make swig-py > > >>>> make install > > >>>> make install-swig-py > > > >>>> The above steps complete successfully > > > >>>> Finally I copied the libsvn and svn folder that were installed to > > >>>> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages > > > >>>> I can start python and do import svn without errors. > > > >>>> However trac does not seem to think so. > > > >>>> Internal Error > > > >>>> Ticket changes event provider (TicketModule) failed: > > > >>>> TracError:Unsupportedversioncontrolsystem"svn" > > > >>>> You may want to see the other kind of events from the Timeline > > > >>>> I can only see Milestones and WikiChanges, Ticket and Repository fails with > > >>>> the same error. > > > >>>> When I do browse source I see the same error "Unsupportedversioncontrol > > >>>>systemsvn" > > > >>>> Is there a step I am missing? > > > >>>> Thank you > > > --B_3245410449_7240076 > > Content-Type: text/html > > Content-Transfer-Encoding: quoted-printable > > X-Google-AttachSize: 5525 > > > <HTML> > > <HEAD> > > <TITLE>Re: [Trac] Re: Issue with svn bindings</TITLE> > > </HEAD> > > <BODY> > > <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Fantastic, following your instructions worked beautifully.<BR> > > <BR> > > I built neon with this config<BR> > > =2E/configure --with-ssl -with-zlib --enable-shared --enable-static<BR> > > make<BR> > > make install<BR> > > <BR> > > And after that subversion built without a problem and all is working<BR> > > <BR> > > Thank you!<BR> > > C<BR> > > <BR> > > On 11/3/06 1:53 PM, "Garrett McGrath" <gmcgrath...@gmail.com> wrote:<BR> > > <BR> > > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>It means your svn Python bindings are broken in some way or another, the problem is this never manifests quiet the same on each machine. It could also mean that Neon (a SVN dependancy) isn't built correctly. My recommendation. Find your neon install ( i can almost guarantee it's inside the src folder for your svn install) and rename the folder. Go into that folder and build new using the shared and static enables, also make sure that neon is built against ssl. This will prevent svn from building neon when it gets built. Then rebuild your svn by first doing a make clean and make clean-swig-py. run ./configure (with any flags you want) do a make && make swig-py. then do a make install && make install-swig-py. That should help get you on your way. <BR> > > <BR> > > As an asside ensure that the versions of apr and apr-util that svn is building against are correct and are infact the apache 2.2.3 ones (version1.2.7 not 0.9.3 which is what svn comes with) I can almost guarantee that svn is building those as well if you've unpacked the dependancies (so rename them too and track down apr-config and apu-config and make sure they are the right versions. apache 2.2.3 built those as apr-1-config and apu-1-config on mysystemso be careful.)<BR> > > <BR> > > I've actually written a bit about this on the svn mailing list because it took me so long to fix, you can check there for more details (sorry I don't have a link off hand.)<BR> > > <BR> > > <BR> > > On 11/3/06, <B>Christian Billen</B> <cbil...@warmlyyours.com> wrote: <BR> > > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Ah, looks like we're on to something:<BR> > > <BR> > > Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) <BR> > > [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2<BR> > > Type "help", "copyright", "credits" or "license" for more information.<BR> > > >>> import svn.repos<BR> > > Traceback (most recent call last):<BR> > > File "<stdin>", line 1, in ? <BR> > > File "svn/repos.py", line 19, in ?<BR> > > from libsvn.repos import *<BR> > > File "libsvn/repos.py", line 5, in ?<BR> > > import _repos<BR> > > ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: SSL_shutdown <BR> > > >>> <BR> > > <BR> > > What it means I am not sure yet but I'm sure you guys do :)<BR> > > <BR> > > C <BR> > > <BR> > > <BR> > > <BR> > > On 11/3/06 1:29 PM, "Garrett McGrath" < gmcgrath...@gmail.com <a href=3D"mailto:gmcgrath...@gmail.com"><mailto:gmcgrath...@gmail.com></a> > wrote:<BR> > > <BR> > > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>in python do this command:<BR> > > import svn.repos<BR> > > <BR> > > What do you get out?<BR> > > <BR> > > <BR> > > On 11/3/06, <B>Christian Billen</B> < cbil...@warmlyyours.com <a href=3D"mailto:cbil...@warmlyyours.com"><mailto:cbil...@warmlyyours.com></a> > wrote: <BR> > > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR> > > Good afternoon,<BR> > > <BR> > > I am getting "Unsupportedversioncontrolsystem"svn" when trying to access <BR> > > the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,<BR> > > SVN 1.4 on apache 2.2.3 via mod_python.<BR> > > <BR> > > I have compiled subversion and the python bindings as such:<BR> > > <BR> > > =2E/configure --with-apr=3D/usr/local/apache2 --with-apr-util=3D/usr/local/apache2 <BR> > > --with-ssl --with-swig<BR> > > <BR> > > --with-neon=3D/us<BR> > > make<BR> > > make swig-py<BR> > > make install<BR> > > make install-swig-py<BR> > > <BR> > > The above steps complete successfully<BR> > > <BR> > > Finally I copied the libsvn and svn folder that were installed to <BR> > > /usr/local/lib/svn-python to /usr/local/python2.4/site-packages<BR> > > <BR> > > I can start python and do import svn without errors.<BR> > > <BR> > > However trac does not seem to think so.<BR> > > <BR> > > Internal Error<BR> > > <BR> > > Ticket changes event provider (TicketModule) failed: <BR> > > <BR> > > TracError: > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users[at]googlegroups.com To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|