Blueman - Bluetooth Manager

Broken PyGTK version check

Reported by Bastien Nocera on 2009-03-04
2
Affects Status Importance Assigned to Milestone
Blueman
Undecided
Unassigned

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:
        sys.exit(1)

'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 79, in <module>
    _init()
  File "/usr/lib64/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 67, in _init
    _gtk.init_check()
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