webpage2html icon indicating copy to clipboard operation
webpage2html copied to clipboard

Fails with error

Open AntonKukoba1 opened this issue 5 years ago • 3 comments

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'

AntonKukoba1 avatar Dec 13 '19 12:12 AntonKukoba1

same here

vjerryv avatar May 21 '20 09:05 vjerryv

same here

kaka77 avatar Aug 01 '21 13:08 kaka77

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 :)

neverased avatar Aug 30 '21 12:08 neverased