pyViz vizualizer is not not enabled in Ubuntu 19.04

345 views
Skip to first unread message

Radha Reddy

unread,
Sep 11, 2019, 1:52:02 PM9/11/19
to ns-3-users
Hello ns-3 community,

I am new to Ubuntu and ns-3. Working on new version of Ubuntu 19.04.

I have followed the series of steps for installing and building ns3 in https://www.nsnam.org/docs/tutorial/html/getting-started.html#prerequisites

I got the following, in which the visualizer is not enabled because of Python Bindings not enabled. But I can see the pybindgen folder in the ns3/source.

Then I followed the steps in https://www.nsnam.org/wiki/PyViz, but I dont find the visualizer packages in ubuntu. What should I do now?

/bake/source/ns-3.30$ ./waf configure --enable-examples
Setting top to                           : /home/il0037b/workspace/bake/source/ns-3.30
Setting out to                           : /home/il0037b/workspace/bake/source/ns-3.30/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 8.3.0
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for compilation flag -std=c++11 support       : ok
Checking boost includes                                : 1_67
Checking boost libs                                    : ok
Checking for boost linkage                             : ok
Checking for program 'python'                          : /usr/bin/python3
Checking for python version >= 2.3                     : 3.7.3
python-config                                          : not found
Checking for library python3.7m in LIBDIR              : not found
Checking for library python3.7m in python_LIBPL        : yes
Checking for header Python.h                           : Distutils not installed? Broken python installation? Get python-config now!
Checking for click location                            : not found
Checking for program 'pkg-config'                      : /usr/bin/pkg-config
Checking for 'gtk+-3.0'                                : not found
Checking for 'libxml-2.0'                              : yes
checking for uint128_t                                 : not found
checking for __uint128_t                               : yes
Checking high precision implementation                 : 128-bit integer (default)
Checking for header stdint.h                           : yes
Checking for header inttypes.h                         : yes
Checking for header sys/inttypes.h                     : not found
Checking for header sys/types.h                        : yes
Checking for header sys/stat.h                         : yes
Checking for header dirent.h                           : yes
Checking for header stdlib.h                           : yes
Checking for header signal.h                           : yes
Checking for header pthread.h                          : yes
Checking for header stdint.h                           : yes
Checking for header inttypes.h                         : yes
Checking for header sys/inttypes.h                     : not found
Checking for library rt                                : yes
Checking for header sys/ioctl.h                        : yes
Checking for header net/if.h                           : yes
Checking for header net/ethernet.h                     : yes
Checking for header linux/if_tun.h                     : yes
Checking for header netpacket/packet.h                 : yes
Checking for NSC location                              : not found
Checking for OpenFlow location                         : not found
Checking for 'sqlite3'                                 : yes
Checking for header linux/if_tun.h                     : yes
Checking for program 'sudo'                            : /usr/bin/sudo
Checking for program 'valgrind'                        : /usr/bin/valgrind
Checking for 'gsl'                                     : yes
libgcrypt-config                                       : not found
Checking for compilation flag -fstrict-aliasing support : ok
Checking for compilation flag -fstrict-aliasing support : ok
Checking for compilation flag -Wstrict-aliasing support : ok
Checking for compilation flag -Wstrict-aliasing support : ok
Checking for program 'doxygen'                          : /usr/bin/doxygen
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               :
BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
DES Metrics event collection  : not enabled (defaults to disabled)
Emulation FdNetDevice         : enabled
Examples                      : enabled
File descriptor NetDevice     : enabled
GNU Scientific Library (GSL)  : enabled
Gcrypt library                : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore                : not enabled (library 'gtk+-3.0 >= 3.0' not found)
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
Python Bindings               : not enabled (Python library or headers missing)
Real Time Simulator           : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Tap FdNetDevice               : enabled
Tests                         : not enabled (defaults to disabled)
Threading Primitives          : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
XmlIo                         : enabled
'configure' finished successfully (3.652s)
il0037b@il0037b:~/workspace/bake/source/ns-3.30$ ./waf build
Waf: Entering directory `/home/il0037b/workspace/bake/source/ns-3.30/build'
Waf: Leaving directory `/home/il0037b/workspace/bake/source/ns-3.30/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.825s)

Modules built:
antenna                   aodv                      applications             
bridge                    buildings                 config-store             
core                      csma                      csma-layout              
dsdv                      dsr                       energy                   
fd-net-device             flow-monitor              internet                 
internet-apps             lr-wpan                   lte                      
mesh                      mobility                  mpi                      
netanim (no Python)       network                   nix-vector-routing       
olsr                      point-to-point            point-to-point-layout    
propagation               sixlowpan                 spectrum                 
stats                     tap-bridge                test (no Python)         
topology-read             traci (no Python)         traci-applications (no Python)
traffic-control           uan                       virtual-net-device       
wave                      wifi                      wimax                    

Modules not built (see ns-3 tutorial for explanation):
brite                     click                     openflow                 
visualizer

Tom Henderson

unread,
Sep 11, 2019, 1:56:09 PM9/11/19
to ns-3-...@googlegroups.com
On 9/11/19 10:52 AM, Radha Reddy wrote:
> Hello ns-3 community,
>
> I am new to Ubuntu and ns-3. Working on new version of Ubuntu 19.04.
>
> I have followed the series of steps for installing and building ns3 in
> https://www.nsnam.org/docs/tutorial/html/getting-started.html#prerequisites
>
> I got the following, in which the visualizer is not enabled because of
> Python Bindings not enabled. But I can see the pybindgen folder in the
> ns3/source.
>
> Then I followed the steps in https://www.nsnam.org/wiki/PyViz, but I
> dont find the visualizer packages in ubuntu. What should I do now?

It seems to be complaining about lack of Python development headers.
Please try installing 'python3-dev' package and retry.

- Tom

Radha Reddy

unread,
Sep 12, 2019, 5:46:48 AM9/12/19
to ns-3-...@googlegroups.com
Dear Tom,

Many thanks for your kind response.

The python visualizer is enabled, but the same problem.

Regards

--
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/a576bcfd-53ea-d5f2-7a8b-8dca19809a20%40tomh.org.
Reply all
Reply to author
Forward
0 new messages