终于搞定了,少了unittest2模块
root@openerp3:/opt/openerp#sudo pip install docutils
棋子
-
Openerp安装问题web提示:No handler found.求解决 -
Openerp安装问题web提示:No handler found.求解决openerop-server.log
2013-06-27 04:12:00,856 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.request:INFO"
2013-06-27 04:12:00,857 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.response:INFO"
2013-06-27 04:12:00,857 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.http:INFO"
2013-06-27 04:12:00,857 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.sql_db:INFO"
2013-06-27 04:12:00,857 1480 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2013-06-27 04:12:00,857 1480 DEBUG ? openerp.netsvc: logger level set: "openerp:DEBUG"
2013-06-27 04:12:00,858 1480 DEBUG ? openerp.netsvc: logger level set: "[':INFO']"
2013-06-27 04:12:00,858 1480 INFO ? openerp: OpenERP version 7.0-20130325-002404
2013-06-27 04:12:00,858 1480 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2013-06-27 04:12:00,858 1480 INFO ? openerp: database hostname: localhost
2013-06-27 04:12:00,858 1480 INFO ? openerp: database port: 5432
2013-06-27 04:12:00,858 1480 INFO ? openerp: database user: openerp
2013-06-27 04:12:00,859 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.request:INFO"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.response:INFO"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.http:INFO"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: "openerp.sql_db:INFO"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: "openerp:DEBUG"
2013-06-27 04:12:00,860 1480 DEBUG ? openerp.netsvc: logger level set: "[':INFO']"
2013-06-27 04:12:00,863 1480 DEBUG ? openerp.netsvc: Registered an exported service: db
2013-06-27 04:12:00,863 1480 DEBUG ? openerp.netsvc: Registered an exported service: common
2013-06-27 04:12:00,863 1480 DEBUG ? openerp.netsvc: Registered an exported service: object
2013-06-27 04:12:00,864 1480 DEBUG ? openerp.netsvc: Registered an exported service: report
2013-06-27 04:12:01,186 1480 CRITICAL ? openerp.modules.module: Couldn't load module web
2013-06-27 04:12:01,187 1480 CRITICAL ? openerp.modules.module: No module named unittest2
2013-06-27 04:12:01,187 1480 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 "/opt/openerp/server/openerp/service/init.py", line 59, 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 3, in <module>
import cli
File "/opt/openerp/server/openerp/addons/web/cli/init.py", line 1, in <module>
import test_js
File "/opt/openerp/server/openerp/addons/web/cli/test_js.py", line 5, in <module>
import unittest2
ImportError: No module named unittest2
2013-06-27 04:12:01,233 1480 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2013-06-27 04:12:01,236 1480 DEBUG ? openerp.service.cron: cron0 started!
2013-06-27 04:12:01,237 1480 DEBUG ? openerp.service.cron: cron1 started!
2013-06-27 04:12:01,237 1480 INFO ? openerp: OpenERP server is running, waiting for connections...
2013-06-27 04:13:02,298 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:13:02,298 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:14:03,360 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:14:03,360 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:15:04,421 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:15:04,422 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:15:18,307 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:18] "GET / HTTP/1.1" 404 -
2013-06-27 04:15:18,376 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:18] "GET /favicon.ico HTTP/1.1" 404 -
2013-06-27 04:15:18,383 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:18] "GET /favicon.ico HTTP/1.1" 404 -
2013-06-27 04:15:18,387 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:18] "GET /favicon.ico HTTP/1.1" 404 -
2013-06-27 04:15:24,795 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:24] "GET / HTTP/1.1" 404 -
2013-06-27 04:15:27,538 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:27] "GET / HTTP/1.1" 404 -
2013-06-27 04:15:30,401 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:30] "GET / HTTP/1.1" 404 -
2013-06-27 04:15:32,347 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:32] "GET / HTTP/1.1" 404 -
2013-06-27 04:15:34,165 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:15:34] "GET / HTTP/1.1" 404 -
2013-06-27 04:16:05,483 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:16:05,483 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:16:51,698 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:16:51] "GET / HTTP/1.1" 404 -
2013-06-27 04:16:52,000 1480 INFO ? werkzeug: 192.168.200.75 - - [27/Jun/2013 04:16:52] "GET /favicon.ico HTTP/1.1" 404 -
2013-06-27 04:17:06,545 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:17:06,545 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:18:07,606 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:18:07,607 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:19:08,668 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:19:08,668 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs
2013-06-27 04:20:09,729 1480 DEBUG ? openerp.service.cron: cron1 polling for jobs -
碰到重建索引问题的解决可能是数据没执行完就退出产生的
-
碰到重建索引问题的解决提示:
2013-05-02 13:12:57,247 4912 [1;31m[1;49mERROR[0m test openerp.osv.osv: Uncau
ght exception
Traceback (most recent call last):
File "C:\GreenOpenERP\openerp\osv\osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "C:\GreenOpenERP\openerp\osv\osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "C:\GreenOpenERP\openerp\osv\osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "C:\GreenOpenERP\openerp\addons\hr\hr_department.py", line 94, in read
res = super(ir_action_window, self).read(cr, uid, select, fields=fields, con
text=context, load=load)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 3604, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 3724, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=
res)
File "C:\GreenOpenERP\openerp\osv\fields.py", line 1131, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "C:\GreenOpenERP\openerp\addons\base\ir\ir_actions.py", line 211, in _sea
rch_view
'search', context=context)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 2260, in fields_view_get
xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id
, context=ctx)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 1913, in __view_look_dom_arch
fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, co
ntext=context)
File "C:\GreenOpenERP\openerp\osv\orm.py", line 1846, in __view_look_dom
trans = self.pool.get('ir.translation').get_source(cr, user, context['base
model_name'], 'view', context['lang'], node.get('string'))
File "C:\GreenOpenERP\openerp\tools\cache.py", line 18, in lookup
r = self.lookup(self2, cr, *args)
File "C:\GreenOpenERP\openerp\tools\cache.py", line 46, in lookup
value = d[key] = self.method(self2, cr, *args)
File "C:\GreenOpenERP\openerp\addons\base\ir\ir_translation.py", line 288, in
_get_source
cr.execute(query, params)
File "C:\GreenOpenERP\openerp\sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "C:\GreenOpenERP\openerp\sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
InternalError: index "ir_translation_src_hash_idx" contains unexpected zero page
at block 71
HINT: Please REINDEX it.
以下的解决方法是jeff 给的
附件图