Hello first sorry for my poor English, i'm creating a GUI application using PyGTK, and i chose to use SQLAlchemy mapping. I get this error, without starting any thread and everything seems to be linear:
Traceback (most recent call last): File "/home/lethal/projects/test/edurag/edurag/plugins/gui.py", line 356, in on_ok_btn__clicked self.trans.commit() File "/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.2-py2.4.egg/sqlalchemy/mapping/objectstore.py", line 101, in commit self.__parent._trans_commit(self) File "/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.2-py2.4.egg/sqlalchemy/mapping/objectstore.py", line 123, in _trans_commit self.uow.commit() File "/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.2-py2.4.egg/sqlalchemy/mapping/objectstore.py", line 409, in commit commit_context.register_object(obj, listonly = True) File "/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.2-py2.4.egg/sqlalchemy/mapping/objectstore.py", line 473, in register_object raise InvalidRequestError("Detected a mapped object not present in the current thread's Identity Map: '%s'. Use objectstore.import_instance() to place deserialized instances or instances from other threads" % repr(obj._instance_key)) NameError: global name 'InvalidRequestError' is not defined Sometimes i solved this error by doing an import_instance or fixing problems after clearing the objectstore, but now i'm getting really bored of that... tell me if you need more informations. -- www.italianpug.org - Italian Python User Group Founder www.lethalman.net - Thoughts about computer technologies ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users