Can you please help me out about the below error
ubuntu@ubuntu:~/Desktop/ns-allinone-3.32/ns-3.32$./waf --pyrun scratch/first.py
Waf: Entering directory /home/ubuntu/Desktop/ns-allinone-3.32/ns-3.32/build' Waf: Leaving directory
/home/ubuntu/Desktop/ns-allinone-3.32/ns-3.32/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (1.500s)
File "scratch/first.py", line 66
AnimationInterface netanim ("my_first.xml")
^ SyntaxError: invalid syntax
how can I fix this error please?
I don't use the Python bindings, but take a look at this page from the manual. You will probably need to do something along the lines of
anim = ns.netanim.AnimationInterface("my_first.xml")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.