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

Error "File is not a zip file" #92

Open
merrygin opened this issue Nov 22, 2023 · 0 comments
Open

Error "File is not a zip file" #92

merrygin opened this issue Nov 22, 2023 · 0 comments

Comments

@merrygin
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant