Hi all. I am using ns-3.40 on Ubuntu 22.04 After running $ ./ns3 configure $$ $ ./ns3 build here is the output finally i got an error ModuleNotFoundError: No module named 'ns.core'

168 views
Skip to first unread message

haimanot edmealem

unread,
May 9, 2024, 7:23:57 AM5/9/24
to ns-3-users
~/ns-allinone-3.40/ns-3.40$ ./ns3 configure
-- CCache is enabled.
-- Using default output directory /home/pg/ns-allinone-3.40/ns-3.40/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- GTK3 was found.
-- LibXML2 was found.
-- NS3_BINDINGS_INSTALL_DIR was not set. The python bindings won't be installed with ./ns3 install. This setting is meant for packaging and redistribution.
-- Set NS3_BINDINGS_INSTALL_DIR="/home/pg/.local/lib/python3.10/site-packages" to install it to the default location.
-- GSL was found.
-- Precompiled headers were enabled.
-- Processing src/visualizer
-- NS3_BINDINGS_INSTALL_DIR was not set. The visualizer python module won't be installed with ./ns3 install.
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- find_external_library: brite was not found. Missing headers: "Brite.h" and missing libraries: "brite".
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- find_external_library: click was not found. Missing headers: "simclick.h" and missing libraries: "nsclick 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
-- 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
-- find_external_library: openflow was not found. Missing headers: "openflow.h" and missing libraries: "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/pg/ns-allinone-3.40/ns-3.40/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (missing dependency)
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 dependency)
ns-3 OpenFlow Integration     : OFF (missing dependency)
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : ON
Python Bindings               : ON
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        
visualizer                wifi                      wimax                    


Modules that cannot be built:
brite                     click                     mpi                      
openflow                  


-- Configuring done
-- Generating done
-- Build files have been written to: /home/pg/ns-allinone-3.40/ns-3.40/cmake-cache
Finished executing the following commands:
cd cmake-cache; /usr/bin/cmake .. ; cd ..
pg@pg:~/ns-allinone-3.40/ns-3.40$ ./ns3 build
[0/2] Re-checking globbed directories...
ninja: no work to do.
Finished executing the following commands:
cd cmake-cache; /usr/bin/cmake --build . -j 11 ; cd ..
~/ns-allinone-3.40/ns-3.40$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ns3
>>> import ns.core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ns.core'
>>>

Gabriel Ferreira

unread,
May 9, 2024, 2:55:10 PM5/9/24
to ns-3-users
from ns3 import ns

haimanot edmealem

unread,
May 10, 2024, 4:01:58 AM5/10/24
to ns-3-...@googlegroups.com
It would be greatly appreciated if you could assist me.
Thanks in advance.


--
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/5a92b4f4-903a-4528-b370-cc6a45cc22c0n%40googlegroups.com.

haimanot edmealem

unread,
May 11, 2024, 1:55:47 PM5/11/24
to ns-3-users
thanks a lot!


በ2024 ሜይ 9, ሐሙስ 9:55:10 ከሰዓት UTC+3ላይ Gabriel Ferreira የሚከተለውን ጽፈዋል፦
Reply all
Reply to author
Forward
0 new messages