-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
as far as i understand, here you have used colname in a manytomany
directive.
hth,
alex
sevenseeker wrote:
> I hope this doesn't double submit...
> Either way, thank you very much for your assistance.
>
> Jason
>
> C:\tmp\test_mgr_exec\Test-Exec>tg-admin sql create
> Creating tables at sqlite:///devdata.sqlite
> Traceback (most recent call last):
> File "C:\Python25\Scripts\tg-admin-script.py", line 8, in <module>
> load_entry_point('turbogears==1.0.4b3', 'console_scripts', 'tg-
> admin')()
> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
> \turbogears\co
> mmand\base.py", line 371, in main
> command.run()
> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
> \turbogears\co
> mmand\base.py", line 97, in run
> sacommand(command, sys.argv)
> File "<string>", line 5, in sacommand
> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
> \turbogears\co
> mmand\sacommand.py", line 32, in create
> get_model()
> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
> \turbogears\ut
> il.py", line 131, in get_model
> package = __import__(package_name, {}, {}, ["model"])
> File "c:\python25\lib\site-packages\myghty-1.1-py2.5.egg\myghty
> \importer.py",
> line 54, in import_module
> return builtin_importer(name, globals, locals, fromlist)
> File "C:\tmp\test_mgr_exec\Test-Exec\testexec\model.py", line 526,
> in <module>
>
> setup_all()
> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
> \__init__.py"
> , line 116, in setup_all
> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
> \entity.py",
> line 731, in setup_entities
> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
> \entity.py",
> line 419, in setup_properties
> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
> \entity.py",
> line 431, in call_builders
> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
> \relationship
> s.py", line 406, in create_properties
> File "c:\python25\lib\site-packages\sqlalchemy-0.4.1-py2.5.egg
> \sqlalchemy\orm\
> __init__.py", line 245, in relation
> return PropertyLoader(argument, secondary=secondary, **kwargs)
> TypeError: __init__() got an unexpected keyword argument 'colname'
>
> On Dec 27, 12:10 pm, alex bodnaru <[EMAIL PROTECTED]> wrote:
> post the new crash dump
>
>
>
> sevenseeker wrote:
>>>> Yes, it turns out I did have a couple of 'table_name' instead of
>>>> 'tablename' entries.
>>>> However, now it is complaining about 'colname' which according to the
>>>> documentation is valid. Additionally 'colname' was in the quickstart
>>>> generated model.py as well. Hopefully this is another silly oversight
>>>> by myself.
>>>> Jason
>>>> On Dec 27, 11:04 am, alex bodnaru <[EMAIL PROTECTED]> wrote:
>>>> look for 'table_name' in your model
>>>> sevenseeker wrote:
>>>>>>> Howdy,
>>>>>>> My environment is as follows:
>>>>>>> Windows XP
>>>>>>> Python 2.5
>>>>>>> TurboGears 1.0.4b3
>>>>>>> SQLAlchemy 0.4.1
>>>>>>> Elixir 0.5.0
>>>>>>> When running 'tg-admin sql create' I am receiving the following
>>>>>>> exception.
>>>>>>> <snip>
>>>>>>> C:\tmp\test_mgr_exec\Test-Exec>tg-admin sql create
>>>>>>> Creating tables at sqlite:///devdata.sqlite
>>>>>>> Traceback (most recent call last):
>>>>>>> File "C:\Python25\Scripts\tg-admin-script.py", line 8, in <module>
>>>>>>> load_entry_point('turbogears==1.0.4b3', 'console_scripts', 'tg-
>>>>>>> admin')()
>>>>>>> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
>>>>>>> \turbogears\co
>>>>>>> mmand\base.py", line 371, in main
>>>>>>> command.run()
>>>>>>> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
>>>>>>> \turbogears\co
>>>>>>> mmand\base.py", line 97, in run
>>>>>>> sacommand(command, sys.argv)
>>>>>>> File "<string>", line 5, in sacommand
>>>>>>> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
>>>>>>> \turbogears\co
>>>>>>> mmand\sacommand.py", line 32, in create
>>>>>>> get_model()
>>>>>>> File "c:\python25\lib\site-packages\TurboGears-1.0.4b3-py2.5.egg
>>>>>>> \turbogears\ut
>>>>>>> il.py", line 131, in get_model
>>>>>>> package = __import__(package_name, {}, {}, ["model"])
>>>>>>> File "c:\python25\lib\site-packages\myghty-1.1-py2.5.egg\myghty
>>>>>>> \importer.py",
>>>>>>> line 54, in import_module
>>>>>>> return builtin_importer(name, globals, locals, fromlist)
>>>>>>> File "C:\tmp\test_mgr_exec\Test-Exec\testexec\model.py", line 526,
>>>>>>> in <module>
>>>>>>> setup_all()
>>>>>>> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
>>>>>>> \__init__.py"
>>>>>>> , line 116, in setup_all
>>>>>>> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
>>>>>>> \entity.py",
>>>>>>> line 731, in setup_entities
>>>>>>> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
>>>>>>> \entity.py",
>>>>>>> line 419, in setup_properties
>>>>>>> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
>>>>>>> \entity.py",
>>>>>>> line 431, in call_builders
>>>>>>> File "C:\Python25\lib\site-packages\elixir-0.5.0-py2.5.egg\elixir
>>>>>>> \relationship
>>>>>>> s.py", line 406, in create_properties
>>>>>>> File "c:\python25\lib\site-packages\sqlalchemy-0.4.1-py2.5.egg
>>>>>>> \sqlalchemy\orm\
>>>>>>> __init__.py", line 245, in relation
>>>>>>> return PropertyLoader(argument, secondary=secondary, **kwargs)
>>>>>>> TypeError: __init__() got an unexpected keyword argument 'table_name'
>>>>>>> </snip>
>>>>>>> Am I wrong in thinking that this is an error with either Elixir or
>>>>>>> SQLAlchemy and not my model.py?
>>>>>>> If so, would it be best to try following up with both of those groups?
>>>>>>> Thanks,
>>>>>>> Jason
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBR3RKPdpwN1sq38njAQIYEAQAkSBx6hnvR/B9ZVnlR8bVS6vpVgvSryHN
AUlANkPfQqCEUIz40LfpqiCQ1C+N+BhJTgYenuUKtRi/DucHiyHabHiKfYj9I6X/
nL47ab3A52RYcF0XnrIzqzkacvKzvX9oJK52PIdthNdP2fZ7zEsy4xUI7lbu8l4C
WVZzFIhqMkI=
=eUn4
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---