# MyBinder stopped working for Repo

**URL:** <https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170>\
**Category:** mybinder.org ops\
**Tags:** help-wanted\
**Created:** [August 30, 2023, 8:51am UTC](https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170 "2023-08-30T08:51:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephanie](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/stephanie/32/10867_2.png) [@Stephanie](https://discourse.jupyter.org/u/Stephanie)\
**Post date:** [August 30, 2023, 8:51am UTC](https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170/1 "2023-08-30T08:51:09Z")

</div>

My binder stopped working for the repo [GitHub - StephanieWehner/IntroQCryptoBook: Jupyter Sheets in the Julia Language for the Book Introduction to Quantum Cryptography](https://github.com/StephanieWehner/IntroQCryptoBook)

It’s entirely unclear to me why. I recently fixed some typos in the Jupyter Sheets but they all run fine locally. The error message from MyBinder unfortunately does not help me to understand what I should do. Can anyone help? Many thanks!

Stephanie

# \>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\> ERROR REPORT \<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<

```
Traceback (most recent call last):
  File "/srv/conda/lib/python3.11/site-packages/conda/exception_handler.py", line 16, in __call__
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/conda/lib/python3.11/site-packages/conda_env/cli/main.py", line 49, in do_call
    exit_code = getattr(module, func_name)(args, parser)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/conda/lib/python3.11/site-packages/conda/notices/core.py", line 123, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/conda/lib/python3.11/site-packages/conda_env/cli/main_update.py", line 139, in execute
    result[installer_type] = installer.install(prefix, specs, args, env)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/conda/lib/python3.11/site-packages/mamba/mamba_env.py", line 153, in mamba_install
    transaction.fetch_extract_packages()
RuntimeError: Could not set URL (code: 14 - url = /wheel-0.40.0-pyhd8ed1ab_0.conda)

```

`$ /srv/conda/bin/mamba update -p /srv/conda/envs/notebook --file environment.yml`

environment variables:  
CIO\_TEST=  
CONDA\_AUTO\_UPDATE\_CONDA=false  
CONDA\_DEFAULT\_ENV=/srv/conda/envs/notebook  
CONDA\_DIR=/srv/conda  
CONDA\_PLATFORM=linux-64  
CONDA\_ROOT=/srv/conda  
CURL\_CA\_BUNDLE=  
JULIA\_DEPOT\_PATH=/srv/julia/pkg  
JULIA\_PATH=/srv/julia  
LD\_PRELOAD=  
PATH=/home/jovyan/.local/bin:/home/jovyan/.local/bin:/srv/conda/envs/notebo  
ok/bin:/srv/conda/bin:/srv/npm/bin:/srv/julia/bin:/usr/local/sbin:/usr  
/local/bin:/usr/sbin:/usr/bin:/sbin:/bin  
REQUESTS\_CA\_BUNDLE=  
SSL\_CERT\_FILE=

```
 active environment : None
   user config file : /home/jovyan/.condarc

```

populated config files : /srv/conda/.condarc  
conda version : 23.5.2  
conda-build version : not installed  
python version : 3.11.5.final.0  
virtual packages : \_\_archspec=1=x86\_64  
\_\_glibc=2.27=0  
\_\_linux=5.15.0=0  
\_\_unix=0=0  
base environment : /srv/conda (writable)  
conda av data dir : /srv/conda/etc/conda  
conda av metadata url : None

An unexpected error has occurred. Conda has prepared the above report.

---

<div class="post-metadata">

**Author:** ![bollwyvl](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/bollwyvl/32/904_2.png) [@bollwyvl](https://discourse.jupyter.org/u/bollwyvl)\
**Post date:** [August 30, 2023, 1:16pm UTC](https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170/2 "2023-08-30T13:16:56Z")

</div>

Without seeing the `environment.yml`, I suspect [`environment.yml` with only `python \>=x,\<y` fails · Issue #1301 · jupyterhub/repo2docker · GitHub](https://github.com/jupyterhub/repo2docker/issues/1301)

The nickle fix:

- don’t pin `python` at all
  - it’ll get whatever the default is
    - I think `python 3.10` today

- pin to python with `- python ==3.11.*`

---

<div class="post-metadata">

**Author:** ![ollyhensby](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ollyhensby/32/11081_2.png) [@ollyhensby](https://discourse.jupyter.org/u/ollyhensby)\
**Post date:** [September 20, 2023, 9:27am UTC](https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170/3 "2023-09-20T09:27:39Z")

</div>

Hello, I am also getting this error and I’ve unpinned all of my dependencies so I don’t think it is related to how python is pinned.

```auto
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/srv/conda/lib/python3.11/site-packages/conda/exception_handler.py", line 16, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/srv/conda/lib/python3.11/site-packages/conda_env/cli/main.py", line 49, in do_call
        exit_code = getattr(module, func_name)(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/srv/conda/lib/python3.11/site-packages/conda/notices/core.py", line 123, in wrapper
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/srv/conda/lib/python3.11/site-packages/conda_env/cli/main_update.py", line 139, in execute
        result[installer_type] = installer.install(prefix, specs, args, env)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/srv/conda/lib/python3.11/site-packages/mamba/mamba_env.py", line 153, in mamba_install
        transaction.fetch_extract_packages()
    RuntimeError: Could not set URL (code: 14 - url = /wheel-0.40.0-pyhd8ed1ab_0.conda)

`$ /srv/conda/bin/mamba update -p /srv/conda/envs/notebook --file environment.yml`

  environment variables:
                 CIO_TEST=<not set>
  CONDA_AUTO_UPDATE_CONDA=false
        CONDA_DEFAULT_ENV=/srv/conda/envs/notebook
                CONDA_DIR=/srv/conda
           CONDA_PLATFORM=linux-64
               CONDA_ROOT=/srv/conda
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/home/jovyan/.local/bin:/home/jovyan/.local/bin:/srv/conda/envs/notebo
                          ok/bin:/srv/conda/bin:/srv/npm/bin:/usr/local/sbin:/usr/local/bin:/usr
                          /sbin:/usr/bin:/sbin:/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : None
       user config file : /home/jovyan/.condarc
 populated config files : /srv/conda/.condarc
          conda version : 23.5.2
    conda-build version : not installed
         python version : 3.11.5.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.27=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /srv/conda (writable)
      conda av data dir : /srv/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /srv/conda/pkgs
                          /home/jovyan/.conda/pkgs
       envs directories : /srv/conda/envs
                          /home/jovyan/.conda/envs
               platform : linux-64
             user-agent : conda/23.5.2 requests/2.31.0 CPython/3.11.5 Linux/5.15.0-72-generic ubuntu/18.04.6 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

time: 26.258

```

Here is a link to the repository I am trying to launch using binder:

> **[GitHub - ollyhensby/voila-pdf-view-demo: View a dummy PDF file in Voila.](https://github.com/ollyhensby/voila-pdf-view-demo)**
>
> View a dummy PDF file in Voila. . Contribute to ollyhensby/voila-pdf-view-demo development by creating an account on GitHub.

My environment file looks like this:

```auto
name: voila-view
# channels priority
# see https://bioconda.github.io/
# conda-forge has highest prioriy
# ---------------------------------
# dev env currently contains
# requirements for both UI and API
channels:
  - defaults
  - conda-forge
dependencies:
  - python
  - jupyterlab
  - voila

```

Any help with this is much appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![ollyhensby](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ollyhensby/32/11081_2.png) [@ollyhensby](https://discourse.jupyter.org/u/ollyhensby)\
**Post date:** [September 20, 2023, 10:02am UTC](https://discourse.jupyter.org/t/mybinder-stopped-working-for-repo/21170/4 "2023-09-20T10:02:36Z")

</div>

It looks there is an issue with using the newest python version 3.11.

After setting `python=3.10` in my `environment.yml`, the environment was installed successfully.
