shashank korada
unread,Oct 5, 2011, 7:25:17 PM10/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
hiiii
i have a few doubts..it would be a huge help to me if someone can help
me out..
i am using fedora 11 and working on ns3-3.11...i wanted to use the
visualizer and so downloaded the tarball pygraphviz-1.1 copied into
the ns3.11 directory and untarred it..
i tried to use ./build.py but the console showed no such file or
directory ..irrespective of this i went ahead and ran two programs..
before doing all this i checked the configuration of python on my
pc..upon giving the command "./waf configure"
it showed
pythonmodule pygcc xml :not found
mpic++ :not found
python API scanning support :not enabled
MPI support :not enabled
GSL :not enabled
(rest all were either 'enabled' or 'ok')
then i ran the two codes giving the command
1) ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowon.py --
visualize
after the usual messages on the console such as build successfull etc
i get
no visualization support (no module named pygraph viz) //this line
was repeated several times
Traceback (most recent call last)
File "<string>" line2,in <module>
Fie "/home/cpu56/ns-allinone/ns-3.11/src/visualizer/visualizer/
core.py" line 1474,in start import sys
Runtime error:maximum recursion depth exceeded while calling a object
2) mesh.cc ..i changed the wscript(src/mesh/examples) and added
'visualizer' to it
and then ran the program
./waf --run "src/mesh/examples/mesh --x-size=2 --y-size=2 --step=100 --
start=0 --time=1 --packet-interval=1 --packet-size=1024 --
interfaces=1" --visualize
(have set the parameters such that only 1 packet is
transferred ..actually wanted to see the route the packet takes)
i get the following on the console
Waf: Entering directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
Waf: Leaving directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
'build' finished successfully (2.465s)
Modules built:
aodv applications bridge
click config-store core
csma csma-layout dsdv
emu energy flow-monitor
internet lte mesh
mobility mpi netanim
network nix-vector-routing ns3tcp
ns3wifi olsr openflow
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
template test tools
topology-read uan virtual-net-device
visualizer wifi wimax
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
ns3::VisualSimulatorImpl not found", file=../src/core/model/type-
id.cc, line=443
Command ['/home/cpu56/ns-allinone-3.11/ns-3.11/build/debug/src/mesh/
examples/mesh', '--x-size=2', '--y-size=2', '--step=100', '--start=0',
'--time=1', '--packet-interval=1', '--packet-size=1024', '--
interfaces=1', '--pcap=1', '--
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>"). """"
The last few lines is a new error i am encountering after having
downloaded pygraphviz-1.1 ,so after dis i thought probably i have to
merge pyviz and ns3..and so i used "hg pull -u ../ns-3-pyviz-1.1" but
i got "hg:no such command" so i realized i dont have mercurial
i tried installing mercurial after downloading the .rpm file but all i
get after i enter the command "rpm -ivf
mercurial-1.5.4.1.fc11.src.rpm" are some warnings..
someone told me that fc11 is in old archive and some changes have to
be made..
can someone please tell me how do i get to install the visualizer and
run it..what version of pyvizgraph should i be using ?? and what about
the mercurial??
sorry for the lengthy post but i didnt want to sound vague..
it would be of great help if you guys can guide me ..
Regards,
Shashank