ome / ome_zarr_test_suite

Test suite of reader and writer implementations
4 stars 6 forks source link

Local setup and test instructions #10

Closed will-moore closed 3 years ago

will-moore commented 3 years ago

Trying to setup conda from the environment.yml to run locally:

$ conda create -n ome_zarr_test_suite -f environment.yml 
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - environment.yml

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

Without the -n argument (as at https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file):

$ conda create -f environment.yml 
WARNING: A conda environment already exists at '/opt/anaconda3/envs/napari'
Remove existing environment (y/[n])? n

Also tried $ conda create --prefix ./envs -f environment.yml which gives the same error as above. So I guess this environment.yml is not designed for this usage.

will-moore commented 3 years ago

Seems we need:

$ conda env create -n ome_zarr_test_suite -f environment.yml 
joshmoore commented 3 years ago

Shall we capture this in the README?