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

Fix bad zip file issue with GEE API #22

Open
pasquierjb opened this issue Jul 19, 2018 · 0 comments
Open

Fix bad zip file issue with GEE API #22

pasquierjb opened this issue Jul 19, 2018 · 0 comments
Assignees

Comments

@pasquierjb
Copy link
Collaborator

File "../Src/img_lib.py", line 183, in download_images
self._save_img(url, self.image_dir, file_name, provider)
File "../Src/img_lib.py", line 238, in _save_img
gee_tif = sentinel_utils.download_and_unzip(buffer, 3, 6, file_path)
File "../Src/sentinel_utils.py", line 88, in download_and_unzip
zip_file = ZipFile(buffer)
File "/home/anaconda3/envs/HRM/lib/python3.5/zipfile.py", line 1026, in init
self._RealGetContents()
File "/home/anaconda3/envs/HRM/lib/python3.5/zipfile.py", line 1093, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

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