当前位置:网站首页>AttributeError: module ‘collections‘ has no attribute ‘MutableMapping‘
AttributeError: module ‘collections‘ has no attribute ‘MutableMapping‘
2022-06-10 19:31:00 【愿此后再无WA】
情况说明
今天在装live server时遇到如下两个问题。
- module ‘collections’ has no attribute ‘MutableSet’
- AttributeError: module ‘collections’ has no attribute ‘MutableMapping’
部分错误结果如下:
(py3_django4-0-4) [email protected]:~/Desktop/meiduo/front_end$ live-server
Traceback (most recent call last):
File "/home/lds/.local/bin/live-server", line 5, in <module>
from live_server.cli import cli
File "/home/lds/.local/lib/python3.10/site-packages/live_server/cli.py", line 4, in <module>
from . import watcher
File "/home/lds/.local/lib/python3.10/site-packages/live_server/watcher.py", line 7, in <module>
from . import server
File "/home/lds/.local/lib/python3.10/site-packages/live_server/server.py", line 5, in <module>
import tornado.web
File "/home/lds/.local/lib/python3.10/site-packages/tornado/web.py", line 88, in <module>
from tornado import httputil
File "/home/lds/.local/lib/python3.10/site-packages/tornado/httputil.py", line 107, in <module>
class HTTPHeaders(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
解决方案
网上找了好多都是把问题贴出来然后就没下文了,琢磨了三四个小时幸亏解决了!!应该是python 3.10 那些 MutableMapping,MutableSet等放的位置变了,他们的上级模块原本直属collections的变成了abc,也就是说,需要把
collections.MutableMapping
改成
collections.abc.MutableMapping
那要怎么改呢?
比如我这里报错,就点进源文件里面
按上述方法修改即可。
边栏推荐
- LLDP协议编写要点
- 中衍期货靠谱吗?是不是正规期货公司?开户安全吗?
- Kp522201a adopts SOT23-6 encapsulated 4.5V to 17V input, 2A output, 600kHz synchronous step-down converter
- [observation] shengteng Zhixing: scene driven, innovation first, press the "acceleration key" for Intelligent Transportation
- 力扣1082,1084题解_sql查询类型的题目
- 批量检测不同url的指定端口(py脚本)
- Bit operation topic
- 4.35V锂电充电IC
- Microsoft Word 教程「5」,如何在 Word 中更改页边距、创建新闻稿栏?
- Routine solution - the problem of horse walking on the chessboard
猜你喜欢

暗黑破坏神不朽WIKI地址 暗黑破坏神不朽数据库地址分享

Zabbix_ Principle Architecture - installation and deployment - Custom monitoring

vulnhub-The Planets: Earth

HW blue team intermediate interview reply

用 Plotly 绘制了几张精湛的图表,美翻了!!

KP522201A采用 SOT23-6 封装的 4.5V 至 17V 输入、2A 输出、600kHz 同步降压转换器

终于有人说清楚了Cookie、Session、Token的区别。详解,面试题。

刷脸认证如何实现人脸又快又准完成校验?

I drew several exquisite charts with plotly, which turned out to be beautiful!!

Analysis on rendering principle of mobile terminal
随机推荐
Fs4060a is a 4.2v/3a charging IC
PDU session flow
获取列表中最大最小值的前n个数值的位置索引的四种方法
[enter textbook latex record]
中衍期货靠谱吗?是不是正规期货公司?开户安全吗?
8.4v dual lithium battery professional charging IC (fs4062a)
localhost和127.0.0.1的区别?
站在今天这样一个时间节点上,或许对产业互联网有一个更加明晰的认识
seata 还是不支持sqlserver吗?
Build a BPMN modeling Web Service
Jiangbolong forestee xp2000 PCIe 4.0 SSD multi encryption function, locking data security
Tutoriel Microsoft Word "5", comment changer les marges de page et créer une barre de nouvelles en word?
KP522201A采用 SOT23-6 封装的 4.5V 至 17V 输入、2A 输出、600kHz 同步降压转换器
It took 2 years, 442 authors and 132 institutions! Google released the new benchmark big bench for language model evaluation. 204 tasks comprehensively evaluated the language model ability, with paper
Complete knapsack problem and optimization tips
H5 van-popup全屏弹窗,模拟页面回退效果,支持左上角返回按钮,适用物理返回,侧滑与底部返回键
户外太阳能野营灯移动电源方案
功耗开发经验分享:设计功耗大板
如何使用物联网低代码平台进行工作表管理?
网上开期货账户安全吗?如何避免被骗?