Skip to content

Conversation

@mrakitin
Copy link
Contributor

@mrakitin mrakitin commented Feb 7, 2019

We are experiencing issues with mybinder for this repo: https://github.com/NSLS-II/tutorial due to pypa/pip#6197:

Exception:
Traceback (most recent call last):
  File "/srv/conda/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/srv/conda/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 346, in run
    session=session, autobuilding=True
  File "/srv/conda/lib/python3.6/site-packages/pip/_internal/wheel.py", line 886, in build
    assert have_directory_for_build
AssertionError
Removing intermediate container b42459fcd7a3
The command '/bin/sh -c ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir -r "requirements.txt"' returned a non-zero code: 2Error during build: 'Repo2Docker' object has no attribute 'debug'

This temporary fix may solve the issue, however I don't mind to just wait until after pip-19.0.2 with the fix is released. Just wanted to document it here.

Also, please note another error which I haven't attempted to solve:

Error during build: 'Repo2Docker' object has no attribute 'debug'

This is called here: https://github.com/jupyter/repo2docker/blob/9c2c7b6ae291fbb9c8147be332b64a0794d768e6/repo2docker/__main__.py#L337
Any ideas what it should be instead of r2d.debug?

@betatim
Copy link
Member

betatim commented Feb 8, 2019

The r2d.debug issue is addressed in #575, thanks for reporting it (and good eyes for spotting it!)

I will merged the temporary fix and deploy it to mybinder.org. We can unpin pip once there is a new release.

@betatim betatim merged commit 8597520 into jupyterhub:master Feb 8, 2019
@mrakitin mrakitin deleted the workaround_pip-19.0.1_issues branch February 8, 2019 14:45
@mrakitin
Copy link
Contributor Author

mrakitin commented Feb 8, 2019

Great! Thanks so much :)

@betatim betatim mentioned this pull request Feb 21, 2019
markmo pushed a commit to markmo/repo2docker that referenced this pull request Jan 22, 2021
…_issues

FIX: a temporary workaround for pip-19.0.1 issues
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

Successfully merging this pull request may close these issues.

2 participants