Awn

./configure does not check for python libraries

Bug #136738 reported by Rémi Audebert
12
Affects Status Importance Assigned to Milestone
Awn
Fix Released
High
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/codegen.py", line 1707, in <module>
    sys.exit(main(sys.argv))
  File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1665, in main
    p.startParsing()
  File "/usr/share/pygtk/2.0/codegen/scmexpr.py", line 113, in startParsing
    for statement in statements:
  File "/usr/share/pygtk/2.0/codegen/scmexpr.py", 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.

Revision history for this message
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 "configure.in" instead of "configure"

haytjes (h4writer)
Changed in awn:
importance: Undecided → High
Revision history for this message
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.

Revision history for this message
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...

Revision history for this message
Luka Napotnik (luka-napotnik) wrote :

I have python-gconf installed but compile stil fails.

Revision history for this message
Neil J. Patel (njpatel) wrote :

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

Revision history for this message
Neil J. Patel (njpatel) wrote :

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

Revision history for this message
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.

Revision history for this message
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 :-)

Revision history for this message
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)
Changed in awn:
status: New → Confirmed
Julien Lavergne (gilir)
Changed in awn:
assignee: nobody → gilir
status: Confirmed → In Progress
Revision history for this message
Julien Lavergne (gilir) wrote :

Should be fix in the Bzr version 154.

Changed in awn:
status: In Progress → Fix Committed
Revision history for this message
Mark Lee (malept) wrote :

Fix milestone.

Changed in awn:
milestone: 0.2 → 0.2.4
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :
Changed in awn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.