Opened 11 years ago
Closed 3 years ago
#40547 closed defect (fixed)
gtk-osx-application @2.0.1 configure fails to find python...
Reported by: | c.herbig@… | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | elelay (Eric Le Lay), cooljeanius (Eric Gallager) | |
Port: | gtk-osx-application |
Description
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
Attachments (1)
Change History (12)
Changed 11 years ago by c.herbig@…
comment:2 follow-up: 3 Changed 11 years ago by elelay (Eric Le Lay)
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 ;-)
comment:3 Changed 11 years ago by c.herbig@…
Replying to 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 >>>
comment:4 follow-up: 5 Changed 11 years ago by elelay (Eric Le Lay)
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.
comment:5 Changed 11 years ago by c.herbig@…
Replying to 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 GtkNow 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.
comment:6 follow-ups: 7 8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:7 Changed 11 years ago by c.herbig@…
comment:8 Changed 11 years ago by elelay (Eric Le Lay)
Replying to ryandesign@…:
#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.
comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)
Owner: | changed from macports-tickets@… to mascguy |
---|---|
Status: | new → assigned |
comment:10 Changed 3 years ago by mascguy (Christopher Nielsen)
Since we no longer have Python bindings in the various gtk-osx-application
subports, can we close this?
comment:11 Changed 3 years ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Closing for now, given that Python is no longer in play. But if this is still an issue, please let us know ASAP!
Installation log