mbeyeler / opencv-machine-learning

M. Beyeler (2017). Machine Learning for OpenCV: Intelligent image processing with Python. Packt Publishing Ltd., ISBN 978-178398028-4.
MIT License
802 stars 461 forks source link

mybinder doesn’t start up #10

Open elizabethexpialadocious opened 1 year ago

elizabethexpialadocious commented 1 year ago

when launching the mybinder website for your code, mybinder fails to create a process giving the following error: ` Step 36/52 : RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR} ---> Using cache ---> 1012023c6ff0 Step 37/52 : ENV PATH=${HOME}/.local/bin:${REPO_DIR}/.local/bin:${PATH} ---> Using cache ---> 7e259ec8b997 Step 38/52 : ENV CONDA_DEFAULT_ENV=${KERNEL_PYTHON_PREFIX} ---> Using cache ---> c2d4573adb93 Step 39/52 : COPY --chown=1000:1000 src/environment.yml ${REPO_DIR}/environment.yml ---> Using cache ---> 0100c36cfc80 Step 40/52 : USER ${NB_USER} ---> Using cache ---> 573b8dcd3be0 Step 41/52 : RUN TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${KERNEL_PYTHON_PREFIX} --file "environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${KERNEL_PYTHON_PREFIX} ' ---> Running in 56cadc022b99

Looking for: ['python==3.6', 'numpy==1.12', 'scipy==0.19.1', 'scikit-learn==0.18.1', 'matplotlib', 'opencv==3.1', 'jupyter==1.0', 'notebook==5.4.1', 'pandas==0.22', 'theano', 'keras==2.1.5', 'mkl-service==1.1.2']

Could not solve for environment specs Encountered problems while solving:

The environment can't be solved, aborting the operation

time: 33.055 Removing intermediate container 56cadc022b99 The command '/bin/sh -c TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${KERNEL_PYTHON_PREFIX} --file "environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${KERNEL_PYTHON_PREFIX} '' returned a non-zero code: 1 `

mbeyeler commented 1 year ago

I'm not surprised - it's been nearly 6 years since the release of this code. Note that there's also a second edition of the book now with updated code: https://www.packtpub.com/product/machine-learning-for-opencv-4-second-edition/9781789536300. I know this is not a very satisfying answer, but you might have better luck by setting up a conda environment on your local machine.