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

Fix Jupyter notebook #98

Closed
smesnage opened this issue Jun 11, 2022 · 5 comments · Fixed by #102
Closed

Fix Jupyter notebook #98

smesnage opened this issue Jun 11, 2022 · 5 comments · Fixed by #102
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@smesnage
Copy link
Collaborator

Published link (see below) no longer works. It says something about the package that it tries to install not being the right one.
Can't copy/paste the error message, all I get at the end is 500 : Internal Server Error

https://mybinder.org/v2/gh/Mesnage-Org/PGFinder/master?urlpath=tree/pgfinder_interactive.ipynb

@smesnage smesnage added bug Something isn't working help wanted Extra attention is needed labels Jun 11, 2022
@bobturneruk
Copy link
Collaborator

I think this may be intermittent and on myBinder. @ns-rse please will you take a look?

@ns-rse
Copy link
Collaborator

ns-rse commented Jun 13, 2022

Just started investigating, the log from launching is below, it builds ok and says its launching so I would hazard a guess that the problem is with Binder, particularly given Git indicates the pgfdiner_interactive.ipynb that is being launched hasn't been modified in four months!

Waiting for build to start...
Picked Git content provider.
Cloning into '/tmp/repo2dockerdnddz4su'...
HEAD is now at 5e00505 Merge pull request #96 from Mesnage-Org/ns-rse/89a-entry-point
Building conda environment for python=3.7Using PythonBuildPack builder
Building conda environment for python=3.7Building conda environment for python=3.7Step 1/54 : FROM buildpack-deps:bionic
 ---> 1be28cfd0abd
Step 2/54 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> d746bb9ff3b3
Step 3/54 : RUN apt-get -qq update &&     apt-get -qq install --yes --no-install-recommends locales > /dev/null &&     apt-get -qq purge &&     apt-get -qq clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 4f7769c5cc5d
Step 4/54 : RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen &&     locale-gen
 ---> Using cache
 ---> a423e39cc036
Step 5/54 : ENV LC_ALL en_US.UTF-8
 ---> Using cache
 ---> f100f2d6061f
Step 6/54 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> 6f4aa748a5d3
Step 7/54 : ENV LANGUAGE en_US.UTF-8
 ---> Using cache
 ---> 40658d898ea2
Step 8/54 : ENV SHELL /bin/bash
 ---> Using cache
 ---> ffd25806dcc1
Step 9/54 : ARG NB_USER
 ---> Using cache
 ---> ec2b5eb9875a
Step 10/54 : ARG NB_UID
 ---> Using cache
 ---> fef7a6784b1f
Step 11/54 : ENV USER ${NB_USER}
 ---> Using cache
 ---> 1baf69523542
Step 12/54 : ENV HOME /home/${NB_USER}
 ---> Using cache
 ---> 2b53620cdb21
Step 13/54 : RUN groupadd         --gid ${NB_UID}         ${NB_USER} &&     useradd         --comment "Default user"         --create-home         --gid ${NB_UID}         --no-log-init         --shell /bin/bash         --uid ${NB_UID}         ${NB_USER}
 ---> Using cache
 ---> 5a2c4304bf6b
Step 14/54 : RUN apt-get -qq update &&     apt-get -qq install --yes --no-install-recommends        less        unzip        > /dev/null &&     apt-get -qq purge &&     apt-get -qq clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> f8ecbf5b3f91
Step 15/54 : EXPOSE 8888
 ---> Using cache
 ---> aed825d3b207
Step 16/54 : ENV APP_BASE /srv
 ---> Using cache
 ---> 6ddd1035eb9a
Step 17/54 : ENV CONDA_DIR ${APP_BASE}/conda
 ---> Using cache
 ---> a2fd9c1cce63
Step 18/54 : ENV NB_PYTHON_PREFIX ${CONDA_DIR}/envs/notebook
 ---> Using cache
 ---> 7d899ed851d2
Step 19/54 : ENV NPM_DIR ${APP_BASE}/npm
 ---> Using cache
 ---> 629a58166384
Step 20/54 : ENV NPM_CONFIG_GLOBALCONFIG ${NPM_DIR}/npmrc
 ---> Using cache
 ---> 436ca9dd5db7
Step 21/54 : ENV NB_ENVIRONMENT_FILE /tmp/env/environment.lock
 ---> Using cache
 ---> e7ff87323d53
Step 22/54 : ENV MAMBA_ROOT_PREFIX ${CONDA_DIR}
 ---> Using cache
 ---> 41c3f976be62
Step 23/54 : ENV MAMBA_EXE ${CONDA_DIR}/bin/mamba
 ---> Using cache
 ---> 49c4eba04572
Step 24/54 : ENV KERNEL_PYTHON_PREFIX ${NB_PYTHON_PREFIX}
 ---> Using cache
 ---> 89ace001a78f
Step 25/54 : ENV PATH ${NB_PYTHON_PREFIX}/bin:${CONDA_DIR}/bin:${NPM_DIR}/bin:${PATH}
 ---> Using cache
 ---> f7f73da1958e
Step 26/54 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e9-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2factivate-2dconda-2esh-e9bee0 /etc/profile.d/activate-conda.sh
 ---> Using cache
 ---> c9b902299edb
Step 27/54 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e9-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2fenvironment-2epy-2d3-2e7-2elock-d12193 /tmp/env/environment.lock
 ---> Using cache
 ---> 80d5631831d5
Step 28/54 : COPY --chown=1000:1000 build_script_files/-2fusr-2flib-2fpython3-2e9-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2finstall-2dbase-2denv-2ebash-41d468 /tmp/install-base-env.bash
 ---> Using cache
 ---> 920889f4c5c1
Step 29/54 : RUN TIMEFORMAT='time: %3R' bash -c 'time /tmp/install-base-env.bash' && rm -rf /tmp/install-base-env.bash /tmp/env
 ---> Using cache
 ---> 5b907e7ebf8c
Step 30/54 : RUN mkdir -p ${NPM_DIR} && chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
 ---> Using cache
 ---> ac67c64c95b8
Step 31/54 : USER root
 ---> Using cache
 ---> 3d4e920d9e0e
Step 32/54 : ARG REPO_DIR=${HOME}
 ---> Using cache
 ---> 03195e53eee3
