[MacPorts] #40547: gtk-osx-application @2.0.1 configure fails to find python...
#40547: gtk-osx-application @2.0.1 configure fails to find python... ------------------------+--------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: gtk-osx-application ------------------------+--------------------------------- Could be due to the gtk2/3 thing, don't know, but during the configure phase it summarizes thusly: {{{ :info:configure checking Python Version... checking for a Python interpreter with version >= 2.3.5... python :info:configure checking for python... /usr/bin/python :info:configure checking for python version... 2.7 :info:configure checking for python platform... darwin :info:configure checking for python script directory... ${prefix}/lib/python2.7/site-packages :info:configure checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages :info:configure checking Python Headers... checking for headers required to compile python extensions... found :info:configure configure: Switch on Gtk+ Version :info:configure checking for PYGOBJECT_2... no :info:configure checking PyGObject 3.0... checking for PYGOBJECT_3... no :info:configure No pygobject found ... :info:configure :info:configure Prefix : /opt/local :info:configure Python bindings: no :info:configure }}} -- Ticket URL: <https://trac.macports.org/ticket/40547> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by elelay@…): Hi, do you experience actual issues with gtk-osx-application in python ? With the new gtk3 there is no more need for specific code; everything works through gobject-introspection. You should try to run python2.7 and paste this code: {{{ from gi.repository.GtkosxApplication import Application a = Application() # make it jump a.attention_request(0) # stop jumping a.cancel_attention_request(0) }}} It works for me ;-) -- Ticket URL: <https://trac.macports.org/ticket/40547#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by c.herbig@…): Replying to [comment:2 elelay@…]: I got this: {{{
from gi.repository.GtkosxApplication import Application Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gi.repository.GtkosxApplication
}}}
-- Ticket URL: <https://trac.macports.org/ticket/40547#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by elelay@…): ok, I also had issues with the precompiled version of py-gobject3. I could not even do (you can try that as well): {{{ from gi.repository import Gtk }}} Now I solved it by doing: {{{ port uninstall -f py27-gobject3 port clean py27-gobject3 port install -s py27-gobject3 }}} (ensuring that the package is actually built from source) and then retrying the python sample. -- Ticket URL: <https://trac.macports.org/ticket/40547#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by c.herbig@…): Replying to [comment:4 elelay@…]:
ok, I also had issues with the precompiled version of py-gobject3. I could not even do (you can try that as well): {{{ from gi.repository import Gtk }}}
Now I solved it by doing: {{{ port uninstall -f py27-gobject3 port clean py27-gobject3 port install -s py27-gobject3 }}}
(ensuring that the package is actually built from source) and then retrying the python sample. That worked. Thank you.
-- Ticket URL: <https://trac.macports.org/ticket/40547#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by ryandesign@…): According to #40556 r112026 should have fixed this. Did it? -- Ticket URL: <https://trac.macports.org/ticket/40547#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by c.herbig@…): Replying to [comment:6 ryandesign@…]:
According to #40556 r112026 should have fixed this. Did it? Not sure if it is because of that, but it does work now...
-- Ticket URL: <https://trac.macports.org/ticket/40547#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40547: gtk-osx-application @2.0.1 configure fails to find python... ----------------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: gtk-osx-application | ----------------------------------+-------------------------------- Comment (by elelay@…): Replying to [comment:6 ryandesign@…]:
According to #40556 r112026 should have fixed this. Did it?
#40556 is about smokeping. You mean #40554. Concerning this ticket, there is still a problem with py27-gobject3 because {{{ from gi.repository import Gtk }}} should work (has nothing to do with gtk-osx-application python bindings). I'd leave it open until it's been investigated. -- Ticket URL: <https://trac.macports.org/ticket/40547#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts