tg-admin doesn't work with python 2.6 and current turbojson

Bug #354443 reported by Mattias Eriksson
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
turbogears (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/bin/tg-admin", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2566, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: TurboGears==1.0.8

It seems that there only are python2.5 files in the package, a simple rebuild solves this particular error... but the I also had to rebuild turbokid and turbojson for the same reason. Then I realize that turbogears in Jaunty requires turbojson < 1.2!

Revision history for this message
Mattias Eriksson (snaggen) wrote :

Note that I'm talking about the Jaunty packages. I don't find a way to specify that in the bug.

Revision history for this message
PeterJCLaw (peterjclaw) wrote :

I think that this bug is wider than just tg-admin:
for instance if you try to import turbojson (or anything that depends on it) into python then you get an error as follows:
>>> import turbojson
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/var/lib/python-support/python2.6/turbojson/__init__.py", line 1, in <module>
    from turbojson import jsonsupport
  File "/var/lib/python-support/python2.6/turbojson/jsonsupport.py", line 3, in <module>
    from turbojson import jsonify
  File "/var/lib/python-support/python2.6/turbojson/jsonify.py", line 6, in <module>
    from peak.rules import abstract, when
ImportError: No module named rules
>>>
You get a similar ImportError if you try to import peak.rules on its own.

Revision history for this message
Stuart Stegall (keltor) wrote :

peak is not packaged for Debian or Ubuntu yet and this is where the problem seems to originate from. The requirement for peak can be removed as has been done previously in 1.0.2 of TurboGears.

Revision history for this message
PeterJCLaw (peterjclaw) wrote :

Stuart: I could be misunderstanding, but my experience suggests that it *is* possible to import the peak module into python, though it lacks the 'rules' sub module.

Revision history for this message
Stuart Stegall (keltor) wrote :

Sorry, I meant PEAK-Rules. :)

Revision history for this message
PeterJCLaw (peterjclaw) wrote :

this bug definitely exists - hence the change to confirmed

Changed in turbogears (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.