Broken PyGTK version check

Bug #337877 reported by Bastien Nocera on 2009-03-04
Affects Status Importance Assigned to Milestone
Fix Committed

Bug Description

This will happen in
configure:14088: checking if pygtk is >= 2.12
configure:14096: $PYTHON -c '
import gtk, sys
(maj, mid, min) = gtk.pygtk_version
if maj != 2 or mid < 12:

Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python2.5/site-packages/gtk-2.0/gtk/", line 79, in <module>
  File "/usr/lib64/python2.5/site-packages/gtk-2.0/gtk/", line 67, in _init
RuntimeError: could not open display

Bastien Nocera (hadess) wrote :

You should use a pkg-config check for "pygtk-2.0 >= 2.12" instead.

This will break building in pretty much every build system.

Bastien Nocera (hadess) wrote :

Same problem for pynotify, which tries to import gtk, and fails because the DISPLAY isn't available.

Patch for both attached

Valmantas Palikša (walmis) wrote :

Thanks. Commited to SVN.

Changed in blueman:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers