roserustowicz / crop-type-mapping

Crop type mapping of small holder farms in Ghana, and South Sudan
81 stars 30 forks source link

ResolvePackageNotFound #120

Closed marcioluish closed 3 years ago

marcioluish commented 3 years ago

Hi,

I'm trying to dockerize this image to deploy it in an HPC computer.

However, I'm having problems during conda env creation when running conda env create -f environment.yaml

My Dockerfile is as follows:

FROM continuumio/anaconda3:5.2.0
WORKDIR /app
COPY . .
RUN conda env create -f environment.yaml

The image above uses Python 3.6.5. And the error:

RUN conda env create -f environment.yaml sha256:0354312e80b9e4ab71007c7df8a3257d22b2fd5a8803183eda33a1be5929f41b Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... failed

ResolvePackageNotFound:

  • jpeg==9c=h470a237_1
  • qt==5.6.2=hf70d934_9
  • libuuid==2.32.1=h470a237_2
  • postgresql==10.5=h66035e0_0
  • nbconvert==5.3.1=py_1
  • matplotlib-base==3.0.0=py36hc039c98_2
  • ipykernel==5.1.0=pyh24bf2e0_0
  • rasterio==1.0.8=py36h1b5fcde_0
  • libssh2==1.8.0=h5b517e9_2
  • libgdal==2.2.4=hbd6f514_9
  • proj4==4.9.3=h470a237_8
  • geos==3.6.2=hfc679d8_3

ERROR: executor failed running [/bin/sh -c conda env create -f environment.yaml]: exit code: 1

RUN conda env create -f environment.yaml:

executor failed running [/bin/sh -c conda env create -f environment.yaml]: exit code: 1 Service 'crop_type' failed to build : Build failed

Any thoughts on what could possibly be wrong?

marcioluish commented 3 years ago

Notes:

Already tried moving this libraries to pip: section on yaml file

marcioluish commented 3 years ago

Hi, just updating:

I removed all dependencies version specs from environment.yaml and it worked!

roserustowicz commented 3 years ago

Hi @marcioluish , glad you were able to figure this out - thank you for the updates!