Trouble with tg-admins shell (and other tg-admin commands)

7 views
Skip to first unread message

Arnar Birgisson

unread,
Apr 3, 2006, 9:22:38 AM4/3/06
to turbo...@googlegroups.com
Hi there,

I get this strange traceback when trying to open tg-admin shell

arnarb@kassi:~/public_html/gs$ tg-admin shell
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/command/base.py",
line 261, in main
command.run()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/command/base.py",
line 164, in run
self.find_config()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/command/base.py",
line 54, in find_config
load_project_config(self.config)
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/command/base.py",
line 40, in load_project_config
modulename = package + ".config.app")
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/config.py",
line 30, in update_config
modfile = pkg_resources.resource_filename(packagename, modname + ".cfg")
File "/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 799, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 119, in get_provider
__import__(moduleOrReq)
ImportError: No module named config

CherryPy runs without problems..

Arnar

Kevin Dangoor

unread,
Apr 3, 2006, 9:27:00 AM4/3/06
to turbo...@googlegroups.com
On 4/3/06, Arnar Birgisson <arn...@gmail.com> wrote:
> ImportError: No module named config

Is this a project that was started on TG 0.8? (I'm guessing it is).

Can you file a bug report on this (with a milestone of 0.9)? I think
we can handle this case more gracefully.

Kevin

Arnar Birgisson

unread,
Apr 3, 2006, 10:04:22 AM4/3/06
to turbo...@googlegroups.com
2006/4/3, Kevin Dangoor <dan...@gmail.com>:

> On 4/3/06, Arnar Birgisson <arn...@gmail.com> wrote:
> > ImportError: No module named config
>
> Is this a project that was started on TG 0.8? (I'm guessing it is).

Yes, I didn't think of that. When I ran tg-admin quickstart,
/usr/local/bin/tg-admin was the old 0.8 version, but I had installed
0.9a2 in /usr/bin (which is later in my path). Since then, I've
deleted /usr/local/bin/tg-admin.

quickstarted again with the correct tg-admin and now it's all good :o)

> Can you file a bug report on this (with a milestone of 0.9)? I think
> we can handle this case more gracefully.

Will do.

thanks,
Arnar

Reply all
Reply to author
Forward
0 new messages