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

Unicode strings with encoding declaration are not supported. #92

Closed
tonylee2016 opened this issue Aug 12, 2022 · 6 comments
Closed

Unicode strings with encoding declaration are not supported. #92

tonylee2016 opened this issue Aug 12, 2022 · 6 comments

Comments

@tonylee2016
Copy link

ERROR - Error reading page 'xxxx/xxx.ipynb': Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

its related to lxml

File "src/lxml/etree.pyx", line 3254, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1908, in lxml.etree._parseMemoryDocument

@tonylee2016
Copy link
Author

workaround: put # coding: utf-8 in the notebook

@tonylee2016
Copy link
Author

I believe it is not related to package, closing the issue

@jayqi
Copy link

jayqi commented Aug 12, 2022

I ran into this issue as well.

@tonylee2016 can you please clarify where you think this error is originating from? Is it nbconvert or lxml? I haven't found issues in any other projects that seem to be related to this.

@tonylee2016
Copy link
Author

I ran into this issue as well.

@tonylee2016 can you please clarify where you think this error is originating from? Is it nbconvert or lxml? I haven't found issues in any other projects that seem to be related to this.

its nbconvert, I think it calls lxml. In my case, one cell in my notebook is using schemdraw. After I clear the output in that cell, it worked.

@pjbull
Copy link

pjbull commented Sep 6, 2022

Looks like there was a partial fix here: jupyter/nbconvert#1837
And finishing that is tracked here: jupyter/nbconvert#1849

@craldaz
Copy link

craldaz commented Dec 1, 2022

I get this error when I try to run the demo. It occurs in the ruby.ipynb notebook. Removing it allows the demo to run.

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

4 participants