[IPython-dev] A long shot: weird Chinese/Win XP/Anaconda/Notebook bug

Fernando Perez fperez.net at gmail.com
Thu Mar 6 13:18:04 EST 2014


Thanks a lot for tracking that down!

Bad news for the person who had the problem, but at least it's off our
plate.
On Mar 6, 2014 5:08 AM, "Christophe Pradal" <christophe.pradal at inria.fr>
wrote:

>  Hi everyone,
> It seems that this error is the same that the one reported in the Python
> issues:
> http://bugs.python.org/issue9291
>
> Cheers,
> Christophe Pradal
>
> Le 06/03/2014 07:39, Fernando Perez a écrit :
>
> Hey folks,
>
>  I know this is a super long shot, but I figured I'd post it in case
> anyone has an idea... At the workshop on teaching CS with the IPython
> notebook that just finished up, one attendee came up with a weird bug.  The
> platform was a Windows XP laptop with Chinese locale, running anaconda
> 1.9.1 32 bit  (IPython 1.2.1).
>
>  Given the error was in the awful cmd.exe console and all menus were in
> Chinese, I didn't do a very good job of capturing the traceback. Below is
> what I was able to get. If anyone recognizes the error and there's any
> chance it's something we can fix on master, that would be great.
>
>  Cheers,
>
>  f
>
>  ### Truncated traceback
>
>      init()
>   File "C:\Anaconda\lib\mimetypes.py", line 358, in init
>     db.read_windows_registry()
>   File "C:\Anaconda\lib\mimetypes.py", line 258, in read_windows_registry
>     for subkeyname in enum_types(hkcr):
>   File "C:\Anaconda\lib\mimetypes.py", line 249, in enum_types
>     ctype = ctype.encode(default_encoding) # omit in 3.x!
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 9:
> ordina
> not in range(128)
> 2014-03-06 11:02:31.858 [tornado.access] ERROR | 500 GET
> /static/custom/custom
> s (127.0.0.1) 109.00ms
> 2014-03-06 11:02:32.000 [tornado.application] ERROR | Uncaught exception
> GET /
> atic/base/images/favicon.ico (127.0.0.1)
> HTTPRequest(protocol='http', host='127.0.0.1:8889', method='GET',
> uri='/static
> ase/images/favicon.ico', version='HTTP/1.1', remote_ip='127.0.0.1',
> headers={'
> nnection': 'keep-alive', 'Accept-Language':
> 'zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0
> ', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': '127.0.0.1:8889',
> 'Accept':
> */*', 'User-Agent': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36
> (KHTML, l
> e Gecko) Chrome/33.0.1750.146 Safari/537.36'})
> Traceback (most recent call last):
>   File "C:\Anaconda\lib\site-packages\tornado\web.py", line 1218, in
> _when_com
> ete
>      callback()
>   File "C:\Anaconda\lib\site-packages\tornado\web.py", line 1239, in
> _execute_
> thod
>     self._when_complete(method(*self.path_args, **self.path_kwargs),
>   File "C:\Anaconda\lib\site-packages\IPython\html\base\handlers.py", line
> 320
> in get
>     mime_type, encoding = mimetypes.guess_type(abspath)
>   File "C:\Anaconda\lib\mimetypes.py", line 297, in guess_type
>     init()
>   File "C:\Anaconda\lib\mimetypes.py", line 358, in init
>     db.read_windows_registry()
>   File "C:\Anaconda\lib\mimetypes.py", line 258, in read_windows_registry
>     for subkeyname in enum_types(hkcr):
>   File "C:\Anaconda\lib\mimetypes.py", line 249, in enum_types
>     ctype = ctype.encode(default_encoding) # omit in 3.x!
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 9:
> ordina
> not in range(128)
> 2014-03-06 11:02:32.000 [tornado.access] ERROR | 500 GET
> /static/base/images/f
> icon.ico (127.0.0.1) 125.00ms
>
>  --
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
>
>
> _______________________________________________
> IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140306/a6a54ab2/attachment.html>


More information about the IPython-dev mailing list