我在运行python examples / simulate.py时开始使用时遇到错误

问题描述 投票:-2回答:1

我是新手。我按照https://flow.readthedocs.io/en/latest/flow_setup.html中的步骤开始使用流程。我在运行python examples / simulate.py ring时开始使用时遇到错误。我在这里附上我的图片错误。

我认为是因为它必须在Linux中而不是Windows中运行,并且地址被指定为Linux地址。

错误图片

“”

flow-project
1个回答
0
投票

感谢您使用Flow。似乎在Windows计算机中,由于某些原因命令netconvert -c PATH ....无法识别。

要调试此命令,您应该尝试在终端中单独运行该命令,并查看其中哪一部分出了问题。

无论如何,那部分代码写在flow/core/kernel/network/traci.py第512行:]​​>


        subprocess.call(
            [
                'netconvert -c ' + self.net_path + self.cfgfn +
                ' --output-file=' + self.cfg_path + self.netfn +
                ' --no-internal-links="false"'
            ],
            stdout=subprocess.DEVNULL,
            shell=True)
© www.soinside.com 2019 - 2024. All rights reserved.