Opened 8 years ago

Last modified 8 years ago

#50536 closed defect

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

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

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.