Openerp 7.0 beta Allinone 安装的问题
-
第一个问题 : 一如既往的服务安装不成功。
按下面这个帖子,先安装一下 vcredist_x86.exe 即可。
Windows ALL-In-One 安装后无法启动<br / [检测到链接无效,已移除] br />
第二个问题,服务安装成功后,页面无法显示,还是老错误:
No handler found.
查看 openerp-server.log ,发现错误如下:
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 "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\service_init_.py", line 54, in load_server_wide_modules
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\modules\module.py", line 414, in load_openerp_module
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 584, in wsgi_postload
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 467, in init
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 540, in load_addons
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\modules\module.py", line 133, in load_module
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid_init.py", line 23, in <module>
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers_init_.py", line 20, in <module>
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers\main.py", line 56, in <module>
File "C:\Program Files\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers\main.py", line 49, in get_system_user
File "getpass.pyo", line 157, in getuser
ImportError: No module named pwd
=================================================
看错误是缺少了 pwd模块的缘故,但 pwd 是个标准模块,不过似乎只用于 linux(不知道我说得是否正确,请指正)
查到 getpass.py , line 157 如下:
def getuser():
"""Get the username from the environment or password database.
First try various environment variables, then the password
database. This works on Windows as long as USERNAME is set.
"""
import os
for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'):
user = os.environ.get(name)
if user:
return user
# If this fails, the exception will "explain" why
import pwd
return pwd.getpwuid(os.getuid())[0]
看代码可知,在 windows ,按理 应该能从 四个环境变量之一取得 当前用户名,但是 失败了。转而用 pwd.getpwuid 取当前用户名,偏偏windows 下面没这个模块,于是报错。
不错 思路有了,不是取不到当前用户名嘛,咱就给你一个。
给 Openerp 的服务 指定一个 登录帐号
[attachimg=1]
重启服务,OK。
上述错误都是在 一个完全新安装的 Windows XP 并打好全部补丁的软件环境完成 ,除了 firefox 无其它的软件安装。
进一步的问题,为嘛 6.1 没有第二个错误 -
[b]非常感谢!安装7.0BETA也遇到了这个问题。而且还提示 不能加载WEB模块,按照你上面介绍的情况给OE添加个用户之后就完全可以登录了。WEB模块也成功加载。
再次谢谢!
[/b]
2012-11-26 16:56:13,733 5984 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
2012-11-26 16:56:13,733 5984 INFO ? openerp.netsvc: Starting 1 services
2012-11-26 16:56:13,750 5984 INFO ? openerp: OpenERP server is running, waiting for connections...
2012-11-26 16:56:13,890 5984 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2012-11-26 16:56:18,108 3644 INFO ? openerp: OpenERP version 6.2dev-20121116-000101
2012-11-26 16:56:18,108 3644 INFO ? openerp: addons paths: D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons
2012-11-26 16:56:18,108 3644 INFO ? openerp: database hostname: localhost
2012-11-26 16:56:18,108 3644 INFO ? openerp: database port: 5432
2012-11-26 16:56:18,108 3644 INFO ? openerp: database user: openpg
2012-11-26 16:56:18,342 3644 CRITICAL ? openerp.modules.module: Couldn't load module web
2012-11-26 16:56:18,342 3644 CRITICAL ? openerp.modules.module: No module named pwd
2012-11-26 16:56:18,342 3644 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 "D:\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\service_init_.py", line 54, in load_server_wide_modules
File "D:\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\modules\module.py", line 414, in load_openerp_module
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 584, in wsgi_postload
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 467, in init
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\web\http.py", line 540, in load_addons
File "D:\OpenERP 6.2dev-20121116-000101\Server\server.\openerp\modules\module.py", line 133, in load_module
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid_init.py", line 23, in <module>
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers_init_.py", line 20, in <module>
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers\main.py", line 56, in <module>
File "D:\OpenERP 6.2dev-20121116-000101\Server\server\openerp\addons\auth_openid\controllers\main.py", line 49, in get_system_user
File "getpass.pyo", line 157, in getuser
ImportError: No module named pwd -
windows下的研究比linux下的顺利的许多,7.0安装基本没压力,关键就是参照老肖的书来做数据演示了。哈哈