Bug 1741 - waf misreports reason for visualizer not being included
waf misreports reason for visualizer not being included
Status: NEW
Product: ns-3
Classification: Unclassified
Component: build system
All All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
Depends on:
  Show dependency treegraph
Reported: 2013-08-02 12:25 EDT by Tom Henderson
Modified: 2013-08-02 12:25 EDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2013-08-02 12:25:21 EDT
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>
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
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"