Opened 9 years ago

Closed 9 years ago

#3744 defect closed worksforme (worksforme)

Issues with gtk2reactor

Reported by: Thijs Triemstra Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Thijs Triemstra Branch:


When running the unit tests against the trunk it fails on this test:

[ERROR]: twisted.manhole.ui.test.test_gtk2manhole

Traceback (most recent call last):
  File "/Volumes/collab1/Sites/software/twisted/svn/Twisted/trunk/twisted/trial/", line 555, in loadPackage
  File "/Volumes/collab1/Sites/software/twisted/svn/Twisted/trunk/twisted/python/", line 380, in load
  File "/Volumes/collab1/Sites/software/twisted/svn/Twisted/trunk/twisted/python/", line 462, in namedAny
  File "/Volumes/collab1/Sites/software/twisted/svn/Twisted/trunk/twisted/python/", line 398, in _importAndCheckStack
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/branches/ref-split-code-3713/twisted/manhole/ui/test/", line 21, in <module>
    if gtk.gtk_version[0] == 1:
exceptions.AttributeError: 'module' object has no attribute 'gtk_version'

When starting manhole it throws this error:

$ manhole
Traceback (most recent call last):
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/trunk/bin/manhole", line 21, in <module>
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/trunk/twisted/scripts/", line 102, in run
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/trunk/twisted/scripts/", line 138, in run_gtk2
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/trunk/twisted/internet/", line 279, in install
    reactor = Gtk2Reactor(useGtk)
  File "/Volumes/collab/Sites/software/twisted/svn/Twisted/trunk/twisted/internet/", line 93, in __init__
    self.__pending = gtk.events_pending
AttributeError: 'module' object has no attribute 'events_pending'

Here's some info about my gtk:

$ python
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> gtk._get_available_versions()
{'2.0': '/Library/Python/2.5/site-packages/gtk-2.0'}
>>> import pygtk
>>> pygtk._get_available_versions()
{'2.0': '/Library/Python/2.5/site-packages/gtk-2.0'}
>>> import gobject
>>> print gobject.pygobject_version
(2, 16, 1)
>>> print gobject.pygtk_version
(2, 16, 1)

Change History (4)

comment:1 Changed 9 years ago by Jean-Paul Calderone

This is weird. #pygtk says that gtk.gtk_version didn't get removed and suggests that maybe this is an OS X specific issue. Although they didn't present any hypothesis.

comment:2 Changed 9 years ago by Glyph

Owner: changed from Glyph to Thijs Triemstra

This obviously bears further investigation.

comment:3 Changed 9 years ago by Glyph

Resolution: worksforme
Status: newclosed

As it happens, I have an OS X / PyGTK install here, and I don't see any of these problems. Please reopen if further investigation yields anything interesting.

comment:4 Changed 7 years ago by <automation>

Owner: Thijs Triemstra deleted
Note: See TracTickets for help on using tickets.