Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Openerp 7.0 beta Allinone 安装的问题



  • 第一个问题 : 一如既往的服务安装不成功。

    按下面这个帖子,先安装一下 vcredist_x86.exe 即可。

    Windows ALL-In-One 安装后无法启动
    http://shine-it.net/index.php/topic,4207.msg11356.html#msg11356


    第二个问题,服务安装成功后,页面无法显示,还是老错误:

    No handler found.


    查看 openerp-server.log ,发现错误如下:



    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 "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 没有第二个错误



  • 第一个问题 : 一如既往的服务安装不成功。

    按下面这个帖子,先安装一下 vcredist_x86.exe 即可。

    Windows ALL-In-One 安装后无法启动
    http://shine-it.net/index.php/topic,4207.msg11356.html#msg11356


    第二个问题,服务安装成功后,页面无法显示,还是老错误:

    No handler found.


    查看 openerp-server.log ,发现错误如下:



    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 "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 没有第二个错误



  • 6.1 和 7.0 的变动蛮大,main.py 完全重写了。

    简单研究了一下:估计做如下修改可保正确运行
    下面代码仅仅是猜想,请勿照做。做完前面的处理,按理 OE 已经能正确运行了


    openerp\addons\auth_openid\controllers\main.py  第 49 行 对 getuser() 做容错处理

        try: 
        #info = getpass.getuser()
            info = getpass.getuser()
        except Exception:
            info = "unknown"
           
       



  • [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 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 "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





  • 也可以下载最新的 http://nightly.openerp.com/trunk/nightly/exe/openerp-allinone-setup-6.2dev-latest.exe
    win 7 x64 目前安装正常,可用.



  • windows下的研究比linux下的顺利的许多,7.0安装基本没压力,关键就是参照老肖的书来做数据演示了。哈哈



  • linux下的研究比windows下的顺利的许多,7.0安装基本没有问题,关键就是参照老肖的书来做数据演示了。哈哈  :P


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待