[bitnami/odoo] session_db module will not install
Name and Version
bitnami/odoo15
What architecture are you using?
arm64
What steps will reproduce the bug?
- download the addon from here
- modify odoo.conf.tpl to add the line:
server_wide_modules = base,web,session_db - rebuild the container image
- edit the docker-compose file to mount the addon in the addons path
-
docker-compose up
What is the expected behavior?
Addon should load without any issue
What do you see instead?
debian-12-odoo-1 | 2024-08-14 10:29:43,207 1 CRITICAL ? odoo.modules.module: Couldn't load module session_db
debian-12-odoo-1 | 2024-08-14 10:29:43,207 1 CRITICAL ? odoo.modules.module: No module named 'werkzeug.contrib'
debian-12-odoo-1 | 2024-08-14 10:29:43,207 1 ERROR ? odoo.service.server: Failed to load server-wide module `session_db`.
debian-12-odoo-1 | Traceback (most recent call last):
debian-12-odoo-1 | File "/opt/bitnami/odoo/lib/odoo-15.0.post20240710-py3.10.egg/odoo/service/server.py", line 1210, in load_server_wide_modules
debian-12-odoo-1 | odoo.modules.module.load_openerp_module(m)
debian-12-odoo-1 | File "/opt/bitnami/odoo/lib/odoo-15.0.post20240710-py3.10.egg/odoo/modules/module.py", line 407, in load_openerp_module
debian-12-odoo-1 | __import__('odoo.addons.' + module_name)
debian-12-odoo-1 | File "/bitnami/odoo/addons/session_db/__init__.py", line 1, in <module>
debian-12-odoo-1 | from . import pg_session_store
debian-12-odoo-1 | File "/bitnami/odoo/addons/session_db/pg_session_store.py", line 12, in <module>
debian-12-odoo-1 | import werkzeug.contrib.sessions
debian-12-odoo-1 | ModuleNotFoundError: No module named 'werkzeug.contrib'
Additional information
I've tried to install the missing python module but it throws the same error
Hi,
It seems that there is a python module missing that you may need to install. Could you double check it?
Hi @javsalgar, as mentioned in the issue description, I have already done that, but to no avail.
Could you ensure that you used this /opt/bitnami/odoo/venv/bin/pip command to install the missing module? By default it uses /opt/bitnami/python/bin/pip and that may not work as expected.
Sure, I'll test and get back
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Worked OK, thanks!