跳至內容
選單
此問題已被標幟
2 回覆
9958 瀏覽次數

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.


頭像
捨棄

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`

最佳答案

This has been fixed in this PR:

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

頭像
捨棄
最佳答案

Hi, you can watch following video to fix it: 


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

https://youtu.be/DTJuGfIUWmg

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
1533
3
7月 25
3211
1
5月 25
1360
1
5月 25
1608
4
5月 25
2761