I hit this one a while back; its a limitation of SQLite. * You could create a new process to access the DB, but that's probably not very safe (they really mean the Lite part of the name!)
* You could switch to a DB, like MySQL, which does support concurrent access * You could have your thread access your app as if it were on a different server, using (say) urllib; then your request would get processed by the thread that can access the DB. Which of these might solve your problem depends on the specifics of what your thread is trying to do. Good luck, Scott On May 15, 12:22 pm, Kacper Krupa <[email protected]> wrote: > Hi, > > I've written application which creates another thread and do things > inside it. But why i can't use ORM in it? I'm using sqlite3 and i > always get: > > ProgrammingError: SQLite objects created in a thread can only be used > in that same thread.The object was created in thread id 28329984 and > this is thread id 28687360 > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

