Python3上的结构错误出ImportError:无法导入名称“isMappingType”

2024-04-24 03:03:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我在执行调用工厂文件.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+)

有人能告诉我为什么我现在还要面对这个错误吗?在


Tags: inpynoneexecutelinepy3anypkg
1条回答
网友
1楼 · 发布于 2024-04-24 03:03:35

您使用的是旧版本的Fabric 1.8.3, Fabric(2+)与python3兼容(现在支持2.7和3.4+) 因此,请考虑升级文档http://docs.fabfile.org/en/latest/upgrading.html,升级到Fabric模块的最新版本

相关问题 更多 >