Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Yet another 'Unsupported version control system "svn"' post

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


mail at paulhart

Jan 19, 2007, 6:09 AM

Post #1 of 6 (1645 views)
Permalink
Yet another 'Unsupported version control system "svn"' post

Hi all, it's this old chestnut again. I've got what I believe is a
slightly different take on it though.

OS: OpenBSD 4.0
SVN: 1.4.2
Python: 2.4.3
Trac: 0.10.3
Swig: 1.3.24
Neon: 0.24.7

I installed python, neon and swig from the OpenBSD packages system. I
manually compiled SVN (and Apache2) with:

export LDFLAGS=/usr/local/lib
export APACHEBIN=/usr/local/apache2/bin
./configure --with-neon=/usr/local \
--with-apxs=$APACHEBIN/apxs \
--with-apr=$APACHEBIN/apr-1-config \
--with-apr-util=$APACHEBIN/apu-1-config \
--with-ssl --with-zlib \
--with-berkeley-db
make && make install
make swig-py
make install-swig-py
cd /usr/local/lib/python2.4/site-packages
ln -s /usr/local/lib/svn-python svn-python
ln -s /usr/local/lib/svn-python/svn svn
ln -s /usr/local/lib/svn-python/libsvn libsvn

If I go to the python console, I can do this:

Python 2.4.3 (#1, Aug 31 2006, 18:24:01)
[GCC 3.3.5 (propolice)] on openbsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn
>>>

i.e. No errors. However, when I use trac-admin to create a new
environment, I get a warning that the svn bindings are missing, and
then I get the classic "Unsupported version control system" message
when I use tracd. BTW, this worked when I initially installed
everything, then I (foolishly?) rebooted the machine.

Any ideas on why trac isn't seeing my (apparently correctly installed)
bindings?

Many thanks,

Paul


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cboos at neuf

Jan 19, 2007, 6:21 AM

Post #2 of 6 (1524 views)
Permalink
Re: Yet another 'Unsupported version control system "svn"' post [In reply to]

paulhart wrote:
> ...
> I installed python, neon and swig from the OpenBSD packages system. I
> manually compiled SVN (and Apache2) with:
>
> export LDFLAGS=/usr/local/lib
> ...
> when I use tracd. BTW, this worked when I initially installed
> everything, then I (foolishly?) rebooted the machine.
>
> Any ideas on why trac isn't seeing my (apparently correctly installed)
> bindings?

Some library that it needs (e.g. zlib) in /usr/local/lib and that folder
not in LD_LIBRARY_PATH?
Can you get the 'svn' command line to work in the same shell?

-- Christian



--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


mail at paulhart

Jan 19, 2007, 6:54 AM

Post #3 of 6 (1553 views)
Permalink
Re: Yet another 'Unsupported version control system "svn"' post [In reply to]

Christian Boos wrote:
> Some library that it needs (e.g. zlib) in /usr/local/lib and that folder
> not in LD_LIBRARY_PATH?
> Can you get the 'svn' command line to work in the same shell?

Yes, svn works fine (I just created a new repository, then created,
added and commited a file to confirm that), I even have apache2 doing
the mod_dav/mod_dav_svn dance succesfully. Trac is the only app that
seems to be having troubles.

Paul


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cboos at neuf

Jan 19, 2007, 7:32 AM

Post #4 of 6 (1532 views)
Permalink
Re: Yet another 'Unsupported version control system "svn"' post [In reply to]

paulhart wrote:
>
> Christian Boos wrote:
>> Some library that it needs (e.g. zlib) in /usr/local/lib and that folder
>> not in LD_LIBRARY_PATH?
>> Can you get the 'svn' command line to work in the same shell?
>
> Yes, svn works fine (I just created a new repository, then created,
> added and commited a file to confirm that), I even have apache2 doing
> the mod_dav/mod_dav_svn dance succesfully. Trac is the only app that
> seems to be having troubles.

And what about the following:

PYTHONPATH=/usr/local/lib/svn-python python
>>> from svn import core
>>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO)

?

-- Christian


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


mail at paulhart

Jan 19, 2007, 8:34 AM

Post #5 of 6 (1535 views)
Permalink
Re: Yet another 'Unsupported version control system "svn"' post [In reply to]

Christian Boos wrote:
> PYTHONPATH=/usr/local/lib/svn-python python
> >>> from svn import core
> >>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO)

I believe we have a 'winner'.

>>> from svn import core
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/svn-python/svn/core.py", line 19, in ?
from libsvn.core import *
File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
import _core
ImportError: Cannot load specified object

Maybe I need to recompile the bindings?


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


vpaziran at gmail

Feb 3, 2007, 7:28 PM

Post #6 of 6 (1497 views)
Permalink
Re: Yet another 'Unsupported version control system "svn"' post [In reply to]

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 Jan 19, 8:34 am, "paulhart" <m...@paulhart.ca> wrote:
> Christian Boos wrote:
> > PYTHONPATH=/usr/local/lib/svn-python python
> > >>> from svn import core
> > >>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO)
>
> I believe we have a 'winner'.
>
> >>> from svn import core
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/svn-python/svn/core.py", line 19, in ?
> from libsvn.core import *
> File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
> import _core
> ImportError: Cannot load specified object
>
> Maybe I need to recompile the bindings?


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to trac-users-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.