Pygraphviz is required by the visualizer module and could not be found (NS3.40, Ubuntu 22.04)

201 views
Skip to first unread message

Dzaki Alwansyah

unread,
Oct 3, 2023, 3:34:49 AM10/3/23
to ns-3-users
Holla, I'm dzaki, I have problem when try to running manet-routing-compare.cc in scratch dir. I use this command: "./ns3 run scratch/manet-routing-compare --vis" , but the error message appear:
[0/2] Re-checking globbed directories...
ninja: no work to do.
Pygraphviz is required by the visualizer module and could not be found
Command 'build/scratch/ns3.40-manet-routing-compare-default --SimulatorImplementationType=ns3::VisualSimulatorImpl' returned non-zero exit status 1.

Actually I already enabled Pyvhiz and also python bindings, please, help me. Appreciate that, Thanks a lot.
Best Regrads,
Dzaki
Screenshot from 2023-10-03 14-33-09.png

Tommaso Pecorella

unread,
Oct 3, 2023, 4:35:06 AM10/3/23
to ns-3-users
Hi,

pygrpahviz is a python package - you should install it in your system (and this step depends on how you're using your python, e.g., if you use a virtual env).
You can find it here: https://pygraphviz.github.io, but I believe you can use pip to install it.
Sorry if I don't give you the exact command, but it depends on your system and how you're using it.

Dzaki Alwansyah

unread,
Oct 3, 2023, 9:24:21 AM10/3/23
to ns-3-...@googlegroups.com
but its failed, I'm so confused, why its always unable to locate package. Its my command wrong?? thanks

Best regards,
Dzaki
Screenshot from 2023-10-03 20-22-29.png


--
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/a3980860-b049-45d4-8891-6ff09b0a2cdfn%40googlegroups.com.

Dzaki Alwansyah

unread,
Oct 3, 2023, 9:26:35 AM10/3/23
to ns-3-...@googlegroups.com
I got error:
Screenshot from 2023-10-03 20-24-57.png


Pada tanggal Sel, 3 Okt 2023 pukul 15.35 Tommaso Pecorella <tomm...@gmail.com> menulis:
--

Tom Henderson

unread,
Oct 3, 2023, 2:14:43 PM10/3/23
to ns-3-...@googlegroups.com, Dzaki Alwansyah
Please see the installation guide; the packages listed there were tested
on Ubuntu 22.04:

https://www.nsnam.org/docs/release/3.40/installation/html/linux.html

- Tom

On 10/3/23 06:26, Dzaki Alwansyah wrote:
> and also, when I try command pip from :
> https://pygraphviz.github.io/documentation/stable/install.html
> <https://pygraphviz.github.io/documentation/stable/install.html>
> I got error:
> Screenshot from 2023-10-03 20-24-57.png
>
>
> Pada tanggal Sel, 3 Okt 2023 pukul 15.35 Tommaso Pecorella
> <tomm...@gmail.com <mailto:tomm...@gmail.com>> menulis:
>
> Hi,
>
> pygrpahviz is a python package - you should install it in your
> system (and this step depends on how you're using your python, e.g.,
> if you use a virtual env).
> You can find it here: https://pygraphviz.github.io
> <https://pygraphviz.github.io>, but I believe you can use pip to
> install it.
> Sorry if I don't give you the exact command, but it depends on your
> system and how you're using it.
>
>
> On Tuesday, 3 October 2023 at 09:34:49 UTC+2 dzaki...@gmail.com
> <mailto:dzaki...@gmail.com> wrote:
>
> Holla, I'm dzaki, I have problem when try to running
> manet-routing-compare.cc in scratch dir. I use this command:
> "./ns3 run scratch/manet-routing-compare --vis" , but the error
> message appear:
> [0/2] Re-checking globbed directories...
> ninja: no work to do.
> Pygraphviz is required by the visualizer module and could not be
> found
> Command 'build/scratch/ns3.40-manet-routing-compare-default
> --SimulatorImplementationType=ns3::VisualSimulatorImpl' returned
> non-zero exit status 1.
>
> Actually I already enabled Pyvhiz and also python bindings,
> please, help me. Appreciate that, Thanks a lot.
> Best Regrads,
> Dzaki
> Screenshot from 2023-10-03 14-33-09.png
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/a3980860-b049-45d4-8891-6ff09b0a2cdfn%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/a3980860-b049-45d4-8891-6ff09b0a2cdfn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/CAJ2s2%3DMt0uQR8qipCHt9%2Bim%3D6Zg96WZCAcWQQ4G_Ncrg3YoQBw%40mail.gmail.com <https://groups.google.com/d/msgid/ns-3-users/CAJ2s2%3DMt0uQR8qipCHt9%2Bim%3D6Zg96WZCAcWQQ4G_Ncrg3YoQBw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Dzaki Alwansyah

unread,
Oct 4, 2023, 2:49:40 AM10/4/23
to Tom Henderson, ns-3-...@googlegroups.com
Thanks mr Tom and mr Tommaso, its already solved, my bad for not include additional repository, after I include with :
$ sudo add-apt-repository main
$ sudo add-apt-repository universe
$ sudo add-apt-repository restricted
$ sudo add-apt-repository multiverse
Its solved, and not Unable to locate package anymore, and I can install pygraphviz and also run manet-routing-compare.cc using --vis. Thanks for the attention and suggestions.

Best regrads,
Dzaki
Reply all
Reply to author
Forward
0 new messages