Step 33/54 : ENV REPO_DIR ${REPO_DIR}
 ---> Using cache
 ---> b9afce32c1e3
Step 34/54 : WORKDIR ${REPO_DIR}
 ---> Using cache
 ---> 5ebc3a99b226
Step 35/54 : RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR}
 ---> Using cache
 ---> 9642f772feb4
Step 36/54 : ENV PATH ${HOME}/.local/bin:${REPO_DIR}/.local/bin:${PATH}
 ---> Using cache
 ---> a277ab8eb4e2
Step 37/54 : ENV CONDA_DEFAULT_ENV ${KERNEL_PYTHON_PREFIX}
 ---> Using cache
 ---> 51c5832921b0
Step 38/54 : COPY --chown=1000:1000 src/requirements.txt ${REPO_DIR}/requirements.txt
 ---> 727761ee28c2
Step 39/54 : USER root
 ---> Running in f5b63f431344
Removing intermediate container f5b63f431344
 ---> 1bb2d8437390
Step 40/54 : COPY --chown=1000:1000 src/ ${REPO_DIR}
 ---> 7cd669e14729
Step 41/54 : USER ${NB_USER}
 ---> Running in 13ac3c638da7
Removing intermediate container 13ac3c638da7
 ---> 0fb3393a5029
Step 42/54 : RUN ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir -r "requirements.txt"
 ---> Running in e9736f5370ee
Collecting git+https://github.com/Mesnage-Org/PGFinder.git (from -r requirements.txt (line 1))
  Cloning https://github.com/Mesnage-Org/PGFinder.git to /tmp/pip-req-build-5f76jz8a
�[91m  Running command git clone --filter=blob:none --quiet https://github.com/Mesnage-Org/PGFinder.git /tmp/pip-req-build-5f76jz8a
�[0m  Resolved https://github.com/Mesnage-Org/PGFinder.git to commit 5e005052c34e00de27ce16c965ea7d33f76a0399
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting hide_code>=0.5.2
  Downloading hide_code-0.6.0.tar.gz (62 kB)
     ���������������������������������������� 62.9/62.9 KB 4.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting ipysheet>=0.4.4
  Downloading ipysheet-0.5.0-py2.py3-none-any.whl (3.8 MB)
     ���������������������������������������� 3.8/3.8 MB 67.6 MB/s eta 0:00:00
Requirement already satisfied: ipywidgets>=7.6.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (7.7.0)
Requirement already satisfied: jupyterlab>=3.0.15 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (3.3.3)
Collecting jupyter_contrib_nbextensions
  Downloading jupyter_contrib_nbextensions-0.5.1-py2.py3-none-any.whl (20.9 MB)
     ��������������������������������������� 20.9/20.9 MB 165.8 MB/s eta 0:00:00
Collecting numpy
  Downloading numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
     ��������������������������������������� 15.7/15.7 MB 168.2 MB/s eta 0:00:00
Collecting pandas
  Downloading pandas-1.3.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB)
     ��������������������������������������� 11.3/11.3 MB 168.3 MB/s eta 0:00:00
Collecting pyyaml
  Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
     ������������������������������������� 596.3/596.3 KB 151.1 MB/s eta 0:00:00
Requirement already satisfied: ruamel.yaml in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2->-r requirements.txt (line 1)) (0.17.21)
Collecting pysqlite3
  Downloading pysqlite3-0.4.7.tar.gz (40 kB)
     ���������������������������������������� 40.1/40.1 KB 87.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting matplotlib
  Downloading matplotlib-3.5.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)
     ��������������������������������������� 11.2/11.2 MB 152.0 MB/s eta 0:00:00
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting pdfkit
  Downloading pdfkit-1.0.0-py3-none-any.whl (12 kB)
Collecting nbconvert<6
  Downloading nbconvert-5.6.1-py2.py3-none-any.whl (455 kB)
     ������������������������������������� 455.1/455.1 KB 122.4 MB/s eta 0:00:00
Requirement already satisfied: notebook>=6.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from hide_code>=0.5.2->-r requirements.txt (line 2)) (6.4.10)
Collecting traitlets<5.0
  Downloading traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
     ���������������������������������������� 75.7/75.7 KB 96.5 MB/s eta 0:00:00
Requirement already satisfied: jupyter-server<2,>=1.6 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipysheet>=0.4.4->-r requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: ipython-genutils~=0.2.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.2.0)
Requirement already satisfied: ipython>=4.0.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (7.32.0)
Requirement already satisfied: widgetsnbextension~=3.6.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (3.6.0)
Requirement already satisfied: jupyterlab-widgets>=1.0.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: ipykernel>=4.5.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (6.12.1)
Requirement already satisfied: nbformat>=4.2.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipywidgets>=7.6.3->-r requirements.txt (line 4)) (5.3.0)
Requirement already satisfied: packaging in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (21.3)
Requirement already satisfied: tornado>=6.1.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (6.1)
Requirement already satisfied: jinja2>=2.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (3.1.1)
Requirement already satisfied: nbclassic~=0.2 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (0.3.7)
Requirement already satisfied: jupyter-core in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (4.9.2)
Requirement already satisfied: jupyterlab-server~=2.10 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2.12.0)
Collecting jupyter-nbextensions-configurator>=0.4.0
  Downloading jupyter_nbextensions_configurator-0.4.1.tar.gz (479 kB)
     ������������������������������������� 479.8/479.8 KB 106.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting jupyter-contrib-core>=0.3.3
  Downloading jupyter_contrib_core-0.3.3-py2.py3-none-any.whl (18 kB)
Collecting jupyter-latex-envs>=1.3.8
  Downloading jupyter_latex_envs-1.4.6.tar.gz (861 kB)
     ������������������������������������� 861.7/861.7 KB 178.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting lxml
  Downloading lxml-4.9.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.4 MB)
     ���������������������������������������� 6.4/6.4 MB 166.2 MB/s eta 0:00:00
Collecting jupyter-highlight-selected-word>=0.1.1
  Downloading jupyter_highlight_selected_word-0.2.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: debugpy>=1.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (1.5.1)
Collecting ipykernel>=4.5.1
  Downloading ipykernel-6.13.1-py3-none-any.whl (133 kB)
     ������������������������������������� 133.2/133.2 KB 146.5 MB/s eta 0:00:00
