You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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/Envs/myenv/lib/python2.6/site-packages/tldextract/tldextract.py", line 114, in _extractreturn _extract(netloc, fetch)
File "
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/Envs/myenv/lib/python2.6/site-packages/tldextract/.tld_set_snapshot'with open(snapshot_file) as f:
IOError: [Errno 2] No such file or directory: '
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 aspython -m tldextract.tldextract http://forums.bbc.co.uk
on each machine after deploying to our cluster.The text was updated successfully, but these errors were encountered: