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

_pip install_ broken beyond normal repair by Jupyter Notebook Extensions (AttributeError: _DistInfoDistribution__dep_map) #1357

Open
mirekphd opened this issue Oct 1, 2018 · 0 comments

Comments

@mirekphd
Copy link

mirekphd commented Oct 1, 2018

Installing Jupyter Extensions / Configurator with conda in the versions specified below broke pip 18.0 installer in Python 3.6.5 under Ubuntu 16.04 beyond normal repair, as described in great detail in this fully reproducible bug report submitted to PyPa Github Issues (see #5839)

# Jupyter notebook extensions                                                                                                                     # # caution: Jupyter notebook has to be pinned, because Jupyter notebook extensions not always work with latest versions of notebook
# pin Jupyter Notebook
ARG NB_VER=5.6.0                    
# pin Jupyter notebook extensions
ARG NB_EXT_VER=0.5.0
# pin Jupyter notebook extensions configurator
ARG NB_EXT_CFG_VER=0.4.0

# caution: jupyter notebook extensions do not work unless installed with conda (pip does not suffice)
RUN conda install -c conda-forge notebook=${NB_VER} jupyter_contrib_nbextensions=${NB_EXT_VER} jupyter_nbextensions_configurator=${NB_EXT_CFG_VER}

Note that it is necessary to use conda to cause the reported breakage in pip install. The same extensions builds are harmless when installed with pip, but they are not working either (i.e. they are not available in Notebook unless installed with conda).

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

1 participant