当前位置:网站首页>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
那要怎么改呢?
比如我这里报错,就点进源文件里面
按上述方法修改即可。
边栏推荐
- 高通 QC2.0 快速充电智能识别IC FP6719
- SBC chip 35584 data manual pre regulator translation
- 获取列表中最大最小值的前n个数值的位置索引的四种方法
- 20192407 2021-2022-2 《网络与系统攻防技术》实验八实验报告
- 8.4v双节锂电池专业充电ic(FS4062A)
- MySQL ---- 常用函数
- [observation] shengteng Zhixing: scene driven, innovation first, press the "acceleration key" for Intelligent Transportation
- NFS network mount to create server image
- 移动端渲染原理浅析
- table设置超出部分隐藏,鼠标移上去显示全部
猜你喜欢

Deploying static websites using OSS and CDN on Alibaba cloud international

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

LLDP协议编写要点

PDU会话流程

Zabbix_原理架构-安装部署-自定义监控

Tutoriel Microsoft Word "5", comment changer les marges de page et créer une barre de nouvelles en word?
![[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service](/img/9e/9ce804d84fb8ec9221b7c10bbd6c36.jpg)
[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service

Jiangbolong forestee xp2000 PCIe 4.0 SSD multi encryption function, locking data security

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

Open the door of the hybrid cloud market, Lenovo xcloud's way to break the situation
随机推荐
4.35v lithium battery charging IC
腾讯云数据库TDSQL-大咖论道 | 基础软件的过去、现在、未来
seata 还是不支持sqlserver吗?
Standing at such a time node today, we may have a clearer understanding of the industrial Internet
20192407 2021-2022-2 《网络与系统攻防技术》实验八实验报告
Bit operation topic
hidden danger? Limited meaning? Can't stop the real cooking Mini kitchenware hot 618
Development scheme of 108k humidifier for water replenishment instrument_ Single chip microcomputer_ NY8A051F_ Development of single chip microcomputer
高通 QC2.0 快速充电智能识别IC FP6719
如何使用物联网低代码平台进行工作表管理?
【观察】昇腾智行:场景驱动,创新先行,为智慧交通按下“加速键”
终于有人说清楚了Cookie、Session、Token的区别。详解,面试题。
RT-Thread Smart Win10 64位下编译环境的搭建
2022 Devops roadmap | medium
MySQL数据库基础
KP522201A采用 SOT23-6 封装的 4.5V 至 17V 输入、2A 输出、600kHz 同步降压转换器
Deploying static websites using OSS and CDN on Alibaba cloud international
FS4100 锂电充电管理IC输入12V给8.4V充电IC
【FAQ】运动健康服务REST API接口使用过程中常见问题和解决方法总结
「Bug」问题分析 RuntimeError:which is output 0 of ReluBackward0