On Thu, Dec 02, 2010 at 02:59:54PM +0100, Stéphane Klein wrote:
> in a Pylons Framework project, I've this error :
> 
> ProgrammingError: (ProgrammingError) SQLite objects created in a
> thread can only be used in that same thread.The object was created
> in thread id 1091357552 and this is thread id 1099762544
> 
> I use a standard sqlalchemy pylons skeleton.
> 
> I use "paster serve" to launch my application.
> 
> I don't understand where can be my mistake.

We can't tell without seeing your code.

> Some help about this error message ?

It basically means you loaded/created an ORM object, then stored it in a
global variable somewhere, instead of discarding it before the end of
the request like you should've.

Marius Gedminas
-- 
The old political syllogism "something must be done: this is something:
therefore this will be done" appears to be at work here, in spades.

Attachment: signature.asc
Description: Digital signature

Reply via email to