Skip to Content
Menú
This question has been flagged
2 Respostes
9725 Vistes

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.


Avatar
Descartar

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`

Best Answer

This has been fixed in this PR:

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

Avatar
Descartar
Best Answer

Hi, you can watch following video to fix it: 


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

https://youtu.be/DTJuGfIUWmg

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 25
747
3
de maig 25
2494
1
de maig 25
728
1
de maig 25
913
4
de maig 25
2201