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 #1616 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

toolbox broken

Reported by: alexandre Owned by: anonymous
Priority: high Milestone: 1.0.4
Component: Toolbox Version: 1.0.4b3
Severity: major Keywords: toolbox widgets tg-admin


An error occurring on try to run tg-admin toolbox as folows:

Traceback (most recent call last):
  File "/usr/bin/tg-admin", line 8, in <module>
    load_entry_point('TurboGears==1.1b1dev-r3721', 'console_scripts', 'tg-admin')()
  File "/usr/lib/python2.5/site-packages/TurboGears-1.1b1dev_r3721-py2.5.egg/turbogears/command/base.py", line 371, in main
    command = command(turbogears.__version__)
  File "/usr/lib/python2.5/site-packages/TurboGears-1.1b1dev_r3721-py2.5.egg/turbogears/command/base.py", line 261, in __init__
  File "/usr/lib/python2.5/site-packages/TurboGears-1.1b1dev_r3721-py2.5.egg/turbogears/widgets/base.py", line 66, in load_widgets
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named widgets

The tg-admin info at my linux box returns:

TurboGears Complete Version Information

TurboGears requires:

* TurboGears 1.1b1dev-r3721
* TurboJson 1.1.1
* TurboCheetah 1.0
* simplejson 1.7.3
* setuptools 0.6c6
* RuleDispatch 0.5a0.dev-r2306
* PasteScript 1.3.6
* Genshi 0.4.4
* FormEncode 0.7.1
* DecoratorTools 1.6
* configobj 4.4.0
* CherryPy 2.2.1
* RuleDispatch 0.5a0.dev-r2306
* Cheetah 2.0.1
* PyProtocols 1.0a0dev-r2302
* PasteDeploy 1.3.1
* Paste 1.5.1
* DecoratorTools 1.6

Toolbox Gadgets 

* info (TurboGears 1.1b1dev-r3721)
* catwalk (TurboGears 1.1b1dev-r3721)
* shell (TurboGears 1.1b1dev-r3721)
* designer (TurboGears 1.1b1dev-r3721)
* widgets (TurboGears 1.1b1dev-r3721)
* admi18n (TurboGears 1.1b1dev-r3721)

Identity Providers 

* sqlobject (TurboGears 1.1b1dev-r3721)
* sqlalchemy (TurboGears 1.1b1dev-r3721)

tg-admin Commands 

* info (TurboGears 1.1b1dev-r3721)
* shell (TurboGears 1.1b1dev-r3721)
* quickstart (TurboGears 1.1b1dev-r3721)
* update (TurboGears 1.1b1dev-r3721)
* sql (TurboGears 1.1b1dev-r3721)
* i18n (TurboGears 1.1b1dev-r3721)
* toolbox (TurboGears 1.1b1dev-r3721)

Visit Managers 

* sqlobject (TurboGears 1.1b1dev-r3721)
* sqlalchemy (TurboGears 1.1b1dev-r3721)

Template Engines 

* json (TurboJson 1.1.1)
* cheetah (TurboCheetah 1.0)
* genshi-markup (Genshi 0.4.4)
* genshi-text (Genshi 0.4.4)
* genshi (Genshi 0.4.4)
* kid (TurboKid 1.0.3)

Widget Packages 

* tgmochikit (tgMochiKit 0.1alpha)

TurboGears Extensions 

* visit (TurboGears 1.1b1dev-r3721)
* identity (TurboGears 1.1b1dev-r3721)

Change History

comment:1 Changed 12 years ago by alexandre

  • Severity changed from normal to blocker

comment:2 Changed 12 years ago by chrisz

  • Version changed from 1.1b1 to 1.0.4b3
  • Milestone changed from 1.1 to 1.0.4

The same problem seems to exists in TG 1.0.4b3.

comment:3 Changed 12 years ago by chrisz

Maybe this happens only with Py 2.5. I have no problems with TG 1.0.4b3 and Py 2.4.

comment:4 Changed 12 years ago by chrisz

Turned out that the tgMochiKit plugin is the culprit. I had it installed with Py 2.5, but not with Py 2.4.

tgMochiKit provides an turbogears.widgets entrypoint, set to tgmochikit.widgets, which does not exist. This seems to be a bug in tgMochiKit.

I have improved the error message so that a broken plugin is easier to identify.

comment:5 follow-up: ↓ 6 Changed 12 years ago by chrisz

  • Priority changed from highest to high
  • Status changed from new to closed
  • Resolution set to fixed
  • Severity changed from blocker to major

I have now also patched the bug in tgMochiKit.

You will need to uninstall tgMochiKit or update it from trunk.

comment:6 in reply to: ↑ 5 Changed 12 years ago by alexandre

Yes, after update turbogears and tgMochikit from trunk I've got all working again.

Note: See TracTickets for help on using tickets.