1

我需要安装 openERP 7 但我只有 ubuntu 10.04 可用。我曾经deb http://ppa.launchpad.net/chris-lea/python-unittest2/ubuntu lucid main在 ubuntu 10.04 上安装 python-unittest2 以获得 openerp 所需的所有依赖项。

我遵循了theopensourcerer.com教程,因此它获得了最新版本的 tarball。路径是 /opt/openerp/server。下面是我的配置

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = openerp
db_password = mypassword
logfile = /var/log/openerp/openerp-server.log

当我运行此命令时:/opt/openerp/server/openerp-server 我有错误:No handler found.在 web 端,我在系统日志上有以下错误:

2014-03-06 19:35:54,372 14586 INFO ? openerp: OpenERP version 7.0-20140306-001044
2014-03-06 19:35:54,372 14586 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2014-03-06 19:35:54,372 14586 INFO ? openerp: database hostname: localhost
2014-03-06 19:35:54,372 14586 INFO ? openerp: database port: 5432
2014-03-06 19:35:54,372 14586 INFO ? openerp: database user: openerp
2014-03-06 19:35:54,427 14586 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-03-06 19:35:54,428 14586 CRITICAL ? openerp.modules.module: No module named wsgi
2014-03-06 19:35:54,428 14586 ERROR ? openerp.service: 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 "/opt/openerp/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/opt/openerp/server/openerp/modules/module.py", line 405, in load_openerp_module
__import__('openerp.addons.' + module_name)
File "/opt/openerp/server/openerp/modules/module.py", line 133, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/opt/openerp/server/openerp/addons/web/__init__.py", line 1, in <module>
import http
File "/opt/openerp/server/openerp/addons/web/http.py", line 32, in <module>
import werkzeug.wsgi
ImportError: No module named wsgi 
2014-03-06 19:35:54,437 14586 INFO ? openerp.service.wsgi_server: HTTP service  (werkzeug) running on 0.0.0.0:8069
2014-03-06 19:35:54,437 14586 INFO ? openerp: OpenERP server is running, waiting for connections...

当我检查时,/var/log/openerp/openerp-server.log我读到:

2014-03-06 17:20:20,674 13160 INFO ? openerp: OpenERP version 7.0-20140306-001044
2014-03-06 17:20:20,674 13160 INFO ? openerp: addons paths: /usr/lib/pymodules/python2.6/openerp/addons
//....

该消息与上述消息类似,但路径更改为/usr/lib/pymodules/python2.6/openerp/addons

所以我通过包含/usr/lib/pymodules/python2.6/openerp/addons和编辑配置文件/opt/openerp/server/openerp/addons并重新启动 openerp 但它没有帮助。

有没有人在 ubuntu 10.04 上成功安装过 openERP 7?帮助将不胜感激

谢谢

4

3 回答 3

3

只需安装 werkzeug 模块。您的错误表明未安装 werkzeug 模块。这是命令,在终端上运行。sudo apt-get install python-werkzeug. 或者你也可以像这样通过简单的安装来安装它 - sudo easy_install Werkzeug. 然后重新启动服务器。

希望这会帮助你。

于 2014-03-07T13:16:30.350 回答
2

我有同样的问题,我用这个教程解决了

您必须在配置文件中添加这一行:

addons_path = /opt/openerp/addons,/opt/openerp/web/addons

它对我来说很好用

于 2014-06-03T21:33:24.090 回答
0

首先检查您正在运行 openerp 的用户是否拥有所有需要的权限?如果它有并且仍然抛出错误,那么你应该遵循这个

于 2015-09-29T06:36:22.653 回答