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

Mailing List Archive: Trac: Tickets

[The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed)

 

 

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


noreply at edgewall

Sep 13, 2005, 8:31 AM

Post #1 of 7 (273 views)
Permalink
[The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed)

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone: 0.9
Component: browser | Version: 0.9b1
Severity: normal | Keywords: |
-------------------------------------+--------------------------------------
I have gotten everything installed and configured. the trac-admin ...
initenv
can see the svn modules (or else the install would not even work). I can
view and use the wiki.
When I try to use the Timeline or Browse Source I receive the following
error message.

--- snip ---

Trac detected an internal error:
No module named svn

Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/web/cgi_frontend.py",
line 115, in run
dispatch_request(req.path_info, req, env)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python2.4/site-packages/trac/Timeline.py", line
137, in process_request
filters)
File "/usr/local/lib/python2.4/site-
packages/trac/versioncontrol/web_ui/changeset.py", line 106, in
get_timeline_events
repos = self.env.get_repository()
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 143, in
get_repository
from trac.versioncontrol.svn_fs import SubversionRepository
File "/usr/local/lib/python2.4/site-
packages/trac/versioncontrol/svn_fs.py", line 26, in ?
from svn import fs, repos, core, delta
ImportError: No module named svn

--- snip ---

System Specs (with custom builds of all the deps):
* RHEL 3
* Python 2.4.1
* Apache 2
* Subversion 1.2.3

PYTHON_SITE=/usr/local/lib/python2.4/site-packages
PYTHONPATH=/usr/local/lib/svn-python/libsvn:/usr/local/lib/svn-
python/svn:/usr/local/lib/svn-python

(this is where svn installs it modules now, i could not get them to
install into the sitedir)

Please let me know if there is anyother information I can provide that
might be helpful.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Sep 13, 2005, 8:46 AM

Post #2 of 7 (270 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Changes (by mgood):

* status: new => closed
* resolution: => invalid
* milestone: 0.9 =>

Old description:

> I have gotten everything installed and configured. the trac-admin ...
> initenv
> can see the svn modules (or else the install would not even work). I can
> view and use the wiki.
> When I try to use the Timeline or Browse Source I receive the following
> error message.
>
> --- snip ---
>
> Trac detected an internal error:
> No module named svn
>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.4/site-packages/trac/web/cgi_frontend.py",
> line 115, in run
> dispatch_request(req.path_info, req, env)
> File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
> 139, in dispatch_request
> dispatcher.dispatch(req)
> File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
> 107, in dispatch
> resp = chosen_handler.process_request(req)
> File "/usr/local/lib/python2.4/site-packages/trac/Timeline.py", line
> 137, in process_request
> filters)
> File "/usr/local/lib/python2.4/site-
> packages/trac/versioncontrol/web_ui/changeset.py", line 106, in
> get_timeline_events
> repos = self.env.get_repository()
> File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 143, in
> get_repository
> from trac.versioncontrol.svn_fs import SubversionRepository
> File "/usr/local/lib/python2.4/site-
> packages/trac/versioncontrol/svn_fs.py", line 26, in ?
> from svn import fs, repos, core, delta
> ImportError: No module named svn
>
> --- snip ---
>
> System Specs (with custom builds of all the deps):
> * RHEL 3
> * Python 2.4.1
> * Apache 2
> * Subversion 1.2.3
>
> PYTHON_SITE=/usr/local/lib/python2.4/site-packages
> PYTHONPATH=/usr/local/lib/svn-python/libsvn:/usr/local/lib/svn-
> python/svn:/usr/local/lib/svn-python
>
> (this is where svn installs it modules now, i could not get them to
> install into the sitedir)
>
> Please let me know if there is anyother information I can provide that
> might be helpful.

New description:

I have gotten everything installed and configured. the trac-admin ...
initenv
can see the svn modules (or else the install would not even work). I can
view and use the wiki.
When I try to use the Timeline or Browse Source I receive the following
error message.

