Climate-Data-Science / Climate-Similarity-Metrics

Which similarity metrics are the most helpful to understand climate
0 stars 2 forks source link

Conda Environment can not be reproduced -> ResolvePackageNotFound #13

Closed ucyo closed 4 years ago

ucyo commented 4 years ago

Hi there,

I can not reproduce the environment using the method described in README.md

conda env create -f environment.yaml

Error

I get the error message

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:
  - mistune==0.8.4=py36he774522_0
  - m2w64-gcc-libs-core==5.3.0=7
  - ....

Tried and failed

I tried

Probable cause

This is probably caused by conda since another package has the same issue [#Issue 41 of ODA]

Environment

pierretoussing commented 4 years ago

@ucyo This issue occurs when the target platform is different from the source platform. So I think the reason is you use Linux and the environment was exported on Windows. A solution provided here is to export the environment using the --no-builds option. I will export it again using this option and wait for your feedback if this solves the problem.

ucyo commented 4 years ago

Thank you for the update. The new environment.yml file works better now. The number of unresolved packages is less now. The current output with commit c70932b is:

# conda env create -f environment.yaml                                              
Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:
  - wincertstore=0.2
  - msys2-conda-epoch=20160418
  - pywin32=227
  - m2w64-gmp=6.1.0
  - m2w64-gcc-libgfortran=5.3.0
  - m2w64-gcc-libs-core=5.3.0
  - pywinpty=0.5.7
  - vc=14.1
  - m2w64-libwinpthread-git=5.0.0.4634.697f757
  - m2w64-gcc-libs=5.3.0
  - vs2015_runtime=14.16.27012
  - winpty=0.4.3
  - icc_rt=2019.0.0

Can we update/remove these?

pierretoussing commented 4 years ago

I created the environment.yaml manually and was able to reduce the number of requirements from 106 to 9. This reduces the potential for conflicts and is recommended by conda itself in order to reach full platform independency. On my second system, everything now works fine. Please let me know if there are still conflicts or if some packages needed have been left out.

pierretoussing commented 4 years ago

Please notice that running the conda env create -f environment.yaml command in the anaconda prompt might not import the pip requirements. I read that running the command in the cmd.exe would solve this problem.

ucyo commented 4 years ago

Done. Now it worked. Thank you for fixing this. The command conda env create -f environment.yaml was enough to install everything incl. pip requirements.