Ticket #5790 defect closed fixed
threads_init not always present in gi bindings
| Reported by: | itamar | Owned by: | itamar |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | jesstess | Branch: | |
| Author: | itamarst | Launchpad Bug: |
Description
Jessica reported the following:
$ python -c "import twisted; print twisted.__version__; from twisted.internet import gtk3reactor"
12.0.0+r34756
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "twisted/internet/gtk3reactor.py", line 22, in <module>
from twisted.internet import gireactor
File "twisted/internet/gireactor.py", line 53, in <module>
_oldGiInit()
File "twisted/internet/gireactor.py", line 42, in _oldGiInit
GLib.threads_init()
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 268, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 101, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'threads_init'
Change History
Note: See
TracTickets for help on using
tickets.
