Python 3.x 如何解决在Netlogo中使用python扩展的错误?
我正在尝试在基于Netlogo代理的建模中测试python的扩展: 这是我的代码:Python 3.x 如何解决在Netlogo中使用python扩展的错误?,python-3.x,netlogo,Python 3.x,Netlogo,我正在尝试在基于Netlogo代理的建模中测试python的扩展: 这是我的代码: extensions [py] to setup py:setup py:python show py:runresult "1 + 1" end 我得到了这个错误: Python error output: C:\Program Files\NetLogo 6.1.0\app\extensions\py\pyext.py:8: DeprecationWarning: Using or imp
extensions [py]
to setup
py:setup py:python
show py:runresult "1 + 1"
end
我得到了这个错误:
Python error output:
C:\Program Files\NetLogo 6.1.0\app\extensions\py\pyext.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping
我需要帮助,非常感谢。下载netlogo的最新版本:netlogo 6.1.1这只是一个警告,不是“真正的”错误,所以只要不使用Python 3.8,您就可以忽略它。它不应该影响运行代码的任何结果,只会在启动模型时输出该消息。这是Python扩展GitHub存储库中报告的一个已知问题:感谢Jasper的回答。这应该是一个评论。