[Yum-devel] Python 2.5 sqlite dont like threads.
Jeremy Katz
katzj at redhat.com
Tue Dec 19 16:43:24 UTC 2006
On Mon, 2006-12-18 at 10:23 +0100, Tim Lauridsen wrote:
> I just look at this bugzilla report on yumex:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219746
[snip]
> ProgrammingError: SQLite objects created in a thread can only be used in that
> same thread.The object was created in thread id -1240970352 and this is thread
> id -1208543552
[snip]
> I looks like the sqlite3 stuff in python 2.5 don't like threads very
> much, it very bad for me, in the generation of yumex 1.9.x, everything
> is done in a thread to make the gui responsive at all times.
> Anybody body got a clue, how to solve this, it works with out problems
> in python 2.4.
This has always been the case. The use of sqlite cursors across threads
can't be safely done. So you're now getting told that it's likely to
cause problems rather than just silent corruption.
Jeremy
More information about the Yum-devel
mailing list