pysvn and - Unsupported version control system "svn": "No module named svn"

1,600 views
Skip to first unread message

Mauro Gatti

unread,
Apr 8, 2010, 2:48:50 AM4/8/10
to trac-...@googlegroups.com
Hi all I got this error while I was trying to do:
trac-admin /myrepo resync
Looking at some documentation I realizied I had to install pysvn.
So I did it following instructions included in pysvn source code. I compiled the cource code. I ran the test successfully.
I installed the pysvn modules but I'm still getting the error:
 trac-admin /myrepos resync
Resyncing repository history...
Command failed: Unsupported version control system "svn": "No module named svn"

What is wrong?
How can I check if pysvn works fine?

Thank You

Regards

Rainer Sokoll

unread,
Apr 8, 2010, 3:57:16 AM4/8/10
to trac-...@googlegroups.com
On Wed, Apr 07, 2010 at 11:48:50PM -0700, Mauro Gatti wrote:

> Looking at some documentation I realizied I had to install pysvn.

No, trac uses subversion's SWIG bindings, not pysvn.
In the subversion's source tree, you need to run "make swig-py && make
install-swig-py"

Rainer

Mauro Gatti

unread,
Apr 8, 2010, 5:44:21 AM4/8/10
to trac-...@googlegroups.com
Oh sorry I didn't get this.
I did what you suggested successfully and now I have libsvn_swig_py-1.*and svn-python installed but I'm still getting the error. Pheraphs python doesn't know where they are. How can fix this problem?
Sorry, I really don't know python...

Thank You again

Regards

Mauro



From: Rainer Sokoll <r.so...@intershop.de>
To: trac-...@googlegroups.com
Sent: Thu, April 8, 2010 9:57:16 AM
Subject: Re: [Trac] pysvn and - Unsupported version control system "svn": "No module named svn"
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


Rainer Sokoll

unread,
Apr 8, 2010, 6:05:24 AM4/8/10
to trac-...@googlegroups.com
On Thu, Apr 08, 2010 at 02:44:21AM -0700, Mauro Gatti wrote:

> Oh sorry I didn't get this.

It's in the wiki :-) http://trac.edgewall.org/wiki/TracInstall

> I did what you suggested successfully and now I have
> libsvn_swig_py-1.*and svn-python installed but I'm still getting the
> error. Pheraphs python doesn't know where they are. How can fix this
> problem?

Yes, you may need to tell python where to find th libs. I do not
remember exactly how I managed it, but what I have is a file "svn.pth"
in /usr/lib/python2.5/site-packages/ It contains only one line:
/usr/local/subversion/lib/svn-python
I /think/ this is the path where "make install-swig-py" copied the libs
to.
(I configured subversion with "--prefix=/usr/local/subversion/")

HTH,
Rainer

Rainer Sokoll

unread,
Apr 8, 2010, 6:11:18 AM4/8/10
to trac-...@googlegroups.com
On Thu, Apr 08, 2010 at 02:44:21AM -0700, Mauro Gatti wrote:

> Sorry, I really don't know python...

Me too :-)
I forgot: If you haven't done it yet, you should visit
http://trac.edgewall.org/wiki/TracSubversion

Rainer

Mauro Gatti

unread,
Apr 8, 2010, 6:26:09 AM4/8/10
to trac-...@googlegroups.com
Thank you Rainer.
I created the svn.pth as you told me and now it works.
I don't know how I could not to see the row which specify the use ow SWIG! it is colored and bold!

Thank you again

Reagrds

Mauro


Sent: Thu, April 8, 2010 12:05:24 PM

Subject: Re: [Trac] pysvn and - Unsupported version control system "svn": "No module named svn"

Mauro Gatti

unread,
Apr 8, 2010, 8:07:04 AM4/8/10
to trac-...@googlegroups.com
Hi all,
I'm trying to run trac under apache but apache tells me there is something wrong.
When I try to browse the /trac directory I got an error like:

Available Projects

  • cache: Error
    ([Errno 2] No such file or directory: '/opt/data/trac/cache/VERSION')
  • cgi-bin: Error
    ([Errno 2] No such file or directory: '/opt/data/trac/cgi-bin/VERSION')
  • htdocs: Error
    ([Errno 2] No such file or directory: '/opt/data/trac/htdocs/VERSION')
  • projects: Error
    ([Errno 2] No such file or directory: '/opt/data/trac/projects/VERSION')
Is it a configuration error of apache or a problem with trac?

Actually VERSION files it seems to look for aren't in my directories...

Thanks

Regards

Mauro


Reply all
Reply to author
Forward
0 new messages