我需要安装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.
在网络端,我在系统上记录下面的错误:
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?非常感谢帮助
由于
答案 0 :(得分:1)
我遇到了同样的问题,我用this tutorial
解决了这个问题您必须在配置文件中添加以下行:
addons_path = / opt / openerp / addons,/ opt / openerp / web / addons
它适用于我
答案 1 :(得分:0)
只需安装werkzeug模块即可。您的错误表明未安装werkzeug模块。这是命令,在终端上运行。 sudo apt-get install python-werkzeug
。或者您也可以通过这样的简单安装来安装它 - sudo easy_install Werkzeug
。然后重新启动服务器。
希望这会对你有所帮助。
答案 2 :(得分:0)
首先检查运行openerp的用户是否拥有所有需要的权限? 如果它有并仍然抛出错误,那么你应该遵循this。