Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
22348 มุมมอง

File "F:\odoo15\venv\lib\site-packages\babel\localedata.py", line 17, in
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (C:\Users\Shahriar Amin\AppData\Local\Programs\Python\Python310\lib\collections\__init__.py)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

it help python3 -m pip install babel==2.9.1 , thanks 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Odoo python requirement use babel=2.6.0 and this library uses  MutableMapping from collections.abc module in python which already deprecated in 3.8.

Babel library already changed it in V2.9.1 and using ABCs from collections instead of collections.abc is deprecated

https://github.com/python-babel/babel/commit/65d6bf39f2a2b4bbbbc02cd1e00c44ce9d7c1c5b#diff-efc3eeaaafe0e86beabfcbded9caeaab1a41af159501fc4d973a2cf9c577e89a

You can try to uninstall babel=2.6.0 and install the latest version babel=2.9.1.

Or you can install python3.7 and it will work.

อวตาร
ละทิ้ง
ผู้เขียน

The issue has been fixed. Thanks. Can you please help with this ??

module 'collections' has no attribute 'Set'

Hi M M Shahriar Amin.
Have you solved this problem? (module 'collections' has no attribute 'Set')

ผู้เขียน

Nope. I have switched to Python 3.8.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 25
1626
3
ก.ค. 25
3271
1
พ.ค. 25
1417
1
พ.ค. 25
1668
4
พ.ค. 25
2826