Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Error "File is not a zip file" #92

@merrygin

Description

@merrygin

When trying to perform "intertext --infiles "[...]/*.txt" a "BadZipFile" Error occurs. Looks like something package-side going wrong, not downloading the right files?

Terminal output:

(intertext2) [...] % intertext --infiles "analysis/data/*.txt"       
                        
[...]/opt/anaconda3/envs/intertext2/lib/python3.7/site-packages/vectorizedMinHash/bias_coef.npy
 * fetching client version 0.0.1a
Traceback (most recent call last):
  File "[...]/opt/anaconda3/envs/intertext2/bin/intertext", line 8, in <module>
    sys.exit(parse())
  File "[...]/opt/anaconda3/envs/intertext2/lib/python3.7/site-packages/intertext/intertext.py", line 142, in parse
    download_client(**config)
  File "[...]/opt/anaconda3/envs/intertext2/lib/python3.7/site-packages/intertext/intertext.py", line 164, in download_client
    with zipfile.ZipFile(zip_location, 'r') as z:
  File "[...]/opt/anaconda3/envs/intertext2/lib/python3.7/zipfile.py", line 1258, in __init__
    self._RealGetContents()
  File "/[...]/opt/anaconda3/envs/intertext2/lib/python3.7/zipfile.py", line 1325, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Help is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions