我在执行调用工厂文件.py. 我用一个简单的子流程.Popen()调用结构任务。我使用的是python3.5.1。在
File ".bootstrap/_pex/pex.py", line 367, in execute
File ".bootstrap/_pex/pex.py", line 293, in _wrap_coverage
File ".bootstrap/_pex/pex.py", line 325, in _wrap_profiling
File ".bootstrap/_pex/pex.py", line 410, in _execute
File ".bootstrap/_pex/pex.py", line 468, in execute_entry
File ".bootstrap/_pex/pex.py", line 482, in execute_pkg_resources
File ".bootstrap/pkg_resources/__init__.py", line 2297, in resolve
File "/root/.pex/install/Fabric-1.8.3-py3-none-any.whl.ce45adfdb68b47d81b8a5f6b262ce685c93dfc0b/Fabric-1.8.3-py3-none-any.whl/fabric/main.py", line 12, in <module>
from operator import isMappingType
ImportError: cannot import name 'isMappingType'
我见过很多人都犯了这个错误,而fabric不支持Python3。但我认为那是个老消息。在
Right now, Fabric has Python3 compatibility (specifically, they now support 2.7 and 3,4+)
有人能告诉我为什么我现在还要面对这个错误吗?在
您使用的是旧版本的Fabric 1.8.3, Fabric(2+)与python3兼容(现在支持2.7和3.4+) 因此,请考虑升级文档http://docs.fabfile.org/en/latest/upgrading.html,升级到Fabric模块的最新版本
相关问题 更多 >
编程相关推荐