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

MacPorts noreply at macports.org
Fri Feb 5 06:20:43 PST 2016


#50536: py27-gobject3 @3.18.2_0 "Cannot import GtK"
--------------------------+-------------------
  Reporter:  nek2626@…    |      Owner:  cal@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.4
Resolution:               |   Keywords:
      Port:  py-gobject3  |
--------------------------+-------------------
Description changed by mf2k@…:

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

New 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 - 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#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list