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

Basic python 3.8 environment.yml fails to build on mybinder.org #1230

Open
sjdv1982 opened this issue Jan 5, 2023 · 5 comments
Open

Basic python 3.8 environment.yml fails to build on mybinder.org #1230

sjdv1982 opened this issue Jan 5, 2023 · 5 comments

Comments

@sjdv1982
Copy link

sjdv1982 commented Jan 5, 2023

Bug description

The repo2docker deployment on mybinder.org fails to build a rather minimal python 3.8 environment. There is no problem when I run jupyter-repo2docker locally.

Expected behaviour

The Docker image should build correctly on mybinder.org.

Actual behaviour

Error message on mybinder.org:

Step 39/50 : RUN TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '
 ---> Running in 61de79e486ad


Looking for: ['python=3.8', 'ipython=7.33']

Encountered problems while solving:
  - package ipython-7.33.0-py310hff52083_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

How to reproduce

To get the bugged behavior on mybinder.org:

  1. Go to https://mybinder.org/v2/gh/sjdv1982/seamless-binder-demo/bug
  2. See error.

To get the correct behavior with a local execution

Run jupyter-repo2docker --ref bug 'https://github.com/sjdv1982/seamless-binder-demo'

environment.yml

name: seamless-binder-demo
channels:
  - conda-forge
dependencies:
  - python=3.8
  - ipython==7.33.*

Your personal set up

  • OS: Linux
  • Docker version:
    Client: Docker Engine - Community
    Version: 20.10.22
    API version: 1.41
    Go version: go1.18.9
    Git commit: 3a2c30b
    Built: Thu Dec 15 22:28:04 2022
    OS/Arch: linux/amd64
    Context: default
    Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.22
API version: 1.41 (minimum version 1.12)
Go version: go1.18.9
Git commit: 42c8b31
Built: Thu Dec 15 22:25:49 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.14
GitCommit: 9ba4b250366a5ddde94bb7c9d1def331423aa323
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

  • repo2docker version : 2022.10.0
@welcome
Copy link

welcome bot commented Jan 5, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@yamaton
Copy link
Contributor

yamaton commented Jan 6, 2023

I'm just a passerby. The Dockerfile in the repository inherits your custom image

FROM rpbs/seamless-binder-demo@sha256:7a48d63d5fd834427676adf9c3fdb95bee906d3a2a646e4a6bb28f44c8462346

so it's not "basic", and the problem looks specific to your setup.

@sjdv1982
Copy link
Author

sjdv1982 commented Jan 6, 2023

I'm just a passerby. The Dockerfile in the repository inherits your custom image

FROM rpbs/seamless-binder-demo@sha256:7a48d63d5fd834427676adf9c3fdb95bee906d3a2a646e4a6bb28f44c8462346

so it's not "basic", and the problem looks specific to your setup.

That is just my workaround, to side-step the bug. The basic setup is in the "bug" branch.

@yamaton
Copy link
Contributor

yamaton commented Jan 6, 2023

Sorry. My mind was fried.

I've also confirmed the error locally.

repo2docker --debug --image-name test-basic .

where the directory contains simple environment.yml.

name: seamless-binder-demo
channels:
  - conda-forge
dependencies:
  - python=3.8
  - ipython==7.33.*

OS: Ubuntu 22.04.1 LTS on Windows 11 WSL2
Docker Desktop 4.15.0
repo2docker: 2022.10.0+89.g49162fc

@manics
Copy link
Member

manics commented Feb 4, 2023

I just tried https://mybinder.org/v2/gh/sjdv1982/seamless-binder-demo/bug today and it's working. My guess is an update in a dependency led to an incompatibility between packages, which was subsequently fixed by another release.

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

3 participants