twisted/internet gtk2reactor.py issue. (breaks for instance deluge);
Jesper Schmitz Mouridsen
jesper.schmitz.mouridsen at gmail.com
Sat Jun 23 07:50:07 UTC 2012
Hello maintainers of python.
I'm using python27 from ports (upgraded)
This is an issue with gtk2reactor.py
running
#
import gobject
from twisted.internet import gtk2reactor
reactor = gtk2reactor.install()
#
gives :
/usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40:
RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
ImportError: No module named gi
SOLUTION ?? :
editing twisted/internet/gtk2reactor.py from
_glibbase.ensureNotImported(
["gi"],
"Introspected and static glib/gtk bindings must not be mixed; can't "
"import gtk2reactor since gi module is already imported.",
/*--*/ preventImports=["gi"])
/+++/ preventImports=[""])
makes deluge work.....
Regards.
Jesper Schmitz Mouridsen, Denmark.
More information about the freebsd-python
mailing list