Requirement already satisfied: matplotlib-inline>=0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.1.3)
  Downloading ipykernel-6.13.0-py3-none-any.whl (131 kB)
     ������������������������������������� 131.8/131.8 KB 139.6 MB/s eta 0:00:00
  Downloading ipykernel-6.12.0-py3-none-any.whl (130 kB)
     ������������������������������������� 130.9/130.9 KB 139.5 MB/s eta 0:00:00
  Downloading ipykernel-6.11.0-py3-none-any.whl (130 kB)
     ������������������������������������� 130.8/130.8 KB 107.7 MB/s eta 0:00:00
  Downloading ipykernel-6.10.0-py3-none-any.whl (130 kB)
     ������������������������������������� 130.2/130.2 KB 141.6 MB/s eta 0:00:00
Requirement already satisfied: psutil in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (5.9.0)
  Downloading ipykernel-6.9.2-py3-none-any.whl (130 kB)
     ������������������������������������� 130.2/130.2 KB 127.1 MB/s eta 0:00:00
  Downloading ipykernel-6.9.1-py3-none-any.whl (128 kB)
     ������������������������������������� 128.9/128.9 KB 141.7 MB/s eta 0:00:00
  Downloading ipykernel-6.9.0-py3-none-any.whl (128 kB)
     �������������������������������������� 128.7/128.7 KB 99.4 MB/s eta 0:00:00
  Downloading ipykernel-6.8.0-py3-none-any.whl (128 kB)
     ������������������������������������� 128.3/128.3 KB 112.6 MB/s eta 0:00:00
  Downloading ipykernel-6.7.0-py3-none-any.whl (127 kB)
     ������������������������������������� 127.7/127.7 KB 113.5 MB/s eta 0:00:00
  Downloading ipykernel-6.6.1-py3-none-any.whl (126 kB)
     �������������������������������������� 126.3/126.3 KB 99.2 MB/s eta 0:00:00
Requirement already satisfied: importlib-metadata<5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (4.11.3)
  Downloading ipykernel-6.6.0-py3-none-any.whl (126 kB)
     ������������������������������������� 126.3/126.3 KB 108.4 MB/s eta 0:00:00
  Downloading ipykernel-6.5.1-py3-none-any.whl (125 kB)
     ������������������������������������� 125.9/125.9 KB 120.4 MB/s eta 0:00:00
  Downloading ipykernel-6.5.0-py3-none-any.whl (125 kB)
     �������������������������������������� 125.9/125.9 KB 77.0 MB/s eta 0:00:00
  Downloading ipykernel-6.4.2-py3-none-any.whl (124 kB)
     �������������������������������������� 124.1/124.1 KB 98.9 MB/s eta 0:00:00
Collecting argcomplete>=1.12.3
  Downloading argcomplete-2.0.0-py2.py3-none-any.whl (37 kB)
Requirement already satisfied: jupyter-client<8.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (7.2.2)
Requirement already satisfied: jedi>=0.16 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.18.1)
Requirement already satisfied: setuptools>=18.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (62.0.0)
Requirement already satisfied: pexpect>4.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (4.8.0)
Requirement already satisfied: decorator in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (5.1.1)
Requirement already satisfied: pygments in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (2.11.2)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (3.0.29)
Requirement already satisfied: backcall in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.2.0)
Requirement already satisfied: pickleshare in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.7.5)
Requirement already satisfied: MarkupSafe>=2.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jinja2>=2.1->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2.1.1)
Requirement already satisfied: prometheus-client in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (0.14.0)
Collecting jupyter-server<2,>=1.6
  Downloading jupyter_server-1.17.1-py3-none-any.whl (344 kB)
     ������������������������������������� 344.5/344.5 KB 134.8 MB/s eta 0:00:00
  Downloading jupyter_server-1.17.0-py3-none-any.whl (342 kB)
     ������������������������������������� 342.8/342.8 KB 145.6 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.6-py3-none-any.whl (341 kB)
     ������������������������������������� 341.5/341.5 KB 157.3 MB/s eta 0:00:00
Requirement already satisfied: websocket-client in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (1.3.2)
Requirement already satisfied: pyzmq>=17 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (22.3.0)
Requirement already satisfied: argon2-cffi in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (21.3.0)
Requirement already satisfied: terminado>=0.8.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (0.13.3)
Requirement already satisfied: anyio>=3.1.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (3.5.0)
Requirement already satisfied: Send2Trash in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (1.8.0)
  Downloading jupyter_server-1.15.5-py3-none-any.whl (341 kB)
     ������������������������������������� 341.5/341.5 KB 167.7 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.4-py3-none-any.whl (341 kB)
     ������������������������������������� 341.5/341.5 KB 136.2 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.3-py3-none-any.whl (341 kB)
     ������������������������������������� 341.4/341.4 KB 140.6 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.2-py3-none-any.whl (340 kB)
     ������������������������������������� 340.3/340.3 KB 134.2 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.1-py3-none-any.whl (339 kB)
     ������������������������������������� 339.9/339.9 KB 168.7 MB/s eta 0:00:00
  Downloading jupyter_server-1.15.0-py3-none-any.whl (339 kB)
     ������������������������������������� 339.9/339.9 KB 163.8 MB/s eta 0:00:00
  Downloading jupyter_server-1.13.5-py3-none-any.whl (397 kB)
     ������������������������������������� 397.5/397.5 KB 117.5 MB/s eta 0:00:00
  Downloading jupyter_server-1.13.4-py3-none-any.whl (395 kB)
     ������������������������������������� 395.4/395.4 KB 174.7 MB/s eta 0:00:00
  Downloading jupyter_server-1.13.3-py3-none-any.whl (395 kB)
     ������������������������������������� 395.4/395.4 KB 167.5 MB/s eta 0:00:00
  Downloading jupyter_server-1.13.2-py3-none-any.whl (395 kB)
     ������������������������������������� 395.3/395.3 KB 132.9 MB/s eta 0:00:00
