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

RDFa parsing Error! __init__() got an unexpected keyword argument 'encoding' #639

Closed
papachoco opened this issue Jul 21, 2016 · 3 comments
Closed
Labels
bug Something isn't working parsing Related to a parsing.
Milestone

Comments

@papachoco
Copy link

With the newest version of html5lib; the html5lib.HTMLParser.parse method no longer takes a encoding parameter; but instead it is now override_encoding

this affect line 617 of pyRdfa.init.py

Carlos

@olberger
Copy link

olberger commented Dec 22, 2016

FWIW, I fixed this on my Debian, by commenting line 448 of /usr/lib/python3/dist-packages/rdflib/plugins/parsers/pyRdfa/init.py to avoid setting UTF-8 charset when loading a local file.

Seems same in https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/parsers/pyRdfa/__init__.py#L448

Hth

@joernhees joernhees added this to the rdflib 5.0.0 milestone Jan 26, 2017
@joernhees joernhees added bug Something isn't working parsing Related to a parsing. labels Jan 26, 2017
@joernhees
Copy link
Member

sorry, but this will only be fixable in 5.0.0 after we think of a way how to solve that pyrdfa and microdata have 2 repos (this one and one each) and things are reported and fixed in 2 places without any reliable means of syncing and even maintainers becoming confused...

@gromgull
Copy link
Member

We've moved RDFa out of core rdflib, so closing this. See #828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parsing Related to a parsing.
Projects
None yet
Development

No branches or pull requests

4 participants