Michael Bienia schrieb: > On 2007-07-09 02:18:20 +0200, Christopher Arndt wrote: > python-support (and python-central) are frameworks to make python > modules and extensions available for the installed python versions. > The python modules get symlinked to /var/lib/python-support/python2.* > (where also the .pyc are). And this directory is in sys.path:
Ok, I get it. >> >>> from elementtree.ElementTree import ElemntTree >> >> from a normal interactive Python prompt fails with the same error. > > Wasn't elementtree included in python 2.5? [0] Yes, but the module has a different name, so the above import will not work. The included module is called "xml.etree" and is not the same as "elementtree" (though it largely is compatible) > The python2.5 package provides: python2.5-cjkcodecs, python2.5-ctypes, > python2.5-elementtree, python2.5-celementtree > The package python-elementtree supports only python2.4. When I installed "python-turbogears" it pulled "python-elementtree" as a dependency. One would expect that this would then provide elementtree for Python 2.5, with which TurboGears will be run. Or "python-turbogears" should depend on the "python2.4" package. > I got "tg-admin info" running if I change turbogears/command/i18n.py to > ,---- > | try: > | from elementtree.ElementTree import ElementTree > | except ImportError: > | from xml.etree.ElementTree import ElementTree Yes, I figured that something like this would work but in IMO that's a workaround for a broken "python-elementtree/turbogears" package, not a fix for a TurboGears bug. Currently TG depends on elementtree. > How to proceed with this problem? - Ubuntu fixes fixes the "python-eleemnttree" package - Ubuntu includes the above patch in its "python-turbogears" package - TurboGears includes the above patch in it's next release (post it as a trac ticket, please!) Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

