pyvis. visualizer, not working! Even I go through all nsgourp help? please help me!

795 views
Skip to first unread message

Imran Ahmed

unread,
Aug 14, 2012, 2:53:31 PM8/14/12
to ns-dev...@isi.edu, ns-3-...@googlegroups.com
Dear NS3 Gurus,

I am working on my master thesis at IDSIA Switzerland. I have ns-3.13 distribution, everything working fine, but I have big problem with visualizer. I try this things in my script but not working here is the detail.

System Ubuntu 11.10. What I tried. with 
CommandLine cmd;
   cmd.Parse (argc, argv);

1. case;
#include "ns3/pyviz.h"  and include the {PyViz v;} 
Error:
/home/imran/NS3Simulator/ns-3.13/build/../scratch/myfirst.cc:31: undefined reference to `ns3::PyViz::PyViz()'
/home/imran/NS3Simulator/ns-3.13/build/../scratch/myfirst.cc:31: undefined reference to `ns3::PyViz::~PyViz()'
collect2: ld returned 1 exit status

even I have this #include "ns3/visualizer-module.h"

2.case;
If comment on on {Pyvis v;} then this Error.

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=388
Command ['/home/imran/NS3Simulator/ns-3.13/build/scratch/myfirst', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

3.case; actually this is above one. I just go to the src/visualizer  and see the example where its written: " For activating the visualizer, with any example, just pass the option
--SimulatorImplementationType=ns3::VisualSimulatorImpl to it, assuming the script uses ns-3's command line parser (class CommandLine)." but same case 2 error.

./waf --run myfirst --SimulatorImplementationType=ns3::VisualSimulatorImpl not working. Even inside the quotes.

I have all this instruction which are presented on "http://www.nsnam.org/wiki/index.php/PyViz".

My ns-3.13 actuall installation were on ubuntu 11.04 and last night I just updated to 11.10. It perfectly working with my old work, but that time I did not try the visualizer, I think this will not make the big difference.

The script I am using is from examples  first.cc, which I had copied in Scratch with new name.

I will salute your kind efforts.

Cheers,
Ahmed

Tom Henderson

unread,
Aug 15, 2012, 12:47:45 AM8/15/12
to ns-3-...@googlegroups.com, Imran Ahmed
Can you confirm that the visualizer module is being built when you build
ns-3? Can you try to first run a visualizer program (already in
ns-3.13) and see if that works?

Mukul Shukla

unread,
Aug 15, 2012, 9:10:17 AM8/15/12
to ns-3-...@googlegroups.com, Imran Ahmed
I am getting error (python 2.7) while running PyViz. I am using ns-3.14.1 on ubuntu 12.04 (64 bit). I have followed all the instructions for installing ns3 and PyViz. After the build gets over, I can see Visualize module being built.

1. Is this module PyViz?

2. How to run visualizer program already present in ns3?

Thanking you all.

Mukul
Reply all
Reply to author
Forward
0 new messages