problem: ns-3.29 visualizer Ubuntu

85 views
Skip to first unread message

wangzha...@gmail.com

unread,
Dec 25, 2018, 6:38:47 AM12/25/18
to ns-3-users
ubuntu16.04 NS-3.29

ubuntu@ubuntu:~/ns-allinone-3.29/ns-3.29$ ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --vis
Waf: Entering directory `/home/ubuntu/ns-allinone-3.29/ns-3.29/build'
Waf: Leaving directory `/home/ubuntu/ns-allinone-3.29/ns-3.29/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (4m53.496s)
Could not load plugin 'show_last_packets.py': could not import gobject (could not find _PyGObject_API object)
Could not load icon applets-screenshooter due to missing gnomedesktop Python module
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/home/ubuntu/ns-allinone-3.29/ns-3.29/src/visualizer/visualizer/core.py", line 1853, in start
    viz = Visualizer()
  File "/home/ubuntu/ns-allinone-3.29/ns-3.29/src/visualizer/visualizer/core.py", line 760, in __init__
    self.create_gui()
  File "/home/ubuntu/ns-allinone-3.29/ns-3.29/src/visualizer/visualizer/core.py", line 1096, in create_gui
    monitor = display.get_primary_monitor()
AttributeError: 'X11Display' object has no attribute 'get_primary_monitor'

Who can help me?
Thanks.

Tom Henderson

unread,
Dec 25, 2018, 6:51:06 PM12/25/18
to ns-3-...@googlegroups.com

Have you installed the packages listed on the installation wiki?

 apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3  

I think we may have a lingering problem with the Ubuntu 16.04 (Linux Mint 18) version of these packages, because others have reported a similar problem.  It works for me on Ubuntu 18.04, but I haven't been able yet to check with 16.04.

http://network-simulator-ns-2.7690.n7.nabble.com/ns-3-on-Ubuntu-18-4-Python-Visualizer-not-enabled-goocanvas-modules-missing-td32176.html

- Tom

wangzha...@gmail.com

unread,
Dec 26, 2018, 8:42:52 AM12/26/18
to ns-3-users
Thanks. I solved the problem in ubuntu18.04 

在 2018年12月26日星期三 UTC+8上午7:51:06,Tom Henderson写道:
On 12/25/18 3:38 AM, wangzha...@gmail.com wrote:
ubuntu16.04 NS-3.29

ubu...@ubuntu:~/ns-allinone-3.29/ns-3.29$ ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --vis
Reply all
Reply to author
Forward
0 new messages