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

.tld_set_snapshot does not exist error #2

Closed
patjenk opened this issue Jul 7, 2011 · 1 comment
Closed

.tld_set_snapshot does not exist error #2

patjenk opened this issue Jul 7, 2011 · 1 comment

Comments

@patjenk
Copy link

patjenk commented Jul 7, 2011

I created a new virtualenv, installed tldextract 0.3 with pip and ran our test suite and received the follow stack trace:

File "/Envs/myenv/lib/python2.6/site-packages/tldextract/tldextract.py", line 96, in extract
return _extract(netloc, fetch)
File "
/Envs/myenv/lib/python2.6/site-packages/tldextract/tldextract.py", line 114, in _extract
registered_domain, tld = _get_tld_extractor(fetch).extract(netloc)
File "/Envs/myenv/lib/python2.6/site-packages/tldextract/tldextract.py", line 158, in _get_tld_extractor
with open(snapshot_file) as f:
IOError: [Errno 2] No such file or directory: '
/Envs/myenv/lib/python2.6/site-packages/tldextract/.tld_set_snapshot'

The issue is fixed when I run python -m tldextract.tldextract http://forums.bbc.co.uk. This is a problem for us because we are unable to run a command such as python -m tldextract.tldextract http://forums.bbc.co.uk on each machine after deploying to our cluster.

@john-kurkowski
Copy link
Owner

Fixed in 0.3.1 (e1bf7c8). Forgot to include .tld_set_snapshot in source dist.

john-kurkowski pushed a commit that referenced this issue Dec 12, 2015
Avoid importing the package in setup.py
ekcorso added a commit to ekcorso/tldextract that referenced this issue Mar 15, 2024
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