NASA-NAVO / navo-workshop

Tutorial notebooks for how to use PyVO to access NASA and other data in Python.
https://NASA-NAVO.github.io/navo-workshop
BSD 3-Clause "New" or "Revised" License
41 stars 26 forks source link

Ensure conda environment creation is working #100

Closed tomdonaldson closed 1 year ago

tomdonaldson commented 1 year ago

While creating the conda environment according to the instructions in 00_SETUP.md (conda env create --file environment.yml), I encountered this error:

Preparing transaction: done
Verifying transaction: \ 
SafetyError: The package for pyvo located at /Users/donald/opt/anaconda3/pkgs/pyvo-1.4-pyhd8ed1ab_0
appears to be corrupted. The path 'site-packages/pyvo/dal/sia.py'
has an incorrect size.
  reported size: 32907 bytes
  actual size: 32963 bytes

The error occurred while I was having a slow/inconsistent internet connection, so maybe that's the only problem. If we can't reproduce this error, we're probably fine.

pip freeze showed that pyvo came from conda-forge: pyvo @ file:///home/conda/feedstock_root/build_artifacts/pyvo_1664228312964/work

If we're not comfortable with conda for pyvo, we could change environment.yml to use pip.

tomdonaldson commented 1 year ago

The SafetyError was reproducible for me, but I was able to clear it up by deleting the offending package file and tarball rm -rf /Users/donald/opt/anaconda3/pkgs/pyvo-1.4-pyhd8ed1ab_0. So it does not appear to be a general problem with our setup instructions (i.e., nothing wrong with pyvo at conda-forge).