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

Cannot create environment from a yaml file #194

Closed
Mahdi-Hosseinali opened this issue Jan 4, 2021 · 1 comment
Closed

Cannot create environment from a yaml file #194

Mahdi-Hosseinali opened this issue Jan 4, 2021 · 1 comment

Comments

@Mahdi-Hosseinali
Copy link

I am trying to install some packages from a yaml file but it fails to solve the environment.

The docker is

FROM continuumio/miniconda3
COPY requirements.yml /tmp/
RUN conda env update -f /tmp/requirements.yml

it fails with the following error:

 => ERROR [5/5] RUN conda env update -f /tmp/requirements.yml
------
 > [5/5] RUN conda env update -f /tmp/requirements.yml:
#10 1.176 Collecting package metadata (repodata.json): ...working... done
#10 30.62 Solving environment: ...working... failed
#10 30.67
#10 30.67 ResolvePackageNotFound:
#10 30.67   - icc_rt==2019.0.0=h0cc432a_1
#10 30.67   - sqlite==3.33.0=h2a8f88b_0
#10 30.67   - cffi==1.14.4=py38hd8c33c5_1
#10 30.67   - openssl==1.1.1i=h8ffe710_0
#10 30.67   - mkl-service==2.3.0=py38h196d8e1_0
#10 30.67   - pandas==1.1.5=py38hf11a4ad_0
#10 30.67   - zlib==1.2.11=h62dcd97_4
#10 30.67   - numpy-base==1.19.2=py38ha3acd2a_0
#10 30.67   - statsmodels==0.12.1=py38h2bbff1b_0
#10 30.67   - brotlipy==0.7.0=py38hab1e662_1001
#10 30.67   - pyyaml==5.3.1=py38he774522_1
#10 30.67   - python==3.8.3=he1778fa_2
#10 30.67   - scipy==1.5.2=py38h14eb087_0
#10 30.67   - brotli-python==1.0.9=py38h82bb817_2
#10 30.67   - six==1.15.0=py38haa95532_0
#10 30.67   - setuptools==51.0.0=py38haa95532_2
#10 30.67   - certifi==2020.12.5=py38haa244fe_0
#10 30.67   - cryptography==3.3.1=py38hd8c33c5_0
#10 30.67   - mkl_random==1.1.1=py38h47e9c7a_0
#10 30.67   - vc==14.2=h21ff451_1
#10 30.67   - markupsafe==1.1.1=py38he774522_0
#10 30.67   - ca-certificates==2020.12.5=h5b45459_0
#10 30.67   - numpy==1.19.2=py38hadc3359_0
#10 30.67   - mkl_fft==1.2.0=py38h45dec08_0
#10 30.67   - chardet==4.0.0=py38haa244fe_0
#10 30.67   - win_inet_pton==1.1.0=py38h32f6830_1
#10 30.67   - wincertstore==0.2=py38_0
#10 30.67   - pip==20.3.3=py38haa95532_0
#10 30.67   - yaml==0.2.5=he774522_0
#10 30.67   - vs2015_runtime==14.27.29016=h5e58377_2
#10 30.67   - pysocks==1.7.1=py38h9bdc248_2
#10 30.67
------
executor failed running [/bin/sh -c conda env update -f /tmp/requirements.yml]: exit code: 1

I can make a new environment with the yaml file when I call it in my terminal
conda env create -f requirements.yml

@Mahdi-Hosseinali
Copy link
Author

This is because the yaml files are not cross-platform. Wish it was mentioned in the conda environment management page. For more information check here: datitran/object_detector_app#41

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

1 participant