我在ubuntu服务器上安装odoo的问题

时间:2019-07-05 19:19:11

标签: python ubuntu odoo

在ubuntu服务器上安装odoo 12之后,我尝试使用systemctl status odoo检查odoo状态。这是我在输出中得到的:

odoo.service - Odoo Open Source ERP and CRM 
Loaded: loaded (/lib/systemd/system/odoo.service; enabled; vendor preset: enabled) 
Active: failed (Result: exit-code) since Fri 2019-07-05 21:04:51 CEST; 10s ago 
Process: 10541 ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log (code=exited, status=1/FAILURE 
Main PID: 10541 (code=exited, status=1/FAILURE) 

Jul 05 21:04:51 vps706653 odoo[10541]: from . import db, graph, loading, migration, module, registry 
Jul 05 21:04:51 vps706653 odoo[10541]: File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 17, in 
Jul 05 21:04:51 vps706653 odoo[10541]: import odoo.modules.migration 
Jul 05 21:04:51 vps706653 odoo[10541]: File "/usr/lib/python3/dist-packages/odoo/modules/migration.py", line 12, in 
Jul 05 21:04:51 vps706653 odoo[10541]: from odoo.modules.module import get_resource_path 
Jul 05 21:04:51 vps706653 odoo[10541]: File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 12, in 
Jul 05 21:04:51 vps706653 odoo[10541]: import pkg_resources 
Jul 05 21:04:51 vps706653 odoo[10541]: ModuleNotFoundError: No module named 'pkg_resources' 
Jul 05 21:04:51 vps706653 systemd[1]: odoo.service: Main process exited, code=exited, status=1/FAILURE 
Jul 05 21:04:51 vps706653 systemd[1]: odoo.service: Failed with result 'exit-code'. 

请帮助
谢谢

1 个答案:

答案 0 :(得分:0)

似乎您缺少pkg_resources。因此,要在服务器上安装模块pkg_resources(属于setuptools),可以使用pip install setuptools来完成。