Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

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

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

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

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

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

    Odoo 开发与实施交流
    2
    3
    2731
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zhong_163 last edited by

      有人 报错  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模块错误!

      1 Reply Last reply Reply Quote 0
      • mrshelly
        mrshelly last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post