2011/10/31 Nathan Jones <nat...@ncjones.com>

> >
> "/usr/local/lib/python2.7/dist-packages/pytrainer/upgrade/versions/version014.py",
> > line 50, in _normalize_weight
> >     migrate_engine.execute(text("update sports set weight=:weight where
> > id_sports=:id"), id=self._id, weight=0.0)
> >   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line
> > 2291, in execute
> > ...
> > sqlalchemy.exc.OperationalError: (OperationalError) database is locked
> None
> > None
>
> It looks like this could be due to not closing the result set before
> issuing the update statement. I cannot reproduce it but I've committed
> a potential fix anyway. Let me know if it works.
>
> It's strange that no one else has experienced this problem. Maybe it's
> related to the version of sqlite and sqlalchemy are you using.
>
This fixed the problem. Thank you.
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to