Skip to first unread message

Lucas Baião Pires

unread,
Apr 2, 2019, 3:47:51 PM4/2/19
to ns-3-users
Hi,

When I try to run PyViz, I get the following output:

Waf: Entering directory `/home/lucas/workspace/bake/source/ns-3.29/build'
[1767/2000] Linking build/lib/libns3-dev-test-debug.so
[1784/2000] Linking build/lib/libns3-dev-netanim-debug.so
[1798/2000] Compiling src/visualizer/model/visual-simulator-impl.cc
[1848/2000] Compiling build/src/aodv/bindings/ns3module.cc
[1849/2000] Compiling build/src/applications/bindings/ns3module.cc
../src/visualizer/model/visual-simulator-impl.cc: In member function ‘virtual void ns3::VisualSimulatorImpl::Run()’:
../src/visualizer/model/visual-simulator-impl.cc:119:38: error: cannot convert ‘char**’ to ‘wchar_t**’ for argument ‘2’ to ‘void PySys_SetArgv(int, wchar_t**)’
       PySys_SetArgv (1, (char**) argv);
                                      ^

Waf: Leaving directory `/home/lucas/workspace/bake/source/ns-3.29/build'
Build failed
 -> task in 'ns3-visualizer' failed with exit status 1 (run with -v to display more information)

How can I fix this error?

houssem guemer

unread,
May 22, 2020, 9:25:35 AM5/22/20
to ns-3-users
hi i have the same problem, if you or anyone have a fix please share it, thank you.

艾玲玲

unread,
Mar 1, 2021, 6:34:18 AM3/1/21
to ns-3-users
Had the same error, seems not fixed yet? Anyone have a solution?

Tom Henderson

unread,
Mar 1, 2021, 9:31:00 AM3/1/21
to ns-3-...@googlegroups.com, 艾玲玲
On 3/1/21 3:34 AM, 艾玲玲 wrote:
Had the same error, seems not fixed yet? Anyone have a solution?

This bug was reported to be a Python 3 issue in the past.  If you have to use ns-3.29 version, you might want to try the patches found here:

https://www.nsnam.org/bugzilla/show_bug.cgi?id=2734

--
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/1bd4d924-d0d8-4bcd-ba63-c3600e19b689n%40googlegroups.com.


艾玲玲

unread,
Mar 1, 2021, 1:10:36 PM3/1/21
to ns-3-users
Great to have you reply.
Now I am trying to use the ns3-mmwave which is built on ns-3.31 version. But I cannot build without '--disable-python'. 
Since if I turn the python on, the PyViz would report bunch or errors like this, is there any solution for this?
(I find that on the ns3 wiki page, it's said the lte module is not fully supported with PyViz, but the wiki page might have outdated information, wonder if there's any solution now?)

[2583/3062] Linking build/src/traffic-control/examples/ns3-dev-pfifo-vs-red-debug
[2585/3062] Linking build/src/traffic-control/examples/ns3-dev-codel-vs-pfifo-basic-test-debug
[2587/3062] Linking build/src/traffic-control/examples/ns3-dev-codel-vs-pfifo-asymmetric-debug
[2588/3062] Linking build/src/traffic-control/examples/ns3-dev-pie-example-debug
[2590/3062] Linking build/src/uan/examples/ns3-dev-uan-cw-example-debug
[2592/3062] Linking build/src/uan/examples/ns3-dev-uan-rc-example-debug
[2601/3062] Compiling build/src/mesh/bindings/ns3module.cc
[2603/3062] Linking build/src/virtual-net-device/examples/ns3-dev-virtual-net-device-debug
[2604/3062] Compiling build/src/mmwave/bindings/ns3module.cc
In file included from src/lte/bindings/ns3module.cc:1:0:
src/lte/bindings/ns3module.h:9300:10: error: ‘TraceFadingLossModel’ in namespace ‘ns3’ does not name a type
     ns3::TraceFadingLossModel *obj;
          ^~~~~~~~~~~~~~~~~~~~
src/lte/bindings/ns3module.h:9309:1: error: expected class-name before ‘{’ token
 {
 ^
src/lte/bindings/ns3module.h:9312:71: error: expected ‘)’ before ‘const’
     PyNs3TraceFadingLossModel__PythonHelper(ns3::TraceFadingLossModel const & arg0)
                                                                       ^~~~~
src/lte/bindings/ns3module.h: In constructor ‘PyNs3TraceFadingLossModel__PythonHelper::PyNs3TraceFadingLossModel__PythonHelper()’:
src/lte/bindings/ns3module.h:9317:36: error: expected class-name before ‘(’ token
         : ns3::TraceFadingLossModel(), m_pyself(NULL)
                                    ^
src/lte/bindings/ns3module.h:9317:36: error: expected ‘{’ before ‘(’ token
src/lte/bindings/ns3module.h: In member function ‘void PyNs3TraceFadingLossModel__PythonHelper::DoDispose__parent_caller()’:
src/lte/bindings/ns3module.h:9336:52: error: cannot call member function ‘virtual void ns3::SpectrumPropagationLossModel::DoDispose()’ without object
     { ns3::SpectrumPropagationLossModel::DoDispose(); }
                                                    ^
src/lte/bindings/ns3module.h: In member function ‘void PyNs3TraceFadingLossModel__PythonHelper::NotifyNewAggregate__parent_caller()’:
src/lte/bindings/ns3module.h:9340:39: error: cannot call member function ‘virtual void ns3::Object::NotifyNewAggregate()’ without object
     { ns3::Object::NotifyNewAggregate(); }

Thanks.
Best Regards
Reply all
Reply to author
Forward
0 new messages