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

tz_world.json.gz does not exits #48

Closed
ulfaslak opened this issue Aug 24, 2017 · 1 comment
Closed

tz_world.json.gz does not exits #48

ulfaslak opened this issue Aug 24, 2017 · 1 comment

Comments

@ulfaslak
Copy link

ulfaslak commented Aug 24, 2017

Immediately after a fresh pip2 install I do:

from tzwhere import tzwhere
tzwhere.tzwhere()

I get the error (subset below):

/opt/conda/envs/python2/lib/python2.7/gzip.pyc in __init__(self, filename, mode, compresslevel, fileobj, mtime)
     92             mode += 'b'
     93         if fileobj is None:
---> 94             fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
     95         if filename is None:
     96             # Issue #13781: os.fdopen() creates a fileobj with a bogus name

IOError: [Errno 2] No such file or directory: '/opt/conda/envs/python2/lib/python2.7/site-packages/tzwhere/tz_world.json.gz'

It looks like gzip is trying to locate tz_world.json.gz. It does not exist inside the tzwhere folder, which includes only:

tzwhere.py                                                 
tzwhere.pyc                                                
tz_world_shortcuts.json

If I manually add the file to the directory it works. So it just seems that it is something in the pip installation that goes wrong.

@pegler
Copy link
Owner

pegler commented Aug 24, 2017

just pushed version 3.0.3 that should fix this

@pegler pegler closed this as completed Aug 24, 2017
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