PyViz visualizer : not enabled (Missing python modules: goocanvas)

408 views
Skip to first unread message

ben othmen rabeb

unread,
Jul 30, 2022, 9:09:20 AM7/30/22
to ns-3-users
Hi,  

is there anyone here who can help me to solve this problem, I want to visualize the result of the code I received this message and i can't install goocanvas


assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=755
terminate called without an active exception
Command ['/home/rabeb/workspace/ns-allinone-3.25/ns-3.25/build/scratch/blockchain-simulator', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").


Thank you

Tom Henderson

unread,
Jul 30, 2022, 10:31:47 AM7/30/22
to ns-3-...@googlegroups.com
On 7/30/22 06:09, ben othmen rabeb wrote:
Hi,  

is there anyone here who can help me to solve this problem, I want to visualize the result of the code I received this message and i can't install goocanvas

You need to install goocanvas if you want to use PyViz.  If you can't install it, you could try to use another visualizer such as NetAnim or NetSimulyzer.  What system are you using, for which you can't install goocanvas?

I believe that these are still the packages needed on Ubuntu to support PyViz on recent Ubuntu releases:

 apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3  

- Tom



assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=755
terminate called without an active exception
Command ['/home/rabeb/workspace/ns-allinone-3.25/ns-3.25/build/scratch/blockchain-simulator', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").


Thank you
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/8608c0c0-7797-4d33-b197-3ce3012a14f1n%40googlegroups.com.


Message has been deleted

ben othmen rabeb

unread,
Jul 30, 2022, 5:20:04 PM7/30/22
to ns-3-users
Hi Tom 
thank you 
i use ubuntu 16.04 
i try to execute this command  apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 and i get the same error 
 i get this error

E: Unable to locate package goocanvas

Tom Henderson

unread,
Jul 30, 2022, 6:41:10 PM7/30/22
to ns-3-...@googlegroups.com, ben othmen rabeb
On 7/30/22 14:20, ben othmen rabeb wrote:
> Hi Tom
> thank you
> i use ubuntu 16.04
> i try to execute this command  apt install gir1.2-goocanvas-2.0
> python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3
> and i get the same error
>  i get this error
>
> E: Unable to locate package goocanvas

If you are trying to install a package named 'goocanvas', please don't--
it doesn't exist.

Does the following work for you? I just tested on a physical machine
and a Docker container and both worked for me without error.

$ apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo
python3-pygraphviz gir1.2-gtk-3.0 ipython3
Reply all
Reply to author
Forward
0 new messages