[MacPorts] #40179: Can't import gi.repository after installing gtk3
MacPorts
noreply at macports.org
Mon Aug 19 10:24:00 PDT 2013
#40179: Can't import gi.repository after installing gtk3
------------------------+--------------------------------
Reporter: istlota@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Resolution: invalid | Keywords:
Port: gtk3 |
------------------------+--------------------------------
Comment (by istlota@…):
Replying to [comment:2 cal@…]:
> You probably want the `py27-gobject3` port.
Thanks. It continues to amaze me how promptly MacPorts support responds to
opened tickets, especially considering that I opened this ticket on a
Sunday.
'port installed' confirmed that py27-gobject was installed instead of
py27-gobject3. And, after I installed py27-gobject3, I am now able to
correctly 'from gi.repository import Gtk'. But, note, we are still left
with my initial question unanswered. Ergo, why did installing the gtk3
port on my mac end up with python not being able to find gi.repository?
Note that I began by uninstalling MacPorts, then reinstalled it from the
source tarball and only installed two ports [python27 and gtk3 +x11].
Which means gtk3 incorrectly installed py27-gobject when it needed to
install py27-gobject3 to operate properly. To be more specific, gtk3
installed at-spi2-atk as a dependency, which installed dbus-python27 as a
dependency, which installed p27-gobject as a dependency.
Is this one of those catch-22s the entire industry is having to just
accept for now due to having two Ways of binding Python to GTK [GTK2 and
PyGtk vs. GTK3 and PyGObject] which can and often do break each other when
both are used on the same machine? Or, can the gtk3 portfile, perhaps, be
modified to install the appropriate flavor of gobject3 [py27-gobject3 in
my case] as a dependency?
--
Ticket URL: <https://trac.macports.org/ticket/40179#comment:3>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list