Opened 11 years ago

Closed 10 years ago

#43702 closed defect (fixed)

gtk-osx-application @2.0.5 configure failure, install error with -python27 on 10.9

Reported by: jamartin@… Owned by: elelay (Eric Le Lay)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: gtk-osx-application

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi, I'm trying to install gtk-osx-application @2.0.5 with -python27 on 10.9, but I'm getting the following error:

$ sudo port install gtk-osx-application -python27
--->  Computing dependencies for gtk-osx-application
--->  Configuring gtk-osx-application
Error: Failed to configure gtk-osx-application, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gtk-osx-application/gtk-osx-application/work/gtk-mac-integration-2.0.5/config.log
Error: org.macports.configure for port gtk-osx-application returned: configure failure: command execution failed
Please see the log file for port gtk-osx-application for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gtk-osx-application/gtk-osx-application/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gtk-osx-application failed

It looks like it's not finding PyGTK, but as far as I know it's installed. I have the following ports installed and active on my system:

py27-pygtk @2.24.0_3+quartz (active)
py27-cairo @1.10.0_3 (active)
py27-gobject @2.28.6_3 (active)
python27 @2.7.6_0 (active)

I have attached the logs mentioned in the error message, but to my eye the most relevant bit is this:

:info:configure configure: Switch on Gtk+ Version
:info:configure checking PyGObject 2.16 or newer... checking for PYGOBJECT... no
:info:configure PyGObject 2.16.0 or newer
:info:configure checking PyGtk 2.14 or newer... checking for PYGTK... no
:info:configure PyGTK 2.14.0 or newer
:info:configure checking PyGObject-Codegen 2.0... checking for pygobject-codegen-2.0... no
:info:configure pygobject-codegen-2.0 script not found
:info:configure checking PyGtk DefsDir... Package pygtk-2.0 was not found in the pkg-config search path.
:info:configure Perhaps you should add the directory containing `pygtk-2.0.pc'
:info:configure to the PKG_CONFIG_PATH environment variable
:info:configure No package 'pygtk-2.0' found
:info:configure 
:info:configure checking whether to build Python bindings... configure: error: Couldn't find the required Python tools.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gtk-osx-application/gtk-osx-application/work/gtk-mac-integration-2.0.5" && ./configure --libdir=/opt/local/lib --includedir=/opt/local/include --prefix=/opt/local --with-gtk=gtk+-2.0 --enable-python=yes 
:info:configure Exit code: 1

Any help or suggestions would be very appreciated.

Thanks!

Attachments (2)

main.log (20.3 KB) - added by jamartin@… 11 years ago.
config.log (37.9 KB) - added by jamartin@… 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by jamartin@…

Attachment: main.log added

Changed 11 years ago by jamartin@…

Attachment: config.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: mavericks python27 py27-pygtk gtk-osx-application removed
Owner: changed from macports-tickets@… to elelay@…

"-python27" means "without python27". gtk-osx-application apparently requires python, so don't do that. To request gtk-osx-application with python27, use "+python27". That also happens to be the default for this port, according to "port variants gtk-osx-application", so if you don't specify anything about python, that's what you'll get.

comment:2 in reply to:  1 Changed 10 years ago by jamartin@…

Replying to ryandesign@…:

"-python27" means "without python27". gtk-osx-application apparently requires python, so don't do that. To request gtk-osx-application with python27, use "+python27". That also happens to be the default for this port, according to "port variants gtk-osx-application", so if you don't specify anything about python, that's what you'll get.

Thanks for your reply. I'm trying the linphone project and instructions indicates that we install gtk-osx-application using python, we deduce that it will be necessary to compile linphone.

comment:3 Changed 10 years ago by elelay (Eric Le Lay)

Resolution: fixed
Status: newclosed

gtk-osx-application will now understand -python27 as equivalent to no_python (r123595).

Note: See TracTickets for help on using tickets.