安裝oe 7.0問題
-
我將OE6移除後,將oe7的檔案解壓縮,然後打./openerp-server結果出現如下錯誤,是指為何呢?
2013-04-03 03:21:30,807 38663 INFO ? openerp: OpenERP version 7.0-20130402-231639
2013-04-03 03:21:30,808 38663 INFO ? openerp: addons paths: /home/landy/openerp-7.0-20130402-231639/openerp/addons
2013-04-03 03:21:30,808 38663 INFO ? openerp: database hostname: localhost
2013-04-03 03:21:30,809 38663 INFO ? openerp: database port: 5432
2013-04-03 03:21:30,809 38663 INFO ? openerp: database user: landy
2013-04-03 03:21:31,056 38663 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-04-03 03:21:31,057 38663 CRITICAL ? openerp.modules.module: No module named unittest2
2013-04-03 03:21:31,058 38663 ERROR ? openerp.service: Failed to load server-wide moduleweb
.
Theweb
module is provided by the addons found in theopenerp-web
project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/home/landy/openerp-7.0-20130402-231639/openerp/service/init.py", line 59, in load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/home/landy/openerp-7.0-20130402-231639/openerp/modules/module.py", line 405, in load_openerp_module
import('openerp.addons.' + module_name)
File "/home/landy/openerp-7.0-20130402-231639/openerp/modules/module.py", line 133, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/home/landy/openerp-7.0-20130402-231639/openerp/addons/web/init.py", line 3, in <module>
import cli
File "/home/landy/openerp-7.0-20130402-231639/openerp/addons/web/cli/init.py", line 1, in <module>
import test_js
File "/home/landy/openerp-7.0-20130402-231639/openerp/addons/web/cli/test_js.py", line 5, in <module>
import unittest2
ImportError: No module named unittest2
2013-04-03 03:21:31,095 38663 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-04-03 03:21:31,104 38663 INFO ? openerp: OpenERP server is running, waiting for connections... -
不是所有的python package都可以用apt来安装的,不过这个可以:
sudo apt-get install python-unittest2<br />