hosts: UnicodeDecodeError

Error in updating source: https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts Traceback (most recent call last): File “hosts/updateHostsFile.py”, line 1513, in <module> main() File “hosts/updateHostsFile.py”, line 168, in main update_all_sources(source_data_filename, settings[“hostfilename”]) File “hosts/updateHostsFile.py”, line 595, in update_all_sources update_data = json.load(update_file) File “/usr/lib/python3.6/json/init.py”, line 296, in load return loads(fp.read(), File “/usr/lib/python3.6/encodings/ascii.py”, line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 27: ordinal not in range(128)

Dockerfile attached.

docker run -it <image_id> /usr/bin/python3 hosts/updateHostsFile.py --auto --extensions social porn fakenews gambling

Dockerfile.txt

Thanks!!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

@funilrys I understand; I meant that to be for future users to find. Thank you though. 😃