containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/odoo] session_db module will not install

Open b-milescu opened this issue 1 year ago • 4 comments

Name and Version

bitnami/odoo15

What architecture are you using?

arm64

What steps will reproduce the bug?

  1. download the addon from here
  2. modify odoo.conf.tpl to add the line: server_wide_modules = base,web,session_db
  3. rebuild the container image
  4. edit the docker-compose file to mount the addon in the addons path
  5. 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

b-milescu avatar Aug 14 '24 10:08 b-milescu

Hi,

It seems that there is a python module missing that you may need to install. Could you double check it?

javsalgar avatar Aug 15 '24 07:08 javsalgar

Hi @javsalgar, as mentioned in the issue description, I have already done that, but to no avail.

b-milescu avatar Aug 19 '24 10:08 b-milescu

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.

javsalgar avatar Aug 20 '24 06:08 javsalgar

Sure, I'll test and get back

b-milescu avatar Aug 20 '24 09:08 b-milescu

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.

github-actions[bot] avatar Sep 05 '24 01:09 github-actions[bot]

Worked OK, thanks!

b-milescu avatar Sep 15 '24 13:09 b-milescu