Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9942 Lượt xem

While starting Odoo15 in my Local it shows me a py warning like below.


2022-05-03 10:04:15,244 79394 WARNING ? py.warnings: /home/siddharthtarpada/odoo/odoo_15.0/odoo/addons/base/models/ir_actions_report.py:68: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.


File "/home/siddharthtarpada/odoo/odoo_15.0/odoo/addons/base/models/__init__.py", line 13, in
from . import ir_actions_report
File "/home/siddharthtarpada/odoo/odoo_15.0/odoo/addons/base/models/ir_actions_report.py", line 73, in
if LooseVersion(version) >= LooseVersion('0.12.2'):


I have checked the disutils version and it is 3.8.10.


Ảnh đại diện
Huỷ bỏ

The cause: `virtualenv`
Link: https://stackoverflow.com/questions/55486248/deprecationwarning-in-python-3-6-and-3-7-with-pillow-distutils-imp

You can create venv by venv of python. Don't use `virtualenv`

Câu trả lời hay nhất

This has been fixed in this PR:

https://github.com/odoo/odoo/pull/84097

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, you can watch following video to fix it: 


Fix distutils Version classes are deprecated ERROR in Odoo | Odoo Error

https://youtu.be/DTJuGfIUWmg

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
1488
3
thg 7 25
3181
1
thg 5 25
1316
1
thg 5 25
1582
4
thg 5 25
2728