Jupyter-themes: UnicodeDecodeError

Created on 5 Jan 2018  ·  8Comments  ·  Source: dunovank/jupyter-themes

how can I solve decode problem like this.

UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 41271: illegal multibyte sequence

Most helpful comment

This is the converted file, save it as 'notebook.less'
notebook.less.txt

and replace your notebook.less file in your site-packages/jupytherthemes/layout

It will work :D

All 8 comments

Try this(https://github.com/dunovank/jupyter-themes/pull/216). I had the same problem

Thank you.But I still not solve this problem in windows...

Could you explain more details?

I tried as below, and I think it could solve your problem.
Although I tried it on linux, I think encoding problem won't be different

  • I converted original notebook.less file to ASCII format using iconv tool and named it as 'notebook.less.ascii'
  • Without encoding parameter, it reads well
  • However, with 'gbk' encoding, it fails as you experienced
  • Finally, use converted file with 'gbk' encoding works well!

image

@aiqu Thank you for your help!
This is my problem:UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 41271: illegal multibyte sequence
The system I used is windows,I can not use the iconv tool to converted file with 'gbk' encoding

This is the converted file, save it as 'notebook.less'
notebook.less.txt

and replace your notebook.less file in your site-packages/jupytherthemes/layout

It will work :D

@aiqu
Wow, it really works!
Thank you very much!

Would someone mind upgrading to version 0.18.8 to see if this is fixed? And could you report your results back here? Thanks!

pip install --upgrade jupyterthemes

Has been fixed in v0.18.9 (see duplicate issues #217 and #220 )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vgoklani picture vgoklani  ·  6Comments

rouseguy picture rouseguy  ·  4Comments

suberlak picture suberlak  ·  4Comments

tanmay7270 picture tanmay7270  ·  5Comments

jingw222 picture jingw222  ·  3Comments