Hi Chris,

Here is the error:

[EMAIL PROTECTED]:~/tg/Reps> ./start-reps.py
Traceback (most recent call last):
  File "./start-reps.py", line 24, in <module>
    from reps.controllers import Root
  File "/home/jerry/tg/Reps/reps/controllers.py", line 10, in <module>
    from ctrls.studforms import StudentReportControllers
  File "/home/jerry/tg/Reps/reps/ctrls/studforms.py", line 6, in
<module>
    from model import *
  File "/home/jerry/tg/Reps/reps/model.py", line 30, in <module>
    Column('expiry', DateTime)
  File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.0-py2.5.egg/
sqlalchemy/schema.py", line 99, in __call__
    raise exceptions.ArgumentError("Table '%s' is already defined for
this MetaData instance." % key)
sqlalchemy.exceptions.ArgumentError: Table 'visit' is already defined
for this MetaData instance.

Here is the output from 'tg-admin info'

TurboGears Complete Version Information

TurboGears requires:

* TurboGears 1.0.4b2dev-r3664
* SQLAlchemy 0.4.0
* TurboKid 1.0.3
* TurboJson 1.1.1
* TurboCheetah 0.9.5
* simplejson 1.7.3
* setuptools 0.6c7
* RuleDispatch 0.5a0.dev-r2306
* PasteScript 1.3.6
* FormEncode 0.7.1
* DecoratorTools 1.5
* configobj 4.4.0
* CherryPy 2.2.1
* Cheetah 2.0
* kid 0.9.6
* RuleDispatch 0.5a0.dev-r2306
* Cheetah 2.0
* PyProtocols 1.0a0dev-r2302
* PasteDeploy 1.3.1
* Paste 1.5
* DecoratorTools 1.5

Toolbox Gadgets

* info (TurboGears 1.0.4b2dev-r3664)
* catwalk (TurboGears 1.0.4b2dev-r3664)
* shell (TurboGears 1.0.4b2dev-r3664)
* designer (TurboGears 1.0.4b2dev-r3664)
* widgets (TurboGears 1.0.4b2dev-r3664)
* admi18n (TurboGears 1.0.4b2dev-r3664)

Identity Providers

* sqlobject (TurboGears 1.0.4b2dev-r3664)
* sqlalchemy (TurboGears 1.0.4b2dev-r3664)

tg-admin Commands

* info (TurboGears 1.0.4b2dev-r3664)
* shell (TurboGears 1.0.4b2dev-r3664)
* quickstart (TurboGears 1.0.4b2dev-r3664)
* update (TurboGears 1.0.4b2dev-r3664)
* sql (TurboGears 1.0.4b2dev-r3664)
* i18n (TurboGears 1.0.4b2dev-r3664)
* toolbox (TurboGears 1.0.4b2dev-r3664)

Visit Managers

* sqlobject (TurboGears 1.0.4b2dev-r3664)
* sqlalchemy (TurboGears 1.0.4b2dev-r3664)

Template Engines

* kid (TurboKid 1.0.3)
* cheetah (TurboCheetah 0.9.5)
* json (TurboJson 1.1.1)

Widget Packages


TurboGears Extensions

* visit (TurboGears 1.0.4b2dev-r3664)
* identity (TurboGears 1.0.4b2dev-r3664)



I have in my controllers.py:
from model import *
from ctrls.studforms import StudentReportControllers

In the file ctrls/studforms.py, I have:
from model import *

class StudentReportControllers(controllers.RootController):


It looks like something doesn't like my importing model.py twice.
But how else do I access the objects in my model from the file in the
subdirectory?

Thanks,

Jerry.

On Nov 9, 6:20 pm, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Gerry wrote:
> > I get a different error, also related to identity when I try the SVN
> > head version in branches/1.0.
>
> > I created a new quickstart without identity and got an error when
> > importing model.py again.
> > An SQLAlchemy complaint about metadata for a table being existing
> > already.
>
> Gerry, can you list the exact steps to reproduce this problem, and the
> output of tg-admin info?
>
> -- Chris


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to