Opened 5 years ago
Closed 4 years ago
#60413 closed defect (fixed)
py38-gobject3 @3.28.3_0 Can't import Gtk
Reported by: | InvisibleFunction | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: | py-gobject3 |
Description
I'm running Mac OS 10.14.6 with Xcode Version 11.3.1 (11C504).
I was having trouble running a python app but I was able to reproduce the problem by following a simple Python GTK tutorial. I'm following the steps from https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html
I've got these installed:
[me@laptop ~]$ port echo installed | grep -i -e "py38-gobject" -e "^gtk3" -e "^python38" gtk3 @3.24.18_0+x11 py38-gobject3 @3.28.3_0 python38 @3.8.2_0
and trying to run this causes a Traceback (which I'll attach):
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk
Attachments (1)
Change History (4)
Changed 5 years ago by InvisibleFunction
Attachment: | traceback.txt added |
---|
comment:1 Changed 5 years ago by jmroot (Joshua Root)
Owner: | set to dbevans |
---|---|
Port: | py-gobject3 added; py38-gobject3 removed |
Status: | new → assigned |
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Updating py-gobject3 has cured this problem for me so I'll call it fixed.
Note: See
TracTickets for help on using
tickets.
There's an upstream bug report but it's also from a MacPorts user so it's not clear whether this is a MacPorts-specific problem or an upstream one.
We're several versions behind on py-gobject3. Maybe updating would help?
This bug is the reason why I can't use python 3.8 for MyPaint 2.