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

Ocasional PermissionError when running tldextract.extract #277

Open
bogdanpetrea opened this issue Nov 16, 2022 · 1 comment
Open

Ocasional PermissionError when running tldextract.extract #277

bogdanpetrea opened this issue Nov 16, 2022 · 1 comment

Comments

@bogdanpetrea
Copy link

Hi, I've encountered some ocasional PermissionError exceptions when calling tldextract.extract , but I'm not sure if this can be reproduced reliably.

I also mention that I'm running version 3.1, but I haven't seen any related fixes in the changelog. I'll upgrade to latest regardless.

Here are some logs from sentry:

Attempting to acquire lock XXX on /root/.cache/python-tldextract/3.9.12.final__local__xxx__tldextract-3.1.0/publicsuffix.org-tlds/xxx.tldextract.json.lock

PermissionError: [Errno 13] Permission denied: '/root/.cache/python-tldextract/3.9.12.final__local__xxx__tldextract-3.1.0/publicsuffix.org-tlds/xxx.tldextract.json.lock'
@john-kurkowski
Copy link
Owner

I wonder if it's related to #254? The occasional 20s+ network hang in reaching the Public Suffix List would explain the error. In that issue, unfortunately, the only workaround to silence the error is to disable fetching and/or caching the Public Suffix List.

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

2 participants