andompesta / ComE

Implementation of ComE algorithm
58 stars 33 forks source link

env.yml requires the "free" conda channel #6

Open abegehr opened 4 years ago

abegehr commented 4 years ago

"As of conda 4.7, the free channel was removed from conda’s default channels." https://docs.anaconda.com/anaconda/user-guide/tasks/using-repositories/#free-channel

If you're using conda >=4.7, you need to add the free channel to /env.yml for creating the BICE conda environment: conda env create -f env.yml.

Otherwise, you will get the following error log and BICE env will not have been created:

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

ResolvePackageNotFound: 
  - setuptools==27.2.0=py36_0
  - icu==54.1=0
  - pip==9.0.1=py36_1
  - pygpu==0.6.4=py36_0
  - pyqt==5.6.0=py36_2
  - pyparsing==2.1.4=py36_0
  - libffi==3.2.1=1
  - pytz==2017.2=py36_0
  - gettext==0.19.8=1
  - pyyaml==3.12=py36_0
  - h5py==2.7.0=np112py36_0
  - zlib==1.2.8=3
  - markupsafe==0.23=py36_2
  - werkzeug==0.12.2=py36_0
  - six==1.10.0=py36_0
  - glib==2.50.2=1
  - mako==1.0.6=py36_0
  - freetype==2.5.5=2
  - cycler==0.10.0=py36_0
  - libxml2==2.9.4=0
  - wheel==0.29.0=py36_0
  - networkx==1.11=py36_0
  - fontconfig==2.12.1=3
  - libgpuarray==0.6.4=0
  - scikit-learn==0.18.1=np112py36_1
  - libprotobuf==3.2.0=0
  - readline==6.2=2
  - sqlite==3.13.0=0
  - expat==2.1.0=0
  - mongo-driver==0.7.1=0
  - cython==0.26=py36_0
  - libpng==1.6.27=0
  - nose==1.3.7=py36_1
  - pandas==0.20.2=np112py36_0
  - tk==8.5.18=0
  - xz==5.2.2=1
  - qt==5.6.2=2
  - openssl==1.0.2l=0
  - pcre==8.39=1
  - numpy==1.12.1=py36_0
  - scipy==0.19.1=np112py36_0
  - decorator==4.1.2=py36_0
  - matplotlib==2.0.2=np112py36_0
  - psutil==5.2.2=py36_0
  - boost==1.61.0=py36_0
  - libiconv==1.14=0
  - yaml==0.1.6=0
  - mkl-service==1.1.2=py36_3
  - hdf5==1.8.17=1
  - libgcc==4.8.5=1
  - jpeg==9b=0
  - python==3.6.1=2
  - python-dateutil==2.6.0=py36_0
  - sip==4.18=py36_0
  - libpq==9.5.4=0
  - unixodbc==2.3.4=0
  - mkl==2017.0.1=0
  - libgfortran==3.0.0=1

To solve this for conda >=4.7, simply add - free to the channels section of /env.yml:

channels:
- defaults
- free

Then create the conda environment by running conda env create -f env.yml.

I'm working on a fork of ComE using BGMM and made this change to my /env.yml here: https://github.com/abegehr/ComE/blob/master/env.yml#L4