无法在Ubuntu 16.04上运行Odoo服务

时间:2018-03-29 10:40:55

标签: configuration ubuntu-16.04 odoo odoo-11

我是ubuntu的新手但在this tutorial的帮助下,我试图从其源代码中运行Odoo 11.虽然我试图运行此命令

sudo systemctl start odoo.service

之后我尝试使用命令

检查我的服务状态
sudo systemctl status odoo.service

然后在控制台中回复

 odoo.service - Odoo Open Source ERP and CRM
   Loaded: loaded (/lib/systemd/system/odoo.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-03-29 15:28:38 PKT; 7s ago
  Process: 4072 ExecStart=/opt/odoo/odoo-bin --config=/etc/odoo-server.conf --addons-path=/opt/odoo/addons/ (code=exited, status=1/FAILURE)
 Main PID: 4072 (code=exited, status=1/FAILURE)

Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:   File "/opt/odoo/odoo/modules/graph.py", line 10, in <module>
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:     import odoo.tools as tools
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:   File "/opt/odoo/odoo/tools/__init__.py", line 7, in <module>
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:     from . import pdf
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:   File "/opt/odoo/odoo/tools/pdf.py", line 4, in <module>
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]:     from PyPDF2 import PdfFileWriter, PdfFileReader
Mar 29 15:28:38 hassan-Latitude-E6420 odoo-server[4072]: ImportError: No module named 'PyPDF2'
Mar 29 15:28:38 hassan-Latitude-E6420 systemd[1]: odoo.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 15:28:38 hassan-Latitude-E6420 systemd[1]: odoo.service: Unit entered failed state.
Mar 29 15:28:38 hassan-Latitude-E6420 systemd[1]: odoo.service: Failed with result 'exit-code'.

但我已经安装了PyPDF2模块。

1 个答案:

答案 0 :(得分:0)

我的服务没有问题。我没有使用pip3包管理器安装Python模块。所以这就是python基础模块不可用的原因。所以我只需使用命令

安装pip3
pip install python3-pip 

然后再次使用命令

启动我的odoo服务
sudo systemctl start odoo

最后,它开始像魅力一样工作。