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账号

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

    运行环境安装 绘声绘影 后的一个错误 (MIME)

    Odoo 开发与实施交流
    2
    3
    4291
    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.
    • C
      ccdos last edited by

      windows 下面跑的测试环境,今天突然报错了,
      跟踪了半天发现是个小问题
      注册表项目中 有了一个中文项,删除即可。这是安装 绘声绘影造成的
      HKEY_CLASSES_ROOT\MIME\Database\Content Type

      ~~~~~~~~~~~~~~

      Traceback (most recent call last):
        File "D:\3lp\studio\OpenERP\source6.1\server\openerp-server", line 42, in <module>
          import openerp
        File "D:\3lp\studio\OpenERP\source6.1\server\openerp_init_.py", line 39, in <module>
          import service
        File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service_init_.py", line 26, in <module>
          import http_server
        File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\http_server.py", line 49, in <module>
          from websrv_lib import *
        File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\websrv_lib.py", line 38, in <module>
          from SimpleHTTPServer import SimpleHTTPRequestHandler
        File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
          class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
        File "C:\Python27\lib\SimpleHTTPServer.py", line 204, in SimpleHTTPRequestHandler
          mimetypes.init() # try to read system mime.types
        File "C:\Python27\lib\mimetypes.py", line 355, in init
          db.read_windows_registry()
        File "C:\Python27\lib\mimetypes.py", line 259, in read_windows_registry
          for ctype in enum_types(mimedb):
        File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
          ctype = ctype.encode(default_encoding) # omit in 3.x!
      UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte


      1 Reply Last reply Reply Quote 0
      • digitalsatori
        digitalsatori 管理员 last edited by

        强人啊,连这个问题也被你给找出来了。
        但,这基本上还是OpenERP的一个bug,因为windows中的中的中文是用cp936编码的,而OpenERP却想用utf-8来解码所以有这样的错误。

        【上海先安科技】(tony AT openerp.cn)

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