← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 656840] Re: v6 patch UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 11: ordinal not in range(128)

 

Thanks GEM,

I guess its 'wiki' module playing its part for the error.

I will check it soon.
Thanks.

-- 
v6 patch UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 11: ordinal not in range(128)
https://bugs.launchpad.net/bugs/656840
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: Incomplete

Bug description:
Hi,
in client web I have this error when I try to login :

Unrecoverable error in the server.
Traceback (most recent call last):
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cprequest.py", line 541, in run
    self.respond(pi)
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cprequest.py", line 624, in respond
    self.handle_error()
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cprequest.py", line 746, in handle_error
    self.error_response()
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\controllers\root.py", line 39, in _cp_on_error
    message = errorpage.render()
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\controllers\error_page.py", line 55, in render
    return self.__render(value)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\tools\_expose.py", line 220, in func_wrapper
    _template = load_template(template)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\tools\_expose.py", line 79, in load_template
    return template_lookup.get_template(template)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\tools\_expose.py", line 64, in get_template
    self.cache[str(uri)] = res = super(TL, self).get_template(uri)
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\mako-0.2.4-py2.5.egg\mako\lookup.py", line 85, in get_template
    return self.__load(srcfile, uri)
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\mako-0.2.4-py2.5.egg\mako\lookup.py", line 127, in __load
    self.__collection[uri] = Template(uri=uri, filename=posixpath.normpath(filename), lookup=self, module_filename=(self.modulename_callable is not None and self.modulename_callable(filename, uri) or None), **self.template_args)
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\mako-0.2.4-py2.5.egg\mako\template.py", line 93, in __init__
    (code, module) = _compile_text(self, file(filename).read(), filename)
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\mako-0.2.4-py2.5.egg\mako\template.py", line 250, in _compile_text
    node = lexer.parse()
  File "d:\OpenERP AllInOne\Web\python25\lib\site-packages\mako-0.2.4-py2.5.egg\mako\lexer.py", line 119, in parse
    self.text = preproc(self.text)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\templating.py", line 14, in edition_preprocessor
    Editor = pooler.get_pool().get(template.uri, group=EDITORS_GROUP)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\pooler.py", line 93, in get_pool
    addons.load_addons(db_name, config)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\openobject\addons.py", line 219, in load_addons
    new_modules = obj.get_new_modules()
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\controllers\modules.py", line 63, in get_new_modules
    web_payload = modules.get_web(addons_to_download)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\utils\rpc.py", line 396, in <lambda>
    return lambda *args: self._session.execute("object", "execute", self._resource, name, *args)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\utils\rpc.py", line 357, in execute
    return self.gateway.execute(obj, method, *args)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\utils\rpc.py", line 155, in execute
    return self.__execute(obj, method, args)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\utils\rpc.py", line 141, in __execute
    common.error(_('Application Error'), err.backtrace)
  File "d:\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0dev-py2.5.egg\openerp-web\addons\openerp\utils\common.py", line 72, in error
    raise TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "netsvc.pyo", line 481, in dispatch
  File "service\web_services.pyo", line 586, in dispatch
  File "osv\osv.pyo", line 57, in wrapper
  File "osv\osv.pyo", line 140, in execute
  File "osv\osv.pyo", line 130, in execute_cr
  File "d:\OpenERP AllInOne\Server\bin\addons\base\module\module.py", line 525, in get_web
  File "addons\__init__.pyo", line 229, in zip_directory
  File "addons\__init__.pyo", line 224, in _zippy
  File "zipfile.pyo", line 568, in write
  File "zipfile.pyo", line 260, in FileHeader
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 11: ordinal not in range(128)

if in server\bin\addons\__init__.py I change line 226 by
archname = tools.ustr(StringIO())
the error doesn't exist anymore.
Bye