Error while excuting first.py

522 views
Skip to first unread message

Mohamed Bouti

unread,
Jun 6, 2023, 11:26:20 AM6/6/23
to ns-3-...@googlegroups.com
Hello everyone,

HELP !!!!
This is my first time using Ns3 and i'm kind of struggling to execute first.py i wrote this command :
./ns3 run scratch/first.py
and the message is :

[0/2] Re-checking globbed directories...
ninja: no work to do.
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { _ZN3ns3L16g_TimeStaticInitE, _GLOBAL__sub_I_cling_module_138, __orc_init_func.cling-module-138, __cxx_global_var_initcling_module_138_, $.cling-module-138.__inits.0 }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-138 }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { _ZGVZN3ns34Time14PeekResolutionEvE10resolution, _ZN3ns34TimeD1Ev, $.cling-module-158.__inits.0, __orc_init_func.cling-module-158, __cxx_global_var_initcling_module_158_, _ZZN3ns34Time14PeekResolutionEvE10resolution, _ZN3ns3L27UE_MEASUREMENT_REPORT_DELAYE, _GLOBAL__sub_I_cling_module_158 }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-158 }) }
cling JIT session error: Failed to materialize symbols: { (main, { _ZGVZN3ns34Time14PeekResolutionEvE10resolution }) }
cling JIT session error: Failed to materialize symbols: { (main, { _ZN3ns34Time4FromERKNS_10int64x64_tENS0_4UnitE }) }
Traceback (most recent call last):
  File "/home/hxlb3422/workspace/ns-allinone-3.38/ns-3.38/scratch/first.py", line 49, in <module>
    serverApps.Start(ns.core.Seconds(1.0))
TypeError: none of the 2 overloaded methods succeeded. Full details:
  ns3::Time ns3::Seconds(ns3::int64x64_t value) =>
    TypeError: could not convert argument 1
  ns3::Time ns3::Seconds(double value) =>
    ValueError: nullptr result where temporary expected
Command 'python3 scratch/first.py' returned non-zero exit status 1.

I didn't understand the error...if someone can help me solve this error  or guide me to understand it or what I should  do to solve it !

My seconde remarque when i execute: 
./ns3 run scratch/first
I have this message [0/2] Re-checking globbed directories...
ninja: no work to do.
At time +2s client sent 1024 bytes to 10.1.1.2 port 9
At time +2.00369s server received 1024 bytes from 10.1.1.1 port 49153
At time +2.00369s server sent 1024 bytes to 10.1.1.1 port 49153
At time +2.00737s client received 1024 bytes from 10.1.1.2 port 9
why it is mentioned in ninja no work to do
I'm really struggling to understand where is the problem

If you can help me please !
best regards

Gabriel Ferreira

unread,
Jun 6, 2023, 6:06:10 PM6/6/23
to ns-3-users
First error is cppyy==3.0 issue. Use cppyy==2.4.2.

Second question : ns3 run ensures the modules are built before running.
 If it says there's no work to do, is because they are built already. 

Mohamed Bouti

unread,
Jun 7, 2023, 3:14:07 AM6/7/23
to ns-3-...@googlegroups.com
Thank you very much for your response !

when I changed the cppyy version from version 3.0 to cppyy ==2.4.2 it worked !

and this was the result of  ./ns3 run scratch/first.py:

[0/2] Re-checking globbed directories...
ninja: no work to do.
At time +2s client sent 1024 bytes to 10.1.1.2 port 9
At time +2.00369s server received 1024 bytes from 10.1.1.1 port 49153
At time +2.00369s server sent 1024 bytes to 10.1.1.1 port 49153
At time +2.00737s client received 1024 bytes from 10.1.1.2 port 9

Thank you again !!

Best 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/9fbbc085-c7a6-4081-af0e-4937b857aa37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages