Bug 1741

Summary: waf misreports reason for visualizer not being included
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: NEW ---    
Severity: normal CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Tom Henderson 2013-08-02 12:25:21 UTC
on a Fedora 19 with all the pyviz prerequisites installed, when I am ssh'ed into a machine, I get:

PyViz visualizer              : not enabled (Missing python modules: gtk)

However, looking at the build/config.log, I see instead.

Python module gtk
['/usr/bin/python', '-c', "\nimport gtk as current_module\nversion = getattr(current_module, '__version__', None)\nif version is not None:\n    print(str(version))\nelse:\n    print('unknown version')\n"]
err: Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display

not found
from /home/buildslave/scratch/bake/source/ns-3.17/src/visualizer: Could not find the python module 'gtk'

----

I'd expect waf to report "could not open display" rather than "missing gtk"