Hello !
As I mentioned in previous message Ubuntu Lucid distributes Python 2.6
and does not provide packages for 2.(4|5) :( . I installed Trac 0.11.7
anyway from Lucid repos (latest version ;o) and tried to set it up using
FastCGI and Py 2.5 (i.e. shebang = #!/usr/env/bin/python2.5 ;o) which I
installed from Karmic repos :-$ . AFAICS Trac files are in /usr/share
{{{
#!sh
$ dpkg -L trac | grep "/usr/share" | wc --lines
394
}}}
I thought that the idea was that the module was available for all Py
versions (CMIIW) installed in the system .
The fact is that I get the following error
{{{
#!python
$ python2.5
Python 2.5.4 (r254:67916, Sep 20 2009, 10:05:43)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import trac
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named trac
>>> import sys
>>> sys.path
['', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']
}}}
Besides I se the following messages in the error log
{{{
[Thu May 20 23:17:02 2010] [warn] FastCGI: (dynamic) server
"/var/lib/trac/share/cgi-bin/trac.fcgi" restarted (pid 14301)
Content-Type: text/plain
Oops...
Trac detected an internal error:
No module named pkg_resources
Traceback (most recent call last):
File "/var/lib/trac/share/cgi-bin/trac.fcgi", line 20, in <module>
import pkg_resources
ImportError: No module named pkg_resources
[Thu May 20 23:17:02 2010] [warn] FastCGI: (dynamic) server
"/var/lib/trac/share/cgi-bin/trac.fcgi" (pid 14301) terminated by
calling exit with status '0'
}}}
... and ...
{{{
#!python
$ python2.5
Python 2.5.4 (r254:67916, Sep 20 2009, 10:05:43)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pkg_resources
$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.__file__
'/usr/lib/python2.6/dist-packages/pkg_resources.pyc'
>>>
[2]+ Stopped python
$ dpkg -S /usr/lib/python2.6/dist-packages/pkg_resources.py
python-pkg-resources: /usr/lib/python2.6/dist-packages/pkg_resources.py
$ dpkg -l python-pkg-resources | grep python-pkg-resources
ii python-pkg-resources 0.6.10-4ubuntu1
Package Discovery and Resource Access using pkg_resources
$ dpkg -L python-pkg-resources
/.
/usr
/usr/lib
/usr/lib/python2.6
/usr/lib/python2.6/dist-packages
/usr/share
/usr/share/doc
/usr/share/doc/python-pkg-resources
/usr/share/doc/python-pkg-resources/README.Debian
/usr/share/doc/python-pkg-resources/copyright
/usr/share/doc/python-pkg-resources/changelog.Debian.gz
/usr/share/doc/python-pkg-resources/pkg_resources.txt.gz
/usr/share/pyshared
/usr/share/pyshared/pkg_resources.py
/usr/share/pyshared-data
/usr/share/pyshared-data/python-pkg-resources
/usr/lib/python2.6/dist-packages/pkg_resources.py
}}}
Q:
- How could I install Trac 0.11.7 + Py 2.5 in Ubuntu 10.04
Lucid LTS *USING* `apt` ?
Thnx in advance !
PS: In this case I really want to use Py 2.5 and install Trac using
`apt` .
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
Soporte para AMF (RPC) en Trac -
http://feedproxy.google.com/~r/simelo-es/~3/9dYgHeK5Be8/soporte-para-amf-rpc-en-trac.html
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.