Requirement already satisfied: babel in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2.9.1)
Requirement already satisfied: requests in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2.27.1)
Requirement already satisfied: jsonschema>=3.0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (4.4.0)
Requirement already satisfied: json5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (0.9.5)
Requirement already satisfied: entrypoints>=0.2.2 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (0.4)
Requirement already satisfied: notebook-shim>=0.1.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbclassic~=0.2->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (0.1.0)
Requirement already satisfied: mistune<2,>=0.8.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (0.8.4)
Requirement already satisfied: bleach in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (5.0.0)
Requirement already satisfied: pandocfilters>=1.4.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (1.5.0)
Requirement already satisfied: defusedxml in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (0.7.1)
Requirement already satisfied: testpath in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (0.6.0)
Requirement already satisfied: fastjsonschema in /srv/conda/envs/notebook/lib/python3.7/site-packages (from nbformat>=4.2.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (2.15.3)
Requirement already satisfied: nest-asyncio>=1.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from notebook>=6.0->hide_code>=0.5.2->-r requirements.txt (line 2)) (1.5.5)
Requirement already satisfied: six in /srv/conda/envs/notebook/lib/python3.7/site-packages (from traitlets<5.0->hide_code>=0.5.2->-r requirements.txt (line 2)) (1.16.0)
Collecting qtconsole
  Downloading qtconsole-5.3.1-py3-none-any.whl (120 kB)
     ������������������������������������� 120.8/120.8 KB 119.1 MB/s eta 0:00:00
Collecting jupyter-console
  Downloading jupyter_console-6.4.3-py3-none-any.whl (22 kB)
Collecting fonttools>=4.22.0
  Downloading fonttools-4.33.3-py3-none-any.whl (930 kB)
     ������������������������������������� 930.9/930.9 KB 154.3 MB/s eta 0:00:00
Requirement already satisfied: python-dateutil>=2.7 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2->-r requirements.txt (line 1)) (2.8.2)
Collecting pillow>=6.2.0
  Downloading Pillow-9.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
     ���������������������������������������� 3.1/3.1 MB 172.6 MB/s eta 0:00:00
Requirement already satisfied: pyparsing>=2.2.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2->-r requirements.txt (line 1)) (3.0.7)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
     ���������������������������������������� 1.1/1.1 MB 134.3 MB/s eta 0:00:00
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: pytz>=2017.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas->pgfinder==0.0.2->-r requirements.txt (line 1)) (2022.1)
Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ruamel.yaml->pgfinder==0.0.2->-r requirements.txt (line 1)) (0.2.6)
Requirement already satisfied: idna>=2.8 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from anyio>=3.1.0->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (3.3)
Requirement already satisfied: typing-extensions in /srv/conda/envs/notebook/lib/python3.7/site-packages (from anyio>=3.1.0->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (4.1.1)
Requirement already satisfied: sniffio>=1.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from anyio>=3.1.0->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (1.2.0)
Requirement already satisfied: zipp>=0.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from importlib-metadata<5->ipykernel>=4.5.1->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (3.8.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jedi>=0.16->ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.8.3)
Requirement already satisfied: attrs>=17.4.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (21.4.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (0.18.1)
Requirement already satisfied: importlib-resources>=1.4.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (5.6.0)
Requirement already satisfied: ptyprocess>=0.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pexpect>4.3->ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.7.0)
Requirement already satisfied: wcwidth in /srv/conda/envs/notebook/lib/python3.7/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=4.0.0->ipywidgets>=7.6.3->-r requirements.txt (line 4)) (0.2.5)
Requirement already satisfied: argon2-cffi-bindings in /srv/conda/envs/notebook/lib/python3.7/site-packages (from argon2-cffi->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (21.2.0)
Requirement already satisfied: webencodings in /srv/conda/envs/notebook/lib/python3.7/site-packages (from bleach->nbconvert<6->hide_code>=0.5.2->-r requirements.txt (line 2)) (0.5.1)
Collecting qtpy>=2.0.1
  Downloading QtPy-2.1.0-py3-none-any.whl (68 kB)
     ���������������������������������������� 68.2/68.2 KB 92.9 MB/s eta 0:00:00
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (1.26.9)
Requirement already satisfied: certifi>=2017.4.17 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2021.10.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests->jupyterlab-server~=2.10->jupyterlab>=3.0.15->-r requirements.txt (line 5)) (2.0.12)
Requirement already satisfied: cffi>=1.0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from argon2-cffi-bindings->argon2-cffi->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (1.15.0)
Requirement already satisfied: pycparser in /srv/conda/envs/notebook/lib/python3.7/site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->jupyter-server<2,>=1.6->ipysheet>=0.4.4->-r requirements.txt (line 3)) (2.21)
Building wheels for collected packages: pgfinder, hide_code, jupyter-latex-envs, jupyter-nbextensions-configurator, pysqlite3
  Building wheel for pgfinder (pyproject.toml): started
  Building wheel for pgfinder (pyproject.toml): finished with status 'done'
  Created wheel for pgfinder: filename=pgfinder-0.0.2-py3-none-any.whl size=29993 sha256=70ebeb005d91fcc6eaa620600e299994310f4354675df0dd2932544cad82fd27
  Stored in directory: /tmp/pip-ephem-wheel-cache-ks21jedm/wheels/dc/fb/92/be54bb9bd71765c7df2281d05007292d81a49f1cb335428757
  Building wheel for hide_code (setup.py): started
  Building wheel for hide_code (setup.py): finished with status 'done'
  Created wheel for hide_code: filename=hide_code-0.6.0-py3-none-any.whl size=67345 sha256=ca04e221452251c94444be12aff7509c4a309d246af745fb8bdd25ae8a6c560f
  Stored in directory: /tmp/pip-ephem-wheel-cache-ks21jedm/wheels/24/7c/d6/215eef6c5f1fa3ae98a3e2e436b800c9df8b1ccbf8b05414d7
  Building wheel for jupyter-latex-envs (setup.py): started
  Building wheel for jupyter-latex-envs (setup.py): finished with status 'done'
  Created wheel for jupyter-latex-envs: filename=jupyter_latex_envs-1.4.6-py2.py3-none-any.whl size=963413 sha256=b4abfcfda27a1e8d3392d481a77cca69c1949aa0fa79a1038c494ec7a007c207
  Stored in directory: /tmp/pip-ephem-wheel-cache-ks21jedm/wheels/a0/95/26/4cf34fb92765c95fb7851fd447511594bcc3a50e504bd09af9
  Building wheel for jupyter-nbextensions-configurator (setup.py): started
  Building wheel for jupyter-nbextensions-configurator (setup.py): finished with status 'done'
  Created wheel for jupyter-nbextensions-configurator: filename=jupyter_nbextensions_configurator-0.4.1-py2.py3-none-any.whl size=465844 sha256=ebc0b26a08894abc4d617def7edf02dea3f6b779174795fe657a3b9b5b9674ff
  Stored in directory: /tmp/pip-ephem-wheel-cache-ks21jedm/wheels/8d/c4/b5/e4b61f624036f83566580d61f24af7b73180b1361ee1ab3722
  Building wheel for pysqlite3 (setup.py): started
  Building wheel for pysqlite3 (setup.py): finished with status 'done'
  Created wheel for pysqlite3: filename=pysqlite3-0.4.7-cp37-cp37m-linux_x86_64.whl size=139731 sha256=78005171be6aa30384867bc8ac6d7158a3bc14968eaf08de5bab17e5aa8b9f32
  Stored in directory: /tmp/pip-ephem-wheel-cache-ks21jedm/wheels/e5/bf/e1/b92ae6794ca15c7dcc2b1f8068ebb3f86e6affa5c0fe5e8f40
