Skip to content

Build issue on Binder: AttributeError: module 'pkgutil' has no attribute 'ImpImporter' #55

@sneumann

Description

@sneumann

Describe the bug

When launching https://mybinder.org/v2/gh/IUPAC/WFChemCookbook/main?urlpath=tree/book/manipulations/computing_inchis.ipynb

The build on binder is initiated, but fails with

Waiting for build to start...
Retrieving dataverse installations from https://iqss.github.io/dataverse-installations/data/data.jsonPicked Git content provider.
Cloning into '/tmp/repo2dockerpe7_anz_'...
HEAD is now at 357d49c security update for tornado
Building conda environment for python=3.12
Using PipfileBuildPack builder
github.com/docker/buildx v0.19.1 5113f9ea89afd597302961caf99cecd142c7ba05
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 5.29kB done
#1 DONE 0.1s

#2 [internal] load metadata for docker.io/library/buildpack-deps:jammy
#2 DONE 0.4s
[...]
#21 [17/19] RUN (cd . &&                     PATH="/srv/conda/envs/notebook/bin:/home/jovyan/.local/bin:/home/jovyan/.local/bin:/srv/conda/envs/notebook/bin:/srv/conda/bin:/srv/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"                         pipenv install --skip-lock --system --dev &&                         pipenv --clear                 )
#21 1.973 Traceback (most recent call last):
#21 1.973   File "/srv/conda/envs/notebook/bin/pipenv", line 3, in <module>
#21 1.973     from pipenv import cli
#21 1.973   File "/srv/conda/envs/notebook/lib/python3.12/site-packages/pipenv/__init__.py", line 57, in <module>
[...]
#21 1.995     from pipenv.patched.notpip._vendor.pkg_resources import Distribution
#21 1.995   File "/srv/conda/envs/notebook/lib/python3.12/site-packages/pipenv/patched/notpip/_vendor/pkg_resources/__init__.py", line 2164, in <module>
#21 1.998     register_finder(pkgutil.ImpImporter, find_on_path)
#21 1.998                     ^^^^^^^^^^^^^^^^^^^
#21 1.998 AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
#21 ERROR: process "/bin/sh -c (cd . &&                     PATH=\"${KERNEL_PYTHON_PREFIX}/bin:$PATH\"                         pipenv install --skip-lock --system --dev &&                         pipenv --clear                 )" did not complete successfully: exit code: 1

To Reproduce

Steps to reproduce the behaviour

  1. Click on https://mybinder.org/v2/gh/IUPAC/WFChemCookbook/main?urlpath=tree/book/manipulations/computing_inchis.ipynb

Expected behaviour

The Notebook should start on Binder

Yours,
Steffen

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions