[sqlalchemy] Re: Can anyone explain me why my thread block ???

2010-05-02 Thread christiandemo...@gmail.com
Hi, I found what block my print in my thread. It s not sql alchemy library, it s MySQLdb... They import directly in the function, import block print in threads I modified the library (imports move out of the method) and it works very well now. I can now run asynchronous queries so my gui don t

[sqlalchemy] No import in function and method = thread firendly

2010-05-02 Thread christiandemo...@gmail.com
Hi again, I understand all! SqlAlchemy and MySQLdb don t respect this rule 16.2.9 http://docs.python.org/library/threading.html#threaded-imports Why? :( -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to

Re: [sqlalchemy] No import in function and method = thread firendly

2010-05-02 Thread christiandemo...@gmail.com
see SQLAlchemy spawning any threads ?Its the responsibility of the threaded application to make sure all imports occur before threads are spawned. The documentation you refer to states as much. On May 2, 2010, at 8:34 AM, christiandemo...@gmail.com wrote: Hi again, I understand

Re: [sqlalchemy] No import in function and method = thread firendly

2010-05-02 Thread christiandemo...@gmail.com
Hi All it says regarding deadlocks is that an import shouldn't spawn a thread Can you explain me why import math (whick don t spawn a thread) block this thread (only one ok appear in terminal)? When i remove import math, ok appears continuously in term. I don t understand class

Re: [sqlalchemy] No import in function and method = thread firendly

2010-05-02 Thread christiandemo...@gmail.com
SQLAlchemy spawning any threads ?Its the responsibility of the threaded application to make sure all imports occur before threads are spawned. The documentation you refer to states as much. On May 2, 2010, at 8:34 AM, christiandemo...@gmail.com wrote: Hi again, I understand all

[sqlalchemy] Can anyone explain me why my thread block ???

2010-05-01 Thread christiandemo...@gmail.com
Hello everybody, i want to use SqlAlchemy in a thread but i have a problem. Here two files : *Orm.py* # -*- coding: ISO-8859-15 -*- from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.sql import func, exists from