[sqlalchemy] 'NoneType' object has no attribute '_sa_iterator' exception

2010-03-27 Thread Fernando Takai
Hi all! I'm running SQLAlchemy 0.6b2 for a while and i've seem some strange exception (AttributeError: 'NoneType' object has no attribute '_sa_iterator') happening one in a while. This is my stacktrace: Traceback (most recent call last): File /usr/lib/python2.5/threading.py, line 486, in

Re: [sqlalchemy] 'NoneType' object has no attribute '_sa_iterator' exception

2010-03-27 Thread Sebastian Elsner
Well seems like the project you want to access is just None. SA can't do anything with it. I had a similar problem recently, it was bacause the objects got garbage collected before being accessed. A testcase would be really helpful. On Sat, 27 Mar 2010 17:42:20 +0100, Fernando Takai

Re: [sqlalchemy] 'NoneType' object has no attribute '_sa_iterator' exception

2010-03-27 Thread Michael Bayer
On Mar 27, 2010, at 12:42 PM, Fernando Takai wrote: Hi all! I'm running SQLAlchemy 0.6b2 for a while and i've seem some strange exception (AttributeError: 'NoneType' object has no attribute '_sa_iterator') happening one in a while. This is my stacktrace: Traceback (most recent call

Re: [sqlalchemy] 'NoneType' object has no attribute '_sa_iterator' exception

2010-03-27 Thread Fernando Takai
is it possible your object is present in a session that is, in a different thread, being expired as this operation runs ? I don't know, but i can verify that. If that is happening, what can i do to prevent? Well seems like the project you want to access is just None. SA can't do anything

Re: [sqlalchemy] 'NoneType' object has no attribute '_sa_iterator' exception

2010-03-27 Thread Michael Bayer
On Mar 27, 2010, at 3:28 PM, Fernando Takai wrote: is it possible your object is present in a session that is, in a different thread, being expired as this operation runs ? I don't know, but i can verify that. If that is happening, what can i do to prevent? an object associated with a