pyviz not working..

126 views
Skip to first unread message

Anjana Bhadra

unread,
Jul 3, 2021, 5:21:49 AM7/3/21
to ns-3-users
hope all are fine

how to enable pyviz in ns 3.33 , 
ther errors are given below 
thanks in advance
ubuntu@ubuntu-virtual-machine:~/ns3/ns-allinone-3.33/ns-3.33$ sudo ./waf --run scratch/latr --vis
Waf: Entering directory `/home/ubuntu/ns3/ns-allinone-3.33/ns-3.33/build'
Waf: Leaving directory `/home/ubuntu/ns3/ns-allinone-3.33/ns-3.33/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.346s)
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=834
terminate called without an active exception
Command ['/home/ubuntu/ns3/ns-allinone-3.33/ns-3.33/build/scratch/latr', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb").
ubuntu@ubuntu-virtual-machine:~/ns3/ns-allinone-3.33/ns-3.33$ 

Adil Alsuhaim

unread,
Jul 5, 2021, 8:37:31 AM7/5/21
to ns-3-users
It could be that the visualizer module is not built. First, make sure that Python Bindings and PyViz visualizer are enabled. When you do ./waf configure you should have the following

    PyViz visualizer              : enabled
    Python Bindings               : enabled

When you just do ./waf you should see a list of Modules built and it should include visualizer in there.

I suspect that either "Python Bindings" is not enable, and/or "PyViz visulazer" are not enabled (you can see that with ./waf configure). If Python Bindings is not enabled, then PyViz would also be not enabled

 I don't know how you installed ns-3.33, but if you used bake you should be good, as it would place the Python bindings folder one-level over the roon ns-3 folder. (the folder would be named pybindgen followed by a version number).

If Python Bindings is enabled, but not PyViz, then you may need to install some python libraries. The details can be found in the ns-3 installation wiki. I also have a video on YouTube for version ns-3.32 on Ubuntu 20 (you simply would configure bake with ns-3.33 instead)

Cheers, and good luck!

Adil
Reply all
Reply to author
Forward
0 new messages