./configure does not check for python libraries

Bug #136738 reported by Rémi Audebert on 2007-09-02
Affects Status Importance Assigned to Milestone
Julien Lavergne

Bug Description

When I tried to compile awn I got this error:
Traceback (most recent call last):
  File "/usr/share/pygtk/2.0/codegen/", line 1707, in <module>
  File "/usr/share/pygtk/2.0/codegen/", line 1665, in main
  File "/usr/share/pygtk/2.0/codegen/", line 113, in startParsing
    for statement in statements:
  File "/usr/share/pygtk/2.0/codegen/", line 27, in parse
    fp = open(filename, 'r')
IOError: [Errno 2] No such file or directory: '/usr/share/pygtk/2.0/defs/gconf.defs'

It seems that the library python-gnome2-dev is missing in the ./configure.
I use Ubuntu 7.4.

haytjes (h4writer) wrote :

I have no clue howto get this check in python-gnome2-dev, but if you now, can you provide a patch? You need to patch "" instead of "configure"

haytjes (h4writer) on 2007-09-05
Changed in awn:
importance: Undecided → High
Neil J. Patel (njpatel) wrote :

Unfortunately, I don't believe there is a fail-safe way to check python dependencies using autotools, as package names vary from distro to distro. The best we can do is to make sure we advertise the requirements as much as possible.

I'm leaving this open just in case I'm wrong.

haytjes (h4writer) wrote :

Shouldn't it be good to list all the dependencies in the INSTALL file? Think that's a common looked file when trying to install something...

Luka Napotnik (luka-napotnik) wrote :

I have python-gconf installed but compile stil fails.

Neil J. Patel (njpatel) wrote :

You need libgconf-dev installed if you are getting errors with regards to gconf.defs.

Neil J. Patel (njpatel) wrote :

Sorry, i meant o say you need python-gnome2-dev for that file.

A. Walton (awalton) wrote :

Can't you just write a bunch of python scripts that encompass some of the functionality from each of the libraries necessary, attempt to run them and if you get any kind of errors at all, bail during config?

I literally have no idea on this (I don't know python), but this is how the autotools traditionally tests for a bunch of library dependencies in other languages.

If that can't be done, it would at least be nice to say something along the lines of "If you don't have these packages installed a-w-n will not build. As we cannot test for this, you will need to do so for your distribution", and list common names for them.

2 cents.

Luca Ferretti (elle.uca) wrote :

Simple solution: add a check for gnome-python-2.0.pc (PKG_CHECK_EXISTS) or include it in COMMON_MODULES.

The gconf python bindings are shipped as part of "gnome-python" module (as named on gnome svn); 'cause gconf is part of GNOME Developer Platform, we can safetly assume that gconf python bindings are available if the pkg-config file for gnome-python is installed. If not, well... change vendor/distro :-)

Luca Ferretti (elle.uca) wrote :

Addition to my previous comment: is seems[1] you need also to check gnome-python-desktop-2.0.pc for "gnome-desktop" python bindings...

[1] luca@redrum:~$ jhbuild run awn-manager
Traceback (most recent call last):
  File "/opt/gnome2/bin/awn-manager", line 41, in ?
    import gnomedesktop
ImportError: No module named gnomedesktop

Mark Lee (malept) on 2007-11-29
Changed in awn:
status: New → Confirmed
Julien Lavergne (gilir) on 2007-12-18
Changed in awn:
assignee: nobody → gilir
status: Confirmed → In Progress
Julien Lavergne (gilir) wrote :

Should be fix in the Bzr version 154.

Changed in awn:
status: In Progress → Fix Committed
Mark Lee (malept) wrote :

Fix milestone.

Changed in awn:
milestone: 0.2 → 0.2.4
Changed in awn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers