Skip to content

python error #2026

Answered by d3cim
paolo-hub asked this question in Q&A
Discussion options

You must be logged in to vote

File "/usr/lib/python3.9/urllib/request.py", line 1503, in open_local_file
stats = os.stat(localfile)
FileNotFoundError: [Errno 2] No such file or directory: 'domains-allowlist.txt'

urllib.error.URLError: <urlopen error [Errno 2] No such file or directory: 'domains-allowlist.txt'>

Exception: [file:domains-allowlist.txt] could not be loaded: <urlopen error [Errno 2] No such file or directory: 'domains-allowlist.txt'>

Make sure in the .py script folder there are all these files /utils/generate-domains-blocklist, domains-allowlist.txt in particular.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by paolo-hub
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2026 on February 08, 2022 08:24.