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

corrupted MANIFEST #361

Open
azazellochg opened this issue Aug 22, 2022 · 0 comments
Open

corrupted MANIFEST #361

azazellochg opened this issue Aug 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@azazellochg
Copy link
Member

Sometimes due to network/download issues the MANIFESt file gets corrupted and either become empty or contain one single line of all files:

temp.txtinput/DefaultFamily_particle_avg.xmpinput/projectionsBacteriorhodopsin.stkinput/commands.cmdinput/discreteAssignment.xmdinput/_tmpPca4input/1o7d.pdbinput/_tmpPca0input/phantomProject.paraminput/Test_Resolution_Big.pnginput/xray_psf_with_volume.volinput/phantom_descr.descrinput/xraySeries.stkinput/DefaultFamily_pca_model.stkinput/rec_art_noise.volinput/1FFKfull_reconstructed.volinput/ml_tomo.tar.gzinput/uniformProjection.paraminput/volume.spiinput/_tmpPca3input/mD1.docinpu

In this case running a test throws:

Traceback (most recent call last):
File "/net/nfs1/public/EM/Scipion/scipion-dev/scipion-pyworkflow/pyworkflow/apps/pw_sync_data.py", line 422, in <module>
main()
File "/net/nfs1/public/EM/Scipion/scipion-dev/scipion-pyworkflow/pyworkflow/apps/pw_sync_data.py", line 98, in main
update(dataset, url=args.url, verbose=args.verbose)
File "/net/nfs1/public/EM/Scipion/scipion-dev/scipion-pyworkflow/pyworkflow/apps/pw_sync_data.py", line 305, in update
md5sLocal = dict(x.strip().split() for x in open(join(datasetFolder, 'MANIFEST')))
ValueError: dictionary update sequence element #0 has length 1; 2 is required

I think we should check if the file contains at least a string with two columns.

@pconesa pconesa added the bug Something isn't working label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants