[MacPorts] #50536: py27-gobject3 @3.18.2_0 "Cannot import GtK"

MacPorts noreply at macports.org
Wed Feb 3 17:48:57 PST 2016


#50536: py27-gobject3 @3.18.2_0 "Cannot import GtK"
-------------------------+---------------------------------
 Reporter:  nek2626@…    |      Owner:  macports-tickets@…
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.3.4
 Keywords:  python, GtK  |       Port:  py27-gobject3, gtk3
-------------------------+---------------------------------
 Using OS X 10.9.5. At one point I had the following imports working in
 python:
 {{{
 import gi
 from gi.repository import GtK, GObject, Gdk
 }}}
 A little backstory: I was poking around in my Python.frameworks files for
 gi because of an unrelated issue with GtK and matplotlib. I opened some
 files in emacs, one sent up a warning about local variables to which I
 think I may have responded yes. After this poking around, I was no longer
 able to import GtK and Gdk. I instead got the errors:
 {{{
 ImportError: cannot import name GtK
 ImportError: cannot import name Gdk
 }}}

 I uninstalled py27-gobject3 and attempted to reinstall it to no avail. I
 also tried uninstalling with ''--follow-dependencies" and then
 reinstalling, again with no luck. During one uninstall I noted that the
 original gi directory I was in in ../Python.framworks/ was no longer
 there. I've been trying my hand at multiple fixes, including seeing this
 ticket - https://trac.macports.org/ticket/40179 - saying I should also
 have gtk3 installed, which did not help. I'm super lost at this point if
 it's something wrong with the installer or what. I'm also not sure if
 there is any further information that would be useful to help diagnose
 this issue.

 (py27-gobject3 was listed as open maintainer, so I didn't include a cc to
 any maintainer).

-- 
Ticket URL: <https://trac.macports.org/ticket/50536>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list