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

Fails with error #53

Open
AntonKukoba1 opened this issue Dec 13, 2019 · 3 comments
Open

Fails with error #53

AntonKukoba1 opened this issue Dec 13, 2019 · 3 comments

Comments

@AntonKukoba1
Copy link

AntonKukoba1 commented Dec 13, 2019

It's MacOS, python 2.7.10
Traceback (most recent call last):
File "webpage2html.py", line 396, in
main()
File "webpage2html.py", line 391, in main
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
AttributeError: 'file' object has no attribute 'detach'

@vjerryv
Copy link

vjerryv commented May 21, 2020

same here

1 similar comment
@kaka77
Copy link

kaka77 commented Aug 1, 2021

same here

@neverased
Copy link

Just change sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
to
sys.stdout = codecs.getwriter("utf-8")(sys.stdout)

and you should be good to go :)

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