Public bug reported:
I am running Feisty on x86_64 and just installed TurboGears via "apt-get
install python-turbogears".
Now tg-admin crashes when I run it:
$ tg-admin
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0b1', 'console_scripts', 'tg-admin')()
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 236, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2097, in
load_entry_point
return ep.load()
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/var/lib/python-support/python2.5/turbogears/__init__.py", line 6, in
<module>
from turbogears.controllers import expose, flash, validate, redirect, \
File "/var/lib/python-support/python2.5/turbogears/controllers.py", line 9,
in <module>
import kid
File "/var/lib/python-support/python2.5/kid/__init__.py", line 30, in <module>
from kid.codewriter import KID_XMLNS
File "/var/lib/python-support/python2.5/kid/codewriter.py", line 16, in
<module>
from kid.parser import *
File "/var/lib/python-support/python2.5/kid/parser.py", line 9, in <module>
from kid.et import * # ElementTree
AttributeError: 'module' object has no attribute 'ElementTree'
If I explicitly run with python2.4, it works fine:
$ python2.4 /usr/bin/tg-admin
All the relevant files in /var/lib/python-support/python2.X are simply
symlinks to /usr/share/python-support. That's to say, the exact same
source files are accessed by python2.4 and python2.5.
I haven't been able to figure out what is causing this problem, so I've
simply modified tg-admin to explicitly run under python2.4:
#!/usr/bin/python2.4
#EASY-INSTALL-ENTRY-SCRIPT: ...
I've found that launching the start-server.py scripts produced by tg-
admin produces the same error when run with python2.5, but they work
fine with 2.4
** Affects: turbogears (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
tg-admin doesn't work with python 2.5
https://launchpad.net/bugs/84145
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs