> */sudo ./waf --run=ndn-simple --vis/*
>
> I got this errors,
> */Waf: Entering directory `/home/lrtndn/Desktop/ndnSIM_working/ns-3/build'
> /*
> */Waf: Leaving directory `/home/lrtndn/Desktop/ndnSIM_working/ns-3/build'/*
> */Build commands will be stored in build/compile_commands.json/*
> */'build' finished successfully (14.261s)/*
> */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/lrtndn/Desktop/ndnSIM_working/ns-3/src/visualizer/visualizer/core.py",
> line 1877, in start/*
> */ viz = Visualizer()/*
> */ File
> "/home/lrtndn/Desktop/ndnSIM_working/ns-3/src/visualizer/visualizer/core.py",
> line 760, in __init__/*
> */ self.create_gui()/*
> */ File
> "/home/lrtndn/Desktop/ndnSIM_working/ns-3/src/visualizer/visualizer/core.py",
> line 1096, in create_gui/*
> */ monitor = display.get_primary_monitor()/*
> */AttributeError: 'X11Display' object has no attribute
> 'get_primary_monitor'/*
>
> Please help, I am running Ubuntu 16.04.6 LTS.
> Release:16.04
> Codename:xenial
I am not sure about the status of NDNSIM (which is a fork of ns-3), but
in general people have been reporting problems with this particular error:
AttributeError: 'X11Display' object has no attribute 'get_primary_monitor'
on Ubuntu 16.04. There have been some changes in ns-3 to move from
pygoocanvas to pygobject 3.0 in the past year; see:
https://mailman.isi.edu/pipermail/ns-developers/2018-June/014403.html
see also:
https://www.nsnam.org/bugzilla/show_bug.cgi?id=2930
and I can confirm that I have used PyViz recently on ns-3-dev (also
ns-3.29) on macOS and also Ubuntu 18.04 and later, but I'm not sure
about the status of Ubuntu 16.04.
- Tom