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

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

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

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

汉字zip 文件导致 web模块异常



  • 有人 报错  Couldn't load module web

    2014-01-16 06:55:22,284 1052 CRITICAL ? openerp.modules.module: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
    2014-01-16 06:55:22,285 1052 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 "/Users/huzh/Documents/work/openerp7/openerp/service/init.py", line 60, in load_server_wide_modules
        openerp.modules.module.load_openerp_module(m)
      File "/Users/huzh/Documents/work/openerp7/openerp/modules/module.py", line 415, in load_openerp_module
        getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 628, in wsgi_postload
        openerp.wsgi.register_wsgi_handler(Root())
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 517, in init
        self.load_addons()
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 573, in load_addons
        manifest_path = os.path.join(addons_path, module, 'openerp.py')
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 71, in join
        path += '/' + b
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
    2014-01-16 06:55:22,326 1052 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2014-01-16 06:55:22,327 1052 INFO ? openerp: OpenERP server is running, waiting for connections...



    之前 没注意啥问题,,有次,不小心在addons 目录弄个 带汉字的zip 文件 如“abc汉字.zip”  源码运行  就报上述错误,

    删除 该 文件,,系统正常

    提示:有时候提示,,会走入误区,,,想想之前干了啥,看提示,web 模块错误,再看前一段,,, 'ascii' codec can't decode byte 0xe6 in position 4: o


    解决了问题,再重现问题,发现,人家提示也是对的,,,编码错误。。。导致web模块错误!



  • 有人 报错  Couldn't load module web

    2014-01-16 06:55:22,284 1052 CRITICAL ? openerp.modules.module: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
    2014-01-16 06:55:22,285 1052 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 "/Users/huzh/Documents/work/openerp7/openerp/service/init.py", line 60, in load_server_wide_modules
        openerp.modules.module.load_openerp_module(m)
      File "/Users/huzh/Documents/work/openerp7/openerp/modules/module.py", line 415, in load_openerp_module
        getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 628, in wsgi_postload
        openerp.wsgi.register_wsgi_handler(Root())
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 517, in init
        self.load_addons()
      File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 573, in load_addons
        manifest_path = os.path.join(addons_path, module, 'openerp.py')
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 71, in join
        path += '/' + b
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
    2014-01-16 06:55:22,326 1052 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2014-01-16 06:55:22,327 1052 INFO ? openerp: OpenERP server is running, waiting for connections...



    之前 没注意啥问题,,有次,不小心在addons 目录弄个 带汉字的zip 文件 如“abc汉字.zip”  源码运行  就报上述错误,

    删除 该 文件,,系统正常

    提示:有时候提示,,会走入误区,,,想想之前干了啥,看提示,web 模块错误,再看前一段,,, 'ascii' codec can't decode byte 0xe6 in position 4: o


    解决了问题,再重现问题,发现,人家提示也是对的,,,编码错误。。。导致web模块错误!



  • 不推荐在 addons 中使用汉字文件夹. 以及 zip 文件.....


登录后回复
 

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