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

Tornado error when using matplotlib WabAgg backend #2686

Closed
Oswaldoj opened this issue Dec 17, 2013 · 2 comments
Closed

Tornado error when using matplotlib WabAgg backend #2686

Oswaldoj opened this issue Dec 17, 2013 · 2 comments

Comments

@Oswaldoj
Copy link

I installed matplotlib 1.3.1 under Windows 7, 32 bits, and Python 3.3. WebAgg seems to work fine, the graphics are beautifully displayed in my web browser (Chrome), but I am having some error messages from tornado that I do not understand. These errors happens as soon as I run the show() command on the Python console. Do you have any idea of what could be happening here?

Below is the error message content:

C:\Users\oswjimenez>py
Python 3.3.1 (v3.3.1:d9893d13c628, Apr  6 2013, 20:25:12) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
>>> x=linspace(1,10,100)
>>> y=sin(x)
>>> plot(x,y,'ro')
[<matplotlib.lines.Line2D object at 0x0310D3F0>]
>>> show()
Press Ctrl+C to stop server
ERROR:tornado.application:Uncaught exception GET /favicon.ico (127.0.0.1)
HTTPRequest(protocol='http', host='127.0.0.1:8988', method='GET', uri='/favicon.
ico', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Accept': '*/*', 'Acce
pt-Language': 'es-419,es;q=0.8,en;q=0.6', 'Connection': 'keep-alive', 'Accept-En
coding': 'gzip,deflate,sdch', 'Host': '127.0.0.1:8988', 'User-Agent': 'Mozilla/5
.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 S
afari/537.36'})
Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\tornado-3.1.1-py3.3.egg\tornado\web.py", l
ine 1141, in _when_complete
    callback()
  File "C:\Python33\lib\site-packages\tornado-3.1.1-py3.3.egg\tornado\web.py", l
ine 1162, in _execute_method
    self._when_complete(method(*self.path_args, **self.path_kwargs),
  File "C:\Python33\lib\site-packages\matplotlib\backends\backend_webagg.py", li
ne 381, in get
    self.write(fd.read())
  File "C:\Python33\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 120: char
acter maps to <undefined>
ERROR:tornado.access:500 GET /favicon.ico (127.0.0.1) 148.01ms

@tacaswell
Copy link
Member

@mdboom Can you take a look at this?

@tacaswell
Copy link
Member

I can not reproduce this on current master. @Oswaldoj If you still have this issue on current master please ping me to have this issue re-opened.

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

No branches or pull requests

2 participants