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

TypeError: __init__() got an unexpected keyword argument 'encoding' #390

Closed
tgrrr opened this issue Feb 13, 2018 · 2 comments
Closed

TypeError: __init__() got an unexpected keyword argument 'encoding' #390

tgrrr opened this issue Feb 13, 2018 · 2 comments

Comments

@tgrrr
Copy link

tgrrr commented Feb 13, 2018

html5lib.version is 1.0.1 produces the error

read_html('http://foo.com')

TypeError: __init__() got an unexpected keyword argument 'encoding'

Solution is to downgrade:pip3 install -U html5lib=="0.9999999"

It's a problem on SO here: and here

It looks like it was referenced as another issue but was closed

Is it possible to fix this in version 1.0.1?

@mirh
Copy link

mirh commented Aug 8, 2018

Bump

@willkg
Copy link
Contributor

willkg commented Aug 8, 2018

I don't see any evidence this is a problem with html5lib. Seems like this is a problem with whatever you're using that uses html5lib. There's no traceback in this issue, so it's hard to tell. The issues referenced are all issues with other software.

There aren't any specifics in this issues, so I can't be very helpful. Generally, upgrade the things you're using and make sure they either support recent versions of html5lib or are pinned to the versions they do support. Hope that helps!

Closing this out because there's nothing the html5lib project should do here.

@willkg willkg closed this as completed Aug 8, 2018
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

3 participants