Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
9930 Zobrazení

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
Zrušit

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`

Nejlepší odpověď

This has been fixed in this PR:

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 25
1457
3
čvc 25
3152
1
kvě 25
1283
1
kvě 25
1560
4
kvě 25
2689