Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1781 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

"tg-admin info" ImportError: turbogears.i18n still requires kid

Reported by: Chris Arndt Owned by: Chris Arndt
Priority: normal Milestone: 1.5
Component: TurboGears Version: 1.1 HEAD
Severity: major Keywords: i18n, ImportError

Description (last modified by Chris Arndt) (diff)

When installing the latest (r4343) TurboGears 1.1b1 by building an egg and then easy_install'ing it, and then running tg-admin info, it crashes with an ImportError exception:

s$ tg-admin info 
Traceback (most recent call last):
  File "/home/chris/lib/tg11py25/bin/tg-admin", line 8, in <module>
    load_entry_point('TurboGears==1.1b1dev-r4343', 'console_scripts', 'tg-admin')()
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/setuptools-0.6c7-py2.5.egg/pkg_resources.py", line 277, in load_entry_point
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/setuptools-0.6c7-py2.5.egg/pkg_resources.py", line 2179, in load_entry_point
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/setuptools-0.6c7-py2.5.egg/pkg_resources.py", line 1912, in load
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/__init__.py", line 6, in <module>
    from turbogears.controllers import expose, flash, validate, redirect, \
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/controllers.py", line 12, in <module>
    from turbogears import view, database, errorhandling, config
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/view/__init__.py", line 1, in <module>
    from turbogears.view import base
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/view/base.py", line 16, in <module>
    from turbogears.i18n import i18n_filter, get_locale
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/i18n/__init__.py", line 13, in <module>
    from turbogears.i18n.kidutils import translate, i18n_filter
  File "/home/chris/lib/tg11py25/lib/python2.5/site-packages/TurboGears-1.1b1dev_r4343-py2.5.egg/turbogears/i18n/kidutils.py", line 4, in <module>
    from kid.parser import START, TEXT, END
ImportError: No module named kid.parser

This is because turbogears.i18n still requires Kid in turbogears.i18.kidutils.

Change History

comment:1 Changed 11 years ago by Chris Arndt

  • Description modified (diff)

Fixed source link

comment:2 Changed 11 years ago by droggisch

  • Owner changed from anonymous to Chris Arndt

Fixed in r4600. We need to come to terms regarding kid-dependent code though.

comment:3 Changed 11 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to fixed

Yes, but that is another matter IMHO. We should open a ticket for every component that still relies on Kid, so I'm closing this ticket now.

comment:4 Changed 11 years ago by Chris Arndt

  • Version changed from 1.1b1 to 1.1 HEAD
Note: See TracTickets for help on using tickets.