Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3161 Widoki

ERROR ? odoo.service.server: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration. 


my config file looks like this:

addons_path = /usr/lib/python3/dist-packages/odoo/addons,D:\Odoo Source Code\odoo-15.0\venv\Lib\site-packages,D:\Odoo Source Code\odoo-15.0\addons
Awatar
Odrzuć
Najlepsza odpowiedź

It looks like the addons path in your configuration file is not set up correctly. The web module that you are trying to load is provided by the openerp-web project, but it appears that this project is not included in your addons path.

To fix this issue, you will need to update your addons path to include the location of the openerp-web project. This will allow Odoo to find and load the web module when starting the server.

Here is an example of how your addons path configuration might look after updating it to include the openerp-web project:

addons_path = /usr/lib/python3/dist-packages/odoo/addons,/path/to/openerp-web,D:\Odoo Source Code\odoo-15.0\venv\Lib\site-packages,D:\Odoo Source Code\odoo-15.0\addons

Make sure to replace /path/to/openerp-web with the actual location of the openerp-web project on your system. Once you have updated the addons path in your configuration file, you should be able to start the Odoo server without encountering the error.

Awatar
Odrzuć
Najlepsza odpowiedź

The path "

/usr/lib/python3/dist-packages/odoo/addons

" is not correct in windows environment. You should correct the content of addons_path .

Awatar
Odrzuć
Najlepsza odpowiedź

You can try to comment out the addons_path and Odoo will automatically uses normal addons_path such as ./addons, ./odoo/addons and the file store location and you should be able to load web module. Also, your addon path is not correct as it include the linux folder structure /usr/lib  and the Windows structure: D:

Awatar
Odrzuć