I can setup the same odoo 12 program on Windows 10 with no problems. But on linux server(debian or ubuntu) it is anohter thing. I am sure that the addon path is right. How can I fix the problem? thank you.
one@debian:~/server$ python3 odoo.py -c odoo-server.conf
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.request:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.response:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: ":INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo:DEBUG"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.sql_db:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: ":INFO"
2020-03-31 05:45:25,141 13079 INFO ? odoo: Odoo version 12.0-20190708
2020-03-31 05:45:25,141 13079 INFO ? odoo: Using configuration file at /home/one/server/odoo-server.conf
2020-03-31 05:45:25,142 13079 INFO ? odoo: addons paths: ['/home/one/.local/share/Odoo/addons/12.0', '/home/one/server/odoo/enterprise', '
/home/one/server/odoo/add', '/home/one/server/odoo/addons', '/home/one/server/odoo/mod']
2020-03-31 05:45:25,142 13079 INFO ? odoo: database: odoo@default:default
2020-03-31 05:45:25,299 13079 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
2020-03-31 05:45:25,942 13079 DEBUG ? odoo.tools.translate: translation went wrong for "'Selecting the "Warning" option will notify user w
ith the message, Selecting "Blocking Message" will throw an exception with the message and block the flow. The Message has to be written i
n the next field.'", skipped
2020-03-31 05:45:25,987 13079 CRITICAL ? odoo.modules.module: Couldn't load module web
2020-03-31 05:45:25,988 13079 CRITICAL ? odoo.modules.module: The 'odoo.addons.web' package was not installed in a way that PackageLoader
understands.
2020-03-31 05:45:25,988 13079 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.
Traceback (most recent call last):
File "/home/one/server/odoo/service/server.py", line 1063, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "/home/one/server/odoo/modules/module.py", line 368, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/home/one/server/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.__dict__)
File "<string>", line 4, in <module>
File "/home/one/server/odoo/addons/web/controllers/__init__.py", line 4, in <module>
from . import main, pivot
File "/home/one/server/odoo/addons/web/controllers/main.py", line 58, in <module>
loader = jinja2.PackageLoader('odoo.addons.web', "views")
File "/home/one/.local/lib/python3.7/site-packages/jinja2/loaders.py", line 290, in __init__
" PackageLoader understands." % package_name
ValueError: The 'odoo.addons.web' package was not installed in a way that PackageLoader understands.
2020-03-31 05:45:25,989 13079 DEBUG ? odoo.service.server: Setting signal handlers
2020-03-31 05:45:25,995 13079 DEBUG ? odoo.service.server: cron0 started!
2020-03-31 05:45:25,995 13079 INFO ? odoo.service.server: HTTP service (werkzeug) running on debian:8069
2020-03-31 05:45:25,996 13079 DEBUG ? odoo.service.server: cron1 started!
2020-03-31 05:46:26,055 13079 DEBUG ? odoo.service.server: cron0 polling for jobs
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.request:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.response:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: ":INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo:DEBUG"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: "odoo.sql_db:INFO"
2020-03-31 05:45:25,141 13079 DEBUG ? odoo.netsvc: logger level set: ":INFO"
2020-03-31 05:45:25,141 13079 INFO ? odoo: Odoo version 12.0-20190708
2020-03-31 05:45:25,141 13079 INFO ? odoo: Using configuration file at /home/one/server/odoo-server.conf
2020-03-31 05:45:25,142 13079 INFO ? odoo: addons paths: ['/home/one/.local/share/Odoo/addons/12.0', '/home/one/server/odoo/enterprise', '
/home/one/server/odoo/add', '/home/one/server/odoo/addons', '/home/one/server/odoo/mod']
2020-03-31 05:45:25,142 13079 INFO ? odoo: database: odoo@default:default
2020-03-31 05:45:25,299 13079 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
2020-03-31 05:45:25,942 13079 DEBUG ? odoo.tools.translate: translation went wrong for "'Selecting the "Warning" option will notify user w
ith the message, Selecting "Blocking Message" will throw an exception with the message and block the flow. The Message has to be written i
n the next field.'", skipped
2020-03-31 05:45:25,987 13079 CRITICAL ? odoo.modules.module: Couldn't load module web
2020-03-31 05:45:25,988 13079 CRITICAL ? odoo.modules.module: The 'odoo.addons.web' package was not installed in a way that PackageLoader
understands.
2020-03-31 05:45:25,988 13079 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.
Traceback (most recent call last):
File "/home/one/server/odoo/service/server.py", line 1063, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "/home/one/server/odoo/modules/module.py", line 368, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/home/one/server/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.__dict__)
File "<string>", line 4, in <module>
File "/home/one/server/odoo/addons/web/controllers/__init__.py", line 4, in <module>
from . import main, pivot
File "/home/one/server/odoo/addons/web/controllers/main.py", line 58, in <module>
loader = jinja2.PackageLoader('odoo.addons.web', "views")
File "/home/one/.local/lib/python3.7/site-packages/jinja2/loaders.py", line 290, in __init__
" PackageLoader understands." % package_name
ValueError: The 'odoo.addons.web' package was not installed in a way that PackageLoader understands.
2020-03-31 05:45:25,989 13079 DEBUG ? odoo.service.server: Setting signal handlers
2020-03-31 05:45:25,995 13079 DEBUG ? odoo.service.server: cron0 started!
2020-03-31 05:45:25,995 13079 INFO ? odoo.service.server: HTTP service (werkzeug) running on debian:8069
2020-03-31 05:45:25,996 13079 DEBUG ? odoo.service.server: cron1 started!
2020-03-31 05:46:26,055 13079 DEBUG ? odoo.service.server: cron0 polling for jobs