[wxpython-users] App does not close down - py2exe - work around
Andrea Gavana
andrea.gavana at gmail.com
Wed May 28 01:13:16 PDT 2008
Hi Werner,
On Wed, May 28, 2008 at 8:41 AM, Werner F. Bruhin wrote:
> Just an update in case anyone else runs into this.
>
> The problem seems to come from sqlalchemy, but I am not yet sure how to
> resolved it nicely, but in the mean time I am using the following work
> around.
>
> self.engine = db.sa.create_engine(dburl, encoding='utf8', echo=False)
> self.Session = db.sao.sessionmaker(autoflush=True, transactional=True)
> self.Session.configure(bind=self.engine)
> self.ds = self.Session()
> ...
> self.ds.Close()
>
> # adding the following allows the app to close down correctly
> del self.ds
> del self.Session
> del self.engine
>
>
> Mentioned it on the SA list, but had no feedback yet.
I am using SQLAlchemy as well in one of my apps, and I didn't have
this kind of problems... I suspect you are using a different "backend"
in SQLAlchemy (i.e., I use it to access SQLite, while I think you are
using Firebird or whatever is its name :-D ). Could Firebird be the
problem (or its links to SQLAlchemy)?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
More information about the wxpython-users
mailing list