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)

main.log (193.3 KB) - added by c.herbig@… 11 years ago.
Installation log

Download all attachments as: .zip

Change History (12)

Changed 11 years ago by c.herbig@…

Attachment: main.log added

Installation log

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 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 in reply to:  2 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 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 in reply to:  4 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 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.

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

According to #40556 r112026 should have fixed this. Did it?

comment:7 in reply to:  6 Changed 11 years ago by c.herbig@…

Replying to ryandesign@…:

According to #40556 r112026 should have fixed this. Did it?

Not sure if it is because of that, but it does work now...

comment:8 in reply to:  6 Changed 11 years ago by elelay (Eric Le Lay)

Replying to 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.

comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)

Owner: changed from macports-tickets@… to mascguy
Status: newassigned

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: assignedclosed

Closing for now, given that Python is no longer in play. But if this is still an issue, please let us know ASAP!

Note: See TracTickets for help on using tickets.