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

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

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

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

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



  • windows 下面跑的测试环境,今天突然报错了,<br />跟踪了半天发现是个小问题<br />注册表项目中 有了一个中文项,删除即可。这是安装 绘声绘影造成的<br />HKEY_CLASSES_ROOT\MIME\Database\Content Type<br /><br />~~~~~~~~~~~~~~<br /><br />Traceback (most recent call last):<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp-server", line 42, in <module><br />    import openerp<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp_init_.py", line 39, in <module><br />    import service<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service_init_.py", line 26, in <module><br />    import http_server<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\http_server.py", line 49, in <module><br />    from websrv_lib import *<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\websrv_lib.py", line 38, in <module><br />    from SimpleHTTPServer import SimpleHTTPRequestHandler<br />  File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module><br />    class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):<br />  File "C:\Python27\lib\SimpleHTTPServer.py", line 204, in SimpleHTTPRequestHandler<br />    mimetypes.init() # try to read system mime.types<br />  File "C:\Python27\lib\mimetypes.py", line 355, in init<br />    db.read_windows_registry()<br />  File "C:\Python27\lib\mimetypes.py", line 259, in read_windows_registry<br />    for ctype in enum_types(mimedb):<br />  File "C:\Python27\lib\mimetypes.py", line 249, in enum_types<br />    ctype = ctype.encode(default_encoding) # omit in 3.x!<br />UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte<br /><br /><br />



  • windows 下面跑的测试环境,今天突然报错了,<br />跟踪了半天发现是个小问题<br />注册表项目中 有了一个中文项,删除即可。这是安装 绘声绘影造成的<br />HKEY_CLASSES_ROOT\MIME\Database\Content Type<br /><br />~~~~~~~~~~~~~~<br /><br />Traceback (most recent call last):<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp-server", line 42, in <module><br />    import openerp<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp_init_.py", line 39, in <module><br />    import service<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service_init_.py", line 26, in <module><br />    import http_server<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\http_server.py", line 49, in <module><br />    from websrv_lib import *<br />  File "D:\3lp\studio\OpenERP\source6.1\server\openerp\service\websrv_lib.py", line 38, in <module><br />    from SimpleHTTPServer import SimpleHTTPRequestHandler<br />  File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module><br />    class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):<br />  File "C:\Python27\lib\SimpleHTTPServer.py", line 204, in SimpleHTTPRequestHandler<br />    mimetypes.init() # try to read system mime.types<br />  File "C:\Python27\lib\mimetypes.py", line 355, in init<br />    db.read_windows_registry()<br />  File "C:\Python27\lib\mimetypes.py", line 259, in read_windows_registry<br />    for ctype in enum_types(mimedb):<br />  File "C:\Python27\lib\mimetypes.py", line 249, in enum_types<br />    ctype = ctype.encode(default_encoding) # omit in 3.x!<br />UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte<br /><br /><br />


  • 管理员

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


登录后回复
 

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