Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to PDF does not work #4

Open
H-Max opened this issue Jun 6, 2014 · 2 comments · May be fixed by #7
Open

Export to PDF does not work #4

H-Max opened this issue Jun 6, 2014 · 2 comments · May be fixed by #7

Comments

@H-Max
Copy link

H-Max commented Jun 6, 2014

Hi there.

First of all great module : saves a lot of time...

I have an issue while trying to export in PDF :

2014-06-06 08:36:10,748 32630 ERROR
openerp.addons.web.http.HttpRequest.dispatch: An error occurred while handling a json request
Traceback (most recent call last):
File "/home/openerp/web/addons/web/http.py", line 285, in dispatch
r = method(self, **self.params)
File "/home/openerp/web_addons/web_printscreen_zb/controllers.py", line 182, in index
cookies={'fileToken': int(token)})
File "/home/openerp/web/addons/web/http.py", line 332, in make_response
response.set_cookie(k, v)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 992, in set_cookie
self.charset))
File "/usr/local/lib/python2.7/dist-packages/werkzeug/http.py", line 905, in dump_cookie
value = to_bytes(value, charset)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/_compat.py", line 106, in to_bytes
raise TypeError('Expected bytes')
TypeError: Expected bytes

I have no idea where this is coming from...

@hectorh30
Copy link

Thanks to Hans I managed to solve this very issue downgrading the Werkzeug version to 0.8.3: pip install werkzeug==0.8.3

@TemisC
Copy link

TemisC commented Jun 29, 2017

thanks! I can solve for Openerp7 Ubuntu 14.04 with ---> sudo pip install --upgrade werkzeug==0.8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants