Opened 8 years ago

Last modified 8 years ago

#50536 closed defect

py27-gobject3 @3.18.2_0 "Cannot import GtK" — at Version 2

Reported by: nek2626@… Owned by: cal@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: py-gobject3

Description (last modified by mf2k (Frank Schima))

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 - 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).

Change History (2)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: python GtK removed
Owner: changed from macports-tickets@… to cal@…
Port: py-gobject3 added; py27-gobject3 gtk3 removed

Per the guidelines, please Cc the port maintainer in the future, otherwise (s)he won't likely see the ticket and your issue will not be addressed.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)
Note: See TracTickets for help on using tickets.