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

zipfile.BadZipFile: File is not a zip file #67

Open
SHMinger opened this issue Jul 30, 2023 · 0 comments
Open

zipfile.BadZipFile: File is not a zip file #67

SHMinger opened this issue Jul 30, 2023 · 0 comments

Comments

@SHMinger
Copy link

when i exercute the command 'bash run_alphafold.sh -d /data_2/Data_Files/AlphaFold2/genetic_databases/ -o ./dummy_test/ -f ./example/query.fasta -t 2020-05-14', it reported an error:
I0730 18:44:05.567088 140602220536896 templates.py:857] Using precomputed obsolete pdbs /data_2/Data_Files/AlphaFold2/genetic_databases//pdb_mmcif/obsolete.dat.
Traceback (most recent call last):
File "
/Program_Files/biosoft/alphafold-2.3.1/run_alphafold.py", line 432, in
app.run(main)
File "
/anaconda3/envs/alphafold/lib/python3.8/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/anaconda3/envs/alphafold/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "
/Program_Files/biosoft/alphafold-2.3.1/run_alphafold.py", line 380, in main
model_params = data.get_model_haiku_params(
File "/Program_Files/biosoft/alphafold-2.3.1/alphafold/model/data.py", line 31, in get_model_haiku_params
params = np.load(io.BytesIO(f.read()), allow_pickle=False)
File "
/anaconda3/envs/alphafold/lib/python3.8/site-packages/numpy/lib/npyio.py", line 432, in load
ret = NpzFile(fid, own_fid=own_fid, allow_pickle=allow_pickle,
File "/anaconda3/envs/alphafold/lib/python3.8/site-packages/numpy/lib/npyio.py", line 189, in init
_zip = zipfile_factory(fid)
File "
/anaconda3/envs/alphafold/lib/python3.8/site-packages/numpy/lib/npyio.py", line 112, in zipfile_factory
return zipfile.ZipFile(file, *args, **kwargs)
File "/anaconda3/envs/alphafold/lib/python3.8/zipfile.py", line 1269, in init
self._RealGetContents()
File "
/anaconda3/envs/alphafold/lib/python3.8/zipfile.py", line 1336, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file.
What does it mean? And How can I deal with it? Is it caused by my databases corruption?

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

1 participant