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

./scripts/rebuild fails when run with new dataset as "FileNotFoundError: [Errno 2] .../nextclade_data/data_temp/nextstrain__ebola__zaire__unreleased.zip'" #183

Closed
corneliusroemer opened this issue Mar 6, 2024 · 1 comment

Comments

@corneliusroemer
Copy link
Member

Trying to build data_output locally using ./scripts/rebuild.

I pip installed repro_zipfile

But there seems to be an issue somewhere when the output zipfile doesn't exist yet:

❯ ./scripts/rebuild --input-dir ./data --output-dir ./data_output --allow-dirty && serve -l 3000 --cors ./data_output
INFO: :Adding '.dataset_order' entries to 'collection.json' for the following datasets: 'nextstrain/ebola/zaire'. Please reorder them manually as needed. This order is used when displaying datasets of the collection in the user interface.
Traceback (most recent call last):
  File "/Users/corneliusromer/code/nextclade_data/./scripts/rebuild", line 513, in <module>
    main()
  File "/Users/corneliusromer/code/nextclade_data/./scripts/rebuild", line 248, in main
    collection, release_infos_for_dataset, refs = process_one_collection(
                                                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/corneliusromer/code/nextclade_data/./scripts/rebuild", line 339, in process_one_collection
    release_infos = prepare_dataset_release_infos(args, datasets, datasets_from_index_json, collection_dir, tag,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/corneliusromer/code/nextclade_data/./scripts/rebuild", line 404, in prepare_dataset_release_infos
    create_dataset_package(args, dataset_new, path, tag, dataset_dir)
  File "/Users/corneliusromer/code/nextclade_data/./scripts/rebuild", line 496, in create_dataset_package
    make_zip(out_dir, zip_filename)
  File "/Users/corneliusromer/code/nextclade_data/scripts/lib/fs.py", line 80, in make_zip
    with ReproducibleZipFile(output_zip, "w") as z:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/py11/lib/python3.11/zipfile.py", line 1286, in __init__
    self.fp = io.open(file, filemode)
              ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/corneliusromer/code/nextclade_data/data_temp/nextstrain__ebola__zaire__unreleased.zip'
@corneliusroemer
Copy link
Member Author

This fixes it locally for me: 1c312a3#diff-d5f4f5bd26e03df0bb4c2793947f14867760abf4ead859f75ac14f54e3f12149R81

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

2 participants