[pygtk] pygtk 2.3.94 (unstable) and I can NOT enable threading!!
Gustavo J. A. M. Carneiro
gjc at inescporto.pt
Sun Jul 25 19:05:38 WST 2004
A Dom, 2004-07-25 às 11:35, Nikos Kouremenos escreveu:
> it all started with latest unstable :P (2.3.94)
> all I did was:
> python setup.py install
> but I had the problems discussed later. then I did:
> python setup.py --enable-threading which donesn't work [gives error
> about wrong param]
>
> lastly I did:
> ./configure && make && sudo make install
>
> this works and should enable threads by default
> what is interesting is that IT SAYS it DOES.
> BUT it DOESNT work with threads.
>
> # python
> Python 2.3.4 (#2, May 27 2004, 17:42:19)
> [GCC 3.4.0] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gtk
> >>> gtk.threads_init()
>
> Gdk-ERROR **: g_thread_init() must be called before gdk_threads_init()
> aborting...
> Aborted
>
> I have gtk 2.4.4
>
> on the other hand [and that is very interesting] both my script and pycrust
> say this:
> RuntimeError: pygtk threading disabled at compile time
> when I just do:
> import gtk
> gtk.threads_init()
>
> I hope I'm not missing something extra big here.
> Anyways place your thoughts :P
You spotted a bug -> bugzilla!
I should warn you that threading in pygtk has never really been very
stable. You're welcome to help test/debug threading, but don't expect
it to work flawlessly.
If you really need threading, perhaps you should isolate the gui part
from the threaded part, using mutexes or async queues.
Regards.
--
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic
More information about the pygtk
mailing list