Successfully built pgfinder hide_code jupyter-latex-envs jupyter-nbextensions-configurator pysqlite3
Installing collected packages: pysqlite3, pdfkit, jupyter-highlight-selected-word, traitlets, pyyaml, pillow, numpy, lxml, kiwisolver, fonttools, cycler, qtpy, pandas, matplotlib, argcomplete, pgfinder, nbconvert, ipykernel, qtconsole, jupyter-server, jupyter-console, jupyter-latex-envs, jupyter-contrib-core, jupyter-nbextensions-configurator, jupyter_contrib_nbextensions, jupyter, ipysheet, hide_code
  Attempting uninstall: traitlets
    Found existing installation: traitlets 5.1.1
    Uninstalling traitlets-5.1.1:
      Successfully uninstalled traitlets-5.1.1
  Attempting uninstall: nbconvert
    Found existing installation: nbconvert 6.4.5
    Uninstalling nbconvert-6.4.5:
      Successfully uninstalled nbconvert-6.4.5
  Attempting uninstall: ipykernel
    Found existing installation: ipykernel 6.12.1
    Uninstalling ipykernel-6.12.1:
      Successfully uninstalled ipykernel-6.12.1
  Attempting uninstall: jupyter-server
    Found existing installation: jupyter-server 1.16.0
    Uninstalling jupyter-server-1.16.0:
      Successfully uninstalled jupyter-server-1.16.0
�[91mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nbclient 0.5.13 requires traitlets>=5.0.0, but you have traitlets 4.3.3 which is incompatible.
�[0mSuccessfully installed argcomplete-2.0.0 cycler-0.11.0 fonttools-4.33.3 hide_code-0.6.0 ipykernel-6.4.2 ipysheet-0.5.0 jupyter-1.0.0 jupyter-console-6.4.3 jupyter-contrib-core-0.3.3 jupyter-highlight-selected-word-0.2.0 jupyter-latex-envs-1.4.6 jupyter-nbextensions-configurator-0.4.1 jupyter-server-1.13.2 jupyter_contrib_nbextensions-0.5.1 kiwisolver-1.4.2 lxml-4.9.0 matplotlib-3.5.2 nbconvert-5.6.1 numpy-1.21.6 pandas-1.3.5 pdfkit-1.0.0 pgfinder-0.0.2 pillow-9.1.1 pysqlite3-0.4.7 pyyaml-6.0 qtconsole-5.3.1 qtpy-2.1.0 traitlets-4.3.3
Removing intermediate container e9736f5370ee
 ---> 3261834a419e
Step 43/54 : RUN ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir .
 ---> Running in 5344b36682fe
Processing /home/jovyan
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: pyyaml in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (6.0)
Requirement already satisfied: pysqlite3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (0.4.7)
Requirement already satisfied: ruamel.yaml in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (0.17.21)
Requirement already satisfied: pandas in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (1.3.5)
Requirement already satisfied: numpy in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (1.21.6)
Requirement already satisfied: matplotlib in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pgfinder==0.0.2) (3.5.2)
Requirement already satisfied: python-dateutil>=2.7 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (2.8.2)
Requirement already satisfied: pillow>=6.2.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (9.1.1)
Requirement already satisfied: cycler>=0.10 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (1.4.2)
Requirement already satisfied: fonttools>=4.22.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (4.33.3)
Requirement already satisfied: pyparsing>=2.2.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (3.0.7)
Requirement already satisfied: packaging>=20.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib->pgfinder==0.0.2) (21.3)
Requirement already satisfied: pytz>=2017.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas->pgfinder==0.0.2) (2022.1)
Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from ruamel.yaml->pgfinder==0.0.2) (0.2.6)
Requirement already satisfied: typing-extensions in /srv/conda/envs/notebook/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib->pgfinder==0.0.2) (4.1.1)
Requirement already satisfied: six>=1.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from python-dateutil>=2.7->matplotlib->pgfinder==0.0.2) (1.16.0)
Building wheels for collected packages: pgfinder
  Building wheel for pgfinder (pyproject.toml): started
  Building wheel for pgfinder (pyproject.toml): finished with status 'done'
  Created wheel for pgfinder: filename=pgfinder-0.0.2-py3-none-any.whl size=29993 sha256=daf859dadc4bf1ae965c708f04b13ca540cbf5f35d6bc38904eff1f956eac139
  Stored in directory: /tmp/pip-ephem-wheel-cache-l6_p7bhs/wheels/24/67/61/461d47532c7e3b6048f03e8f0e3c2ddb1976b17163d48f9fe9
Successfully built pgfinder
Installing collected packages: pgfinder
  Attempting uninstall: pgfinder
    Found existing installation: pgfinder 0.0.2
    Uninstalling pgfinder-0.0.2:
      Successfully uninstalled pgfinder-0.0.2
Successfully installed pgfinder-0.0.2
Removing intermediate container 5344b36682fe
 ---> 000cd1b3744a
Step 44/54 : LABEL repo2docker.ref="5e005052c34e00de27ce16c965ea7d33f76a0399"
 ---> Running in 583952337ed9
Removing intermediate container 583952337ed9
 ---> b7fb4dbdac43
Step 45/54 : LABEL repo2docker.repo="https://github.com/Mesnage-Org/pgfinder"
 ---> Running in fdf7baa12cb9
