Comment 8 for bug 1193563

Revision history for this message
Ilia Naryzhny (phantom-s) wrote : Re: [Bug 1193563] Re: Can't print: raise TypeError('Expected bytes') in the logs

I'm on gentoo... And there we are obtaining updates much quicker than twice
per year like for Ubuntu:) So... be ready for update of werkzeug to 0.9.1...

Ilia

2013/6/24 Alberto Martín - Guadaltech <email address hidden>

> The apt-get package for werkzeug is the same as Gustavo (0.8.3), and
> worked to me too,
>
> so the problem must be in the version of pip (0.9.3) or in the SO, i'm
> using Ubuntu 13.04
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1193563
>
> Title:
> Can't print: raise TypeError('Expected bytes') in the logs
>
> Status in OpenERP Addons (modules):
> Incomplete
>
> Bug description:
> We have openerp v7 installation. When I'm trying to print any page with
> the aid of "Print" submenu I obtain following in UI:
>
> Uncaught SyntaxError: Unexpected end of input
>
> http://erp.npp-alion.ru/?ts=1371848653090#id=6&view_type=form&model=product.product&menu_id=363&action=425:0
>
> And following in the logs:
>
> 2013-06-22 07:12:50,987 24036 ERROR openerp
> openerp.addons.web.http.HttpRequest.dispatch: An error occurred while
> handling a json request
> Traceback (most recent call last):
> File "/usr/openerp/addons/web/http.py", line 285, in dispatch
> r = method(self, **self.params)
> File "/usr/openerp/addons/web/controllers/main.py", line 1767, in index
> cookies={'fileToken': int(token)})
> File "/usr/openerp/addons/web/http.py", line 332, in make_response
> response.set_cookie(k, v)
> File "/usr/lib64/python2.7/site-packages/werkzeug/wrappers.py", line
> 960, in set_cookie
> self.charset))
> File "/usr/lib64/python2.7/site-packages/werkzeug/http.py", line 905,
> in dump_cookie
> value = to_bytes(value, charset)
> File "/usr/lib64/python2.7/site-packages/werkzeug/_compat.py", line
> 106, in to_bytes
> raise TypeError('Expected bytes')
> TypeError: Expected bytes
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-addons/+bug/1193563/+subscriptions
>