Hi all,
Recently I ran into some limitations of SQLObject that forced me to
make the move to SQLAlchemy. Which fixed some other problems on the
way, but that's another story ;)
So, I first tried it out on my laptop and it all worked fine. So far so
good. So I updated Turbogears on my development box (via ``easy_install
-U''). Created a new project with quickstart, and tried to create the
database (I wanted to start from scratch). Here's what I got:
Creating tables at postgres://xxxxxx:[EMAIL PROTECTED]/travelguide
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/command/base.py",
line 358, in main
command.run()
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/command/base.py",
line 115, in run
sacommand(command, sys.argv)
File "<string>", line 5, in sacommand
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/command/base.py",
line 69, in sacreate
get_model()
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0b2-py2.4.egg/turbogears/util.py",
line 119, in get_model
package = __import__(package_name, {}, {}, ["model"])
File "/home/exhuma/work/travelguide26/travelguide26/model.py", line
83, in ?
assign_mapper(session.context, Visit, visits_table)
NameError: name 'assign_mapper' is not defined
Why do I get this "assign_mapper" error?!? I have the latest version of
psycopg2, SQLAlchemy and Turbogears. Am I missing something?
Best regards,
Michel Albert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---