Removing intermediate container fdf7baa12cb9
 ---> 133785bbc962
Step 46/54 : LABEL repo2docker.version="2022.02.0+32.ge7524a7"
 ---> Running in bd5c30eec96b
Removing intermediate container bd5c30eec96b
 ---> b821f1bbac84
Step 47/54 : USER ${NB_USER}
 ---> Running in cb0fb8eb7d51
Removing intermediate container cb0fb8eb7d51
 ---> 499f58b96197
Step 48/54 : RUN chmod +x postBuild
 ---> Running in 56199c148a20
Removing intermediate container 56199c148a20
 ---> ed6f77407365
Step 49/54 : RUN ./postBuild
 ---> Running in e87924336449
�[91mTraceback (most recent call last):
  File "/srv/conda/envs/notebook/bin/jupyter-contrib", line 8, in <module>
    sys.exit(main())
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 264, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/application.py", line 662, in launch_instance
    app = cls.instance(**kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/configurable.py", line 412, in instance
    inst = cls(*args, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_core/application.py", line 27, in __init__
    self._refresh_subcommands()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_core/application.py", line 43, in _refresh_subcommands
    get_subcommands_dict = entrypoint.load()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2471, in load
    return self.resolve()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2477, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_nbextensions/application.py", line 15, in <module>
    from jupyter_contrib_nbextensions.install import (
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_nbextensions/install.py", line 12, in <module>
    import latex_envs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/latex_envs/__init__.py", line 3, in <module>
    from . import latex_envs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/latex_envs/latex_envs.py", line 20, in <module>
    from nbconvert.exporters.exporter import Exporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
    from .html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/html.py", line 12, in <module>
    from jinja2 import contextfilter
ImportError: cannot import name 'contextfilter' from 'jinja2' (/srv/conda/envs/notebook/lib/python3.7/site-packages/jinja2/__init__.py)
�[0m�[91mCopying: hide_code -> /srv/conda/envs/notebook/share/jupyter/nbextensions/hide_code
�[0m�[91mTraceback (most recent call last):
  File "/srv/conda/envs/notebook/bin/jupyter-nbextension", line 10, in <module>
    sys.exit(main())
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 264, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/application.py", line 664, in launch_instance
    app.start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 980, in start
    super().start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 253, in start
    self.subapp.start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 708, in start
    self.install_extensions()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 687, in install_extensions
    **kwargs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 191, in install_nbextension
    _maybe_copy(src, full_dest, logger=logger)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 1038, in _maybe_copy
    shutil.copy2(src, dest)
  File "/srv/conda/envs/notebook/lib/python3.7/shutil.py", line 266, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/srv/conda/envs/notebook/lib/python3.7/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'hide_code'
�[0m�[91mEnabling notebook extension hide_code...
�[0m�[91m      - Validating: problems found:
        - require? �[31m X�[0m hide_code
�[0m�[91mEnabling: hide_code
- Writing config: /srv/conda/envs/notebook/etc/jupyter
�[0m�[91m    - Validating...
�[0m�[91mError loading server extension hide_code
     �[31m X�[0m is hide_code importable?
�[0m�[91mTraceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/hide_code/__init__.py", line 1, in <module>
    from hide_code.hide_code_html_exporter import HideCodeHTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/hide_code/hide_code_html_exporter.py", line 6, in <module>
    from nbconvert.exporters.html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
    from .html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/html.py", line 12, in <module>
    from jinja2 import contextfilter
ImportError: cannot import name 'contextfilter' from 'jinja2' (/srv/conda/envs/notebook/lib/python3.7/site-packages/jinja2/__init__.py)
�[0m�[91m./postBuild: 52: cd: can't cd to /home/jovyan/.local/share/jupyter/nbextensions/
�[0m�[91mcp: cannot stat 'hide_input': No such file or directory
�[0m�[91m./postBuild: 54: cd: can't cd to hide_code/
�[0m�[91mcp: cannot stat '/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/static/custom/hide_code.js'�[0m�[91m: No such file or directory
�[0m�[91mrm: cannot remove 'hide-input.yaml'�[0m�[91m: No such file or directory
�[0m�[91mEnabling notebook extension hide_code/main...
�[0m�[91m      - Validating: problems found:
        - require? �[31m X�[0m hide_code/main
�[0mRemoving intermediate container e87924336449
 ---> 00842753bbd9
Step 50/54 : ENV PYTHONUNBUFFERED=1
 ---> Running in c2b5b4a2dce4
Removing intermediate container c2b5b4a2dce4
 ---> 0ae25579a500
Step 51/54 : COPY /python3-login /usr/local/bin/python3-login
 ---> c63e4eea4218
Step 52/54 : COPY /repo2docker-entrypoint /usr/local/bin/repo2docker-entrypoint
 ---> dbbf6a48add5
Step 53/54 : ENTRYPOINT ["/usr/local/bin/repo2docker-entrypoint"]
 ---> Running in 1eaeb55543f6
Removing intermediate container 1eaeb55543f6
 ---> ac40ae7fa509
Step 54/54 : CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
 ---> Running in ffb8484b0590
Removing intermediate container ffb8484b0590
 ---> 62bff0ce055f
{"aux": {"ID": "sha256:62bff0ce055fb6c3bf95201cc3a77dde39ad2c2ef1a895d9422a23bfb3fa3ff2"}}Successfully built 62bff0ce055f
Successfully tagged gcr.io/binderhub-288415/r2d-staging-g5b5b759-mesnage-2dorg-2dpgfinder-03c12f:5e005052c34e00de27ce16c965ea7d33f76a0399
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Pushing image
Successfully pushed gcr.io/binderhub-288415/r2d-staging-g5b5b759-mesnage-2dorg-2dpgfinder-03c12f:5e005052c34e00de27ce16c965ea7d33f76a0399Built image, launching...
Launching server...
Server requested
2022-06-13T08:41:06.093061Z [Normal] Successfully assigned prod/jupyter-mesnage-2dorg-2dpgfinder-2dys76rc64 to gke-prod-user-202201-0769dbf8-44p5
2022-06-13T08:41:07Z [Normal] Container image "jupyterhub/mybinder.org-tc-init:2020.12.4-n999.h140cef5" already present on machine
2022-06-13T08:41:07Z [Normal] Created container tc-init
2022-06-13T08:41:07Z [Normal] Started container tc-init
2022-06-13T08:41:08Z [Normal] Pulling image "gcr.io/binderhub-288415/r2d-staging-g5b5b759-mesnage-2dorg-2dpgfinder-03c12f:5e005052c34e00de27ce16c965ea7d33f76a0399"

@ns-rse
Copy link
Collaborator

ns-rse commented Jun 13, 2022

I've now experienced 500: Internal Server Error at the outset of trying to launch (i.e. the above launch and log doesn't even begin). Which further supports the idea that its a problem with mybinder.org.

I tried setting up a new instance from the above link, specifying the repository, branch (master) and Notebook (pgfinder_interactive.ipynb) with the same result.

Digging into the Binder documentation I found there is an events archive which includes links to the logs of all events and code on how to download these into Python. So we can look at the logs for today (2022-06-13) and see what has occurred on their server side...

import pandas as pd

# Set variables
date = "2022-06-13"
pgfinder_repo = "Mesnage-Org/PGFinder/master"

# Load data
binder_log = pd.read_json(f"https://archive.analytics.mybinder.org/events-{date}.jsonl", lines=True)

# Filter for this repo on the master branch
binder_log.loc[binder_log["spec"] == pgfinder_repo].T

                                                  433
timestamp                   2022-06-13 01:50:00+00:00
schema                   binderhub.jupyter.org/launch
version                                             5
provider                                       GitHub
spec                      Mesnage-Org/PGFinder/master
ref          5e005052c34e00de27ce16c965ea7d33f76a0399
status                                        success
build_token                                      True
origin                               gke.mybinder.org

Only one instance appears to have successfully launched, which somewhat aligns with our current experience.

In tweaking the README.md to include links to different versions of the Notebooks on Thursday I launched a number of different instances so lets look for those in the logs.

date = "2022-06-09"
pgfinder_repo = "Mesnage-Org/PGFinder/master"

# Load data
binder_log_20220609 = pd.read_json(f"https://archive.analytics.mybinder.org/events-{date}.jsonl", lines=True)

# Filter for this repo on the master branch
binder_log_20220609.loc[binder_log_20220609["spec"] == pgfinder_repo].T
                                                 5497                                      7128
timestamp                   2022-06-09 13:24:00+00:00                 2022-06-09 16:06:00+00:00
schema                   binderhub.jupyter.org/launch              binderhub.jupyter.org/launch
version                                             5                                         5
provider                                       GitHub                                    GitHub
spec                      Mesnage-Org/PGFinder/master               Mesnage-Org/PGFinder/master
ref          ba8e9ea52ffea835654ef439946e8d80d9259b3e  b12324159e67511cd795fc635207b09a752eca05
status                                        success                                   success
build_token                                      True                                      True
origin                             gesis.mybinder.org                        gesis.mybinder.org

Two successful launches of the master branch. Lets check and see if the 0.1.0 branch launched...

pgfinder_repo = "Mesnage-Org/PGFinder/v0.1.0"
binder_log_20220609.loc[binder_log_20220609["spec"] == pgfinder_repo].T
                                                 5660                                      7087
timestamp                   2022-06-09 13:41:00+00:00                 2022-06-09 16:02:00+00:00
schema                   binderhub.jupyter.org/launch              binderhub.jupyter.org/launch
version                                             5                                         5
provider                                       GitHub                                    GitHub
spec                      Mesnage-Org/PGFinder/v0.1.0               Mesnage-Org/PGFinder/v0.1.0
ref          8cffb481a88f9e4377b32514c86903af4515fbdf  8cffb481a88f9e4377b32514c86903af4515fbdf
status                                        success                                   success
build_token                                      True                                      True
origin                               gke.mybinder.org                          gke.mybinder.org

Again two successful launches.

At the moment I'm not sure what is going on here because on "our" side of things nothing has changed between Thursday and today

  • The underlying pgfinder code hasn't been modified
  • The code that installs the package and is run before the Notebook can launch hasn't been touched
  • The way in which the Binder version of the Jupyter Notebook is launched has not changed).

...all of which points to it being an error on the Binder side of things. I'll keep an eye on things and test them again a little later to see if it has resolved itself.

@ns-rse
Copy link
Collaborator

ns-rse commented Jun 13, 2022

For sanity I've checked in different browsers and it fails across the following...

  • Opera 88.0.4412.27
  • Firefox 101.0.1
  • Vivaldi 5.3.2679.55

There are some errors when setting up the Notebook related to Jinja2 and the hiding of code using contextfilter and hide_code which fail to import, but the last release of Jinja2 was 2022-04-28 and nothing recently over the weekend that might have broken things. Its something to do with hiding code (based on the modules that are failing to import) but I've started the notebooks locally and can not see any code relating to such actions. Perhaps its something to do with the voila package that seems to be loaded and used to turn notebooks into standalone web applications, these appear to be pulled in by the requirements.txt file.

�[91mTraceback (most recent call last):
  File "/srv/conda/envs/notebook/bin/jupyter-contrib", line 8, in <module>
    sys.exit(main())
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 264, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/application.py", line 662, in launch_instance
    app = cls.instance(**kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/configurable.py", line 412, in instance
    inst = cls(*args, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_core/application.py", line 27, in __init__
    self._refresh_subcommands()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_core/application.py", line 43, in _refresh_subcommands
    get_subcommands_dict = entrypoint.load()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2471, in load
    return self.resolve()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2477, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_nbextensions/application.py", line 15, in <module>
    from jupyter_contrib_nbextensions.install import (
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_contrib_nbextensions/install.py", line 12, in <module>
    import latex_envs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/latex_envs/__init__.py", line 3, in <module>
    from . import latex_envs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/latex_envs/latex_envs.py", line 20, in <module>
    from nbconvert.exporters.exporter import Exporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
    from .html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/html.py", line 12, in <module>
    from jinja2 import contextfilter
ImportError: cannot import name 'contextfilter' from 'jinja2' (/srv/conda/envs/notebook/lib/python3.7/site-packages/jinja2/__init__.py)
�[0m�[91mCopying: hide_code -> /srv/conda/envs/notebook/share/jupyter/nbextensions/hide_code
�[0m�[91mTraceback (most recent call last):
  File "/srv/conda/envs/notebook/bin/jupyter-nbextension", line 10, in <module>
    sys.exit(main())
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 264, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/traitlets/config/application.py", line 664, in launch_instance
    app.start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 980, in start
    super().start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/jupyter_core/application.py", line 253, in start
    self.subapp.start()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 708, in start
    self.install_extensions()
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 687, in install_extensions
    **kwargs
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 191, in install_nbextension
    _maybe_copy(src, full_dest, logger=logger)
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/notebook/nbextensions.py", line 1038, in _maybe_copy
    shutil.copy2(src, dest)
  File "/srv/conda/envs/notebook/lib/python3.7/shutil.py", line 266, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/srv/conda/envs/notebook/lib/python3.7/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'hide_code'
�[0m�[91mEnabling notebook extension hide_code...
�[0m�[91m      - Validating: problems found:
        - require? �[31m X�[0m hide_code
�[0m�[91mEnabling: hide_code
- Writing config: /srv/conda/envs/notebook/etc/jupyter
�[0m�[91m    - Validating...
�[0m�[91mError loading server extension hide_code
     �[31m X�[0m is hide_code importable?
�[0m�[91mTraceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/hide_code/__init__.py", line 1, in <module>
    from hide_code.hide_code_html_exporter import HideCodeHTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/hide_code/hide_code_html_exporter.py", line 6, in <module>
    from nbconvert.exporters.html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
    from .html import HTMLExporter
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/nbconvert/exporters/html.py", line 12, in <module>
    from jinja2 import contextfilter
ImportError: cannot import name 'contextfilter' from 'jinja2' (/srv/conda/envs/notebook/lib/python3.7/site-packages/jinja2/__init__.py)

Might be some of these packages that have been recently updated (e.g. jupyterlab was updated 2022-06-07) so I'll check these tomorrow.

ns-rse added a commit that referenced this issue Jun 14, 2022
See extended comments in issue #98
@ns-rse
Copy link
Collaborator

ns-rse commented Jun 14, 2022

There is something strange going on here, a search for the error ImportError: cannot import name 'contextfilter' from 'jinja2' led me to this thread where the same error cropped up.

In the log-files from launching the Notebook where all dependencies are installed we have the following...

  Attempting uninstall: nbconvert
    Found existing installation: nbconvert 6.4.5
    Uninstalling nbconvert-6.4.5:
      Successfully uninstalled nbconvert-6.4.5
  Attempting uninstall: ipykernel
    Found existing installation: ipykernel 6.12.1
    Uninstalling ipykernel-6.12.1:
      Successfully uninstalled ipykernel-6.12.1
  Attempting uninstall: jupyter-server
    Found existing installation: jupyter-server 1.16.0
    Uninstalling jupyter-server-1.16.0:
      Successfully uninstalled jupyter-server-1.16.0
�[91mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nbclient 0.5.13 requires traitlets>=5.0.0, but you have traitlets 4.3.3 which is incompatible.
�[0mSuccessfully installed argcomplete-2.0.0 cycler-0.11.0 fonttools-4.33.3 hide_code-0.6.0 ipykernel-6.4.2 ipysheet-0.5.0 jupyter-1.0.0 jupyter-console-6.4.3 jupyter-contrib-core-0.3.3 jupyter-highlight-selected-word-0.2.0 jupyter-latex-envs-1.4.6 jupyter-nbextensions-configurator-0.4.1 jupyter-server-1.13.2 jupyter_contrib_nbextensions-0.5.1 kiwisolver-1.4.3 lxml-4.9.0 matplotlib-3.5.2 nbconvert-5.6.1 numpy-1.21.6 pandas-1.3.5 pdfkit-1.0.0 pgfinder-0.0.2 pillow-9.1.1 pysqlite3-0.4.7 pyyaml-6.0 qtconsole-5.3.1 qtpy-2.1.0 traitlets-4.3.3

Which shows that initially nbconvert-6.4.5 is installed but it is then uninstalled in favour of nbconvert-6.4.5. An issue on nbconvert contains a post from one of the contributors that Jinja2, on which nbconvert depends heavily, deprecated a number of modules which is causing problems for them and recommends against pinning versions.

For our problem though the question is why nbconvert-6.4.5 is being removed in favour of nbconvert-5.6.1. Reading through the log (again) we see that there is the following line...

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nbclient 0.5.13 requires traitlets>=5.0.0, but you have traitlets 4.3.3 which is incompatible.

Ok so why is traitlets-4.3.3 being pulled in? The first occurrence in the log of traitlets is on line 182, preceeded by lines about the notebook version being satisfied as a depedency from hide_code>=0.5.2...

Requirement already satisfied: notebook>=6.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from hide_code>=0.5.2->-r requirements.txt (line 2)) (6.4.10)
Collecting traitlets<5.0
  Downloading traitlets-4.3.3-py2.py3-none-any.whl (75 kB)

We might be getting somewhere as we have a pointer to something we can control, i.e. line 2 of requirements.txt.

The latest version of hide_code is 0.6.0 released December 2020 (see hide_code on PyPi), lets check if that is installed...

Collecting hide_code>=0.5.2
  Downloading hide_code-0.6.0.tar.gz (62 kB)
     .................................
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'

It is, so we can't do anything there as we're already using the most recent version. But if we look at the hide_code issues on GitHub we find a host of reports with similar problems...

The oldest was closed in 2020 with the "fix" being to pegging the dependency for hide_code to be nbconvert>=5.0,<6 (see commit).

I've added our voice to the most recent issue #101 | Support for recent nbconvert and traitlets.

But then I went back to pip's error...

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nbclient 0.5.13 requires traitlets>=5.0.0, but you have traitlets 4.3.3 which is incompatible.

What is the most recent version of nbclient? Checking on PyPi its 0.6.4, I wonder what happens if I specify a minimum requirement for nbclient>=0.6.4 in our requirements.txt then, will it upgrade all the other things?

Having done so I've given it a whirl and tried launching the interactive notebook off of the commit 73adc7d (<< Follow this link, it should launch the notebook and work, it just has for me!).

The current situation of being dependent on Binder, the configuration of which is in many places outside of our control as it appears many packages are pulled in automatically in the virtual environments they launch, is not ideal. This has taken a couple of hours of head scratching and reading logs to work out which is time I could have spent on #7 and #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants