-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Hello,
I am encountering an issue with the Odoo 15 Docker image that is affecting the startup of Odoo. When deploying the image, I receive the following error related to missing Python dependencies:
ModuleNotFoundError: No module named 'urllib3.packages.six.moves
Logs:
Here is a snippet from the logs showing the error:
Traceback (most recent call last): File "/usr/local/bin/odoo", line 5, in <module> import odoo File "/opt/odoo/odoo/__init__.py", line 139, in <module> from . import service File "/opt/odoo/odoo/service/__init__.py", line 8, in <module> from . import server File "/opt/odoo/odoo/service/server.py", line 61, in <module> from ..tests import loader, runner File "/opt/odoo/odoo/tests/__init__.py", line 1, in <module> from . import common File "/opt/odoo/odoo/tests/common.py", line 38, in <module> import requests File "/usr/local/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module> import urllib3 File "/usr/local/lib/python3.12/site-packages/urllib3/__init__.py", line 7, in <module> from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 11, in <module> from .exceptions import ( File "/usr/local/lib/python3.12/site-packages/urllib3/exceptions.py", line 2, in <module> from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
Environment:
- Odoo Version: 15.0
- Python Version: 3.12
Status: Downloaded newer image for us-docker.pkg.dev/project/repository/odoo:15.0
odoo@24d699683c27:/$ python --version
Python 3.12.10
Possible causes
Odoo 15 does not officially support Python 3.12. The recommended Python version for Odoo 15 is Python 3.8 or Python 3.9, 3.10 the latest.
Although many libraries and applications are gradually updating their compatibility with newer Python versions, Odoo 15 does not yet have official support for versions higher than Python 3.10.