Hi all,
I'm having problems with getting any model into a db. tg-admin gives me
a strange error. I'm using the 0.92 released version of TG.
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 91, in run
if not "--egg" in sys.argv and not
turbogears.util.get_project_name():
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/turbogears/util.py",
line 80, in get_project_name
return list(open("%s/PKG-INFO" %i))[1][6:-1]
IndexError: list index out of range
Even with the simplest model possible it won't work:
from sqlobject import *
from turbogears.database import PackageHub
# Uncomment the following line if you wish to use Identity and
SO_Provider
#from turbogears.identity.soprovider import TG_User, TG_Group,
TG_Permission
hub = PackageHub("eapa")
__connection__ = hub
class YourDataClass(SQLObject):
pass
Any idea whats wrong?
Greetings
Geert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---