[MacPorts] #56031: gtimelog @0.9.2 x11/gtimelog: Please add GTK3 to dependencies

MacPorts noreply at macports.org
Tue Mar 13 09:11:27 UTC 2018


#56031: gtimelog @0.9.2 x11/gtimelog: Please add GTK3 to dependencies
--------------------+----------------------
 Reporter:  goetzk  |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Low     |  Milestone:
Component:  ports   |    Version:  2.4.2
 Keywords:          |       Port:  gtimelog
--------------------+----------------------
 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
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56031>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list