--- snip ---
{{{
Trac detected an internal error:
No module named svn

Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/web/cgi_frontend.py",
line 115, in run
dispatch_request(req.path_info, req, env)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python2.4/site-packages/trac/Timeline.py", line
137, in process_request
filters)
File "/usr/local/lib/python2.4/site-
packages/trac/versioncontrol/web_ui/changeset.py", line 106, in
get_timeline_events
repos = self.env.get_repository()
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 143, in
get_repository
from trac.versioncontrol.svn_fs import SubversionRepository
File "/usr/local/lib/python2.4/site-
packages/trac/versioncontrol/svn_fs.py", line 26, in ?
from svn import fs, repos, core, delta
ImportError: No module named svn
}}}
--- snip ---

System Specs (with custom builds of all the deps):
* RHEL 3
* Python 2.4.1
* Apache 2
* Subversion 1.2.3

PYTHON_SITE=/usr/local/lib/python2.4/site-packages
PYTHONPATH=/usr/local/lib/svn-python/libsvn:/usr/local/lib/svn-
python/svn:/usr/local/lib/svn-python

(this is where svn installs it modules now, i could not get them to
install into the sitedir)

Please let me know if there is anyother information I can provide that
might be helpful.

Comment:

This is an installation support issue, not a Trac bug, so please ask on
the IrcChannel or MailingList if you need help resolving this.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Sep 13, 2005, 8:49 AM

Post #3 of 7 (262 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Comment (by mgood):

Well, since the trac-admin command worked it appears that you have the
PYTHONPATH variable set on the commandline, but not in your Apache config.
You will need to use the Apache config option "SetEnv" to configure the
PYTHONPATH variable for the Trac application.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Sep 13, 2005, 8:50 AM

Post #4 of 7 (271 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Comment (by cmlenz):

As you noted, the Subversion Python bindings are not installed to default
location. You need to make them available to Python scripts yourself.
There are two ways to do this:

1. Create a `.pth` file in site-packages:
{{{
$ echo /usr/local/lib/svn-python > /usr/local/lib/python2.4/site-packages
}}}
2. Use symlinks:
{{{
$ ln -s /usr/local/lib/svn-python/svn /usr/local/lib/python2.4/site-
packages/svn
$ ln -s /usr/local/lib/svn-python/libsvn /usr/local/lib/python2.4/site-
packages/libsvn
}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Sep 13, 2005, 8:51 AM

Post #5 of 7 (254 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Comment (by cmlenz):

That first snippet above should've been:
{{{
$ echo /usr/local/lib/svn-python > /usr/local/lib/python2.4/site-
packages/svn.pth
}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Sep 13, 2005, 8:56 AM

Post #6 of 7 (262 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Comment (by matt.t.galvin [at] gmail):

I wound up symlinking to the dir with:

ln -s /usr/local/lib/svn-python/svn /usr/local/lib/python2.4/site-
packages/svn
ln -s /usr/local/lib/svn-python/libsvn /usr/local/lib/python2.4/site-
packages/libsvn

which caused it to not be able to find libsvn_swig_py-1.so.0.

I then just re-ran ldconfig and then it worked.

So symlinking and running ldconfig worked for me.

Thanks for the tip and sorry for the noise.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Jan 4, 2006, 12:09 PM

Post #7 of 7 (269 views)
Permalink
Re: [The Trac Project] #2055: Timeline and Browse Source... No module named svn (modules ARE installed) [In reply to]

#2055: Timeline and Browse Source... No module named svn (modules ARE installed)
-------------------------------------+--------------------------------------
Reporter: matt.t.galvin [at] gmail | Owner: jonas
Type: task | Status: closed
Priority: normal | Milestone:
Component: browser | Version: 0.9b1
Severity: normal | Resolution: invalid
Keywords: |
-------------------------------------+--------------------------------------
Changes (by anonymous):

* type: defect => task

Comment:

Here's an echo command that will indeed create the .pth file mentioned
above.

$ echo "/usr/local/lib/svn-python" > /usr/local/lib/python2.4/site-
packages/svn-python.pth

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2055>
The Trac Project <http://trac.edgewall.com/>

Trac tickets 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.