【问题标题】:Syntax Error while building ns3.29 on ubuntu 18.04.4在 ubuntu 18.04.4 上构建 ns3.29 时出现语法错误
【发布时间】:2020-04-01 05:24:55
【问题描述】:

我已经安装了所有必备组件from。使用./waf 命令构建失败并出现以下错误。

Traceback (most recent call last):
  File "/usr/lib/python3.6/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3/dist-packages/visualizer/visualizer/svgitem.py", line 123
    raise AttributeError, 'unknown property %s' % pspec.name
                        ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/usr/lib/python3.6/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "/usr/local/lib/python3/dist-packages/visualizer/visualizer/svgitem.py", line 123
    raise AttributeError, 'unknown property %s' % pspec.name
                        ^
SyntaxError: invalid syntax

我将不胜感激。谢谢。

【问题讨论】:

  • 你更喜欢在 ns3 中使用 python 吗?
  • @a4arshad 我猜不是。

标签: simulation ns-3


【解决方案1】:

您可以禁用 python。首先,您需要清理之前失败的构建,然后通过禁用 python 进行配置。

./waf distclean
./waf --disable-python configure
./waf

【讨论】:

  • 谢谢,“构建”成功完成。
猜你喜欢
  • 2020-12-06
  • 2021-10-23
  • 2013-09-09
  • 2017-08-06
  • 2019-09-07
  • 1970-01-01
  • 2020-08-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多