How to Enable Pyviz Visulaizer

86 views
Skip to first unread message

Amruth Gudigar

unread,
May 28, 2024, 1:07:47 AM5/28/24
to ns-3-users
# Build NetAnim
Entering directory `netanim-3.109'
 =>  qmake -v
QMake version 3.1
Using Qt version 5.15.13 in /usr/lib/x86_64-linux-gnu
qmake found
 =>  qmake NetAnim.pro
 =>  make
make: Nothing to be done for 'first'.
Leaving directory `netanim-3.109'
# Build NS-3
Entering directory `/home/amruth/ns-allinone-3.41/./ns-3.41'
 =>  /usr/bin/python3 ns3 configure
Warn about uninitialized values.
-- CCache is enabled.
-- Using default output directory /home/amruth/ns-allinone-3.41/ns-3.41/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- GSL was found.
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- Skipping src/click
-- Processing src/config-store
-- Processing src/core
-- Boost Units have been found.
-- Processing src/csma
-- Processing src/csma-layout
-- Processing src/dsdv
-- Processing src/dsr
-- Processing src/energy
-- Processing src/fd-net-device
-- Checking for module 'libdpdk'
--   Package 'libdpdk', required by 'virtual:world', not found
-- Processing src/flow-monitor
-- Processing src/internet
-- Processing src/internet-apps
-- Processing src/lr-wpan
-- Processing src/lte
-- Processing src/mesh
-- Processing src/mobility
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- Skipping src/openflow
-- Processing src/point-to-point
-- Processing src/point-to-point-layout
-- Processing src/propagation
-- Processing src/sixlowpan
-- Processing src/spectrum
-- Processing src/stats
-- Processing src/tap-bridge
-- Processing src/test
-- Processing src/topology-read
-- Processing src/traffic-control
-- Processing src/uan
-- Processing src/virtual-net-device
-- Processing src/wifi
-- Processing src/wimax
-- ---- Summary of ns-3 settings:
Build profile                 : default
Build directory               : /home/amruth/ns-allinone-3.41/ns-3.41/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (Missing headers: "Brite.h" and missing libraries: "brite")
DES Metrics event collection  : OFF (not requested)
DPDK NetDevice                : OFF (not requested)
Emulation FdNetDevice         : ON
Examples                      : ON
File descriptor NetDevice     : ON
GNU Scientific Library (GSL)  : ON
GtkConfigStore                : ON
LibXml2 support               : ON
MPI Support                   : OFF (not requested)
ns-3 Click Integration        : OFF (Missing headers: "simclick.h" and missing libraries: "nsclick click")
ns-3 OpenFlow Integration     : OFF (Missing headers: "openflow.h" and missing libraries: "openflow")
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : OFF (Python Bindings are disabled)
Python Bindings               : OFF (not requested)
SQLite support                : ON
Eigen3 support                : ON
Tap Bridge                    : ON
Tap FdNetDevice               : ON
Tests                         : ON


Modules configured to be 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                  netanim                  
network                   nix-vector-routing        olsr                      
point-to-point            point-to-point-layout     propagation              
sixlowpan                 spectrum                  stats                    
tap-bridge                test                      topology-read            
traffic-control           uan                       virtual-net-device        
wifi                      wimax                    

Modules that cannot be built:
brite                     click                     mpi                      
openflow                  visualizer                


-- Configuring done (5.8s)
-- Generating done (1.1s)
-- Build files have been written to: /home/amruth/ns-allinone-3.41/ns-3.41/cmake-cache
Finished executing the following commands:
/usr/bin/cmake -S /home/amruth/ns-allinone-3.41/ns-3.41 -B /home/amruth/ns-allinone-3.41/ns-3.41/cmake-cache --warn-uninitialized
 =>  /usr/bin/python3 ns3 build
[0/2] Re-checking globbed directories...
ninja: no work to do.
Finished executing the following commands:
/usr/bin/cmake --build /home/amruth/ns-allinone-3.41/ns-3.41/cmake-cache -j 3
Leaving directory `/home/amruth/ns-allinone-3.41/./ns-3.41'

How to Enable PyViz Visualizer

Kavya Bhat

unread,
May 28, 2024, 1:19:06 AM5/28/24
to ns-3-users
Hi Amruth,

Based on the configuration summary, it looks like the Python bindings are off. You'd need to enable this in order to use the PyViz visualizer.
Adding `--enable-python-bindings` to your command (entire line: `/usr/bin/python3 ns3 configure --enable-python-bindings`) should enable the bindings and also the visualizer. 
Hope this helps!

- Kavya.

Amruth Gudigar

unread,
May 28, 2024, 3:19:49 AM5/28/24
to ns-3-users
Thank you so much, Kavya
it helped a lot
Reply all
Reply to author
Forward
0 new messages