我是安装的Ubuntu18.04+ndnsim2.7
由于最新版ndnsim的可视化与Python不兼容,出现了一些问题
1、
No visualization support (cannot import name core). Traceback (most recent call last): File "<string>", line 2, in <module> File "/home/zeinab/ndnSIM/ns-3/src/visualizer/visualizer/core.py", line 1875, in start import sys RuntimeError: maximum recursion depth exceeded while calling a Python object
解决办法
去/ndnSIM/ns-3/src/visualizer/visualizer/hub.py"文件中修改开头部分的"from . import core"为“import core"
https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-ns-3.29/src/visualizer/visualizer/hud.py#L2
2、print("Could not load plugin %r:%s" %(filename,str(ex)),file=sys.stderr)
解决办法:
语法错误 ,把“file=”删掉