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

Add support for newer zip formats #2520

Closed
abhidg opened this issue Feb 14, 2022 · 0 comments · Fixed by #2523
Closed

Add support for newer zip formats #2520

abhidg opened this issue Feb 14, 2022 · 0 comments · Fixed by #2523
Assignees
Labels
Importer P1: Launch blocker Needs fixing before we launch, schedule some time to investigate & fix
Milestone

Comments

@abhidg
Copy link
Contributor

abhidg commented Feb 14, 2022

Mexico parser can't decompress zip file as format is unsupported by Python.

File seems to be a zip file, decompressing it now
Traceback (most recent call last):
File "./retrieval/retrieval.py", line 346, in <module>
    run_retrieval(tempdir=(TEMP_PATH if len(sys.argv) == 1 else sys.argv[1]))
File "./retrieval/retrieval.py", line 319, in run_retrieval
    file_names_s3_object_keys = retrieve_content(
File "./retrieval/retrieval.py", line 159, in retrieve_content
    bytesio = raw_content(url, content, tempdir)
File "./retrieval/retrieval.py", line 113, in raw_content
    with zf.open(name) as f:
File "/usr/local/lib/python3.8/zipfile.py", line 1571, in open
    return ZipExtFile(zef_file, mode, zinfo, pwd, True)
File "/usr/local/lib/python3.8/zipfile.py", line 819, in __init__
    self._decompressor = _get_decompressor(self._compress_type)
File "/usr/local/lib/python3.8/zipfile.py", line 720, in _get_decompressor
    _check_compression(compress_type)
File "/usr/local/lib/python3.8/zipfile.py", line 700, in _check_compression
    raise NotImplementedError("That compression method is not supported")
NotImplementedError: That compression method is not supported
@abhidg abhidg added P1: Launch blocker Needs fixing before we launch, schedule some time to investigate & fix Importer labels Feb 14, 2022
@abhidg abhidg added this to the Leonidas milestone Feb 14, 2022
@abhidg abhidg self-assigned this Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Importer P1: Launch blocker Needs fixing before we launch, schedule some time to investigate & fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant