Opened 7 years ago
Closed 3 years ago
#56031 closed defect (fixed)
gtimelog: Add GTK3 to dependencies
Reported by: | goetzk (Karl Goetz) | Owned by: | reneeotten (Renee Otten) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ||
Port: | gtimelog |
Description
When trying to run gtimelog I encounter the following error:
Karls-Air:~ kgoetz$ gtimelog /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py:59: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '2.0') before import to ensure that the right version gets loaded. from gi.repository import Gdk as gdk /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gi/overrides/Gtk.py:48: RuntimeWarning: You have imported the Gtk 2.0 module. Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail. As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0 warnings.warn(warn_msg, RuntimeWarning) /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py:60: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '2.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk as gtk Traceback (most recent call last): File "/opt/local/bin/gtimelog", line 11, in <module> load_entry_point('gtimelog==0.9.2', 'gui_scripts', 'gtimelog')() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py", line 1383, in main main_window = MainWindow(timelog, settings, tasks) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py", line 419, in __init__ self._init_ui() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py", line 424, in _init_ui builder.add_from_file(ui_file) GLib.Error: gtk-builder-error-quark: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/gtimelog.ui: required gtk+ version 3.0, current version is 2.24 (7)
Installing GTK3 fixes it:
Karls-Air:~ kgoetz$ sudo port install gtk3 Password: Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most ports will likely fail to build. ---> Computing dependencies for gtk3 The following dependencies will be installed: at-spi2-atk at-spi2-core libepoxy mesa xorg-dri2proto xorg-glproto xorg-libXtst xorg-libXxf86vm xorg-recordproto xorg-xf86vidmodeproto Continue? [Y/n]: y [...] ---> Cleaning gtk3 ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. Karls-Air:~ kgoetz$ gtimelog /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py:59: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gdk as gdk /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtimelog/main.py:60: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk as gtk
Change History (4)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | shreevatsa.public@… removed |
---|---|
Owner: | set to shreevatsa.public@… |
Priority: | Low → Normal |
Status: | new → assigned |
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Summary: | gtimelog @0.9.2 x11/gtimelog: Please add GTK3 to dependencies → gtimelog: Add GTK3 to dependencies |
---|
comment:3 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)
Owner: | shreevatsa.public@… deleted |
---|
comment:4 Changed 3 years ago by reneeotten (Renee Otten)
Owner: | set to reneeotten |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In bf61972e88b1c58602866d0e78c9e1c3eb9f0a8f/macports-ports (master):