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 regression in hydroshare introduced after moving to requests #1034

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

MridulS
Copy link
Contributor

@MridulS MridulS commented Apr 1, 2021

The build process was broken by #993, binderhub wasn't able to build hydroshare repos.

@welcome
Copy link

welcome bot commented Apr 1, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@MridulS MridulS force-pushed the hydroshare_break branch from ac18528 to 3112a56 Compare April 1, 2021 15:57
@MridulS
Copy link
Contributor Author

MridulS commented Apr 1, 2021

pip install hg-evolve seems to be breaking on GitHub Actions https://github.com/jupyterhub/repo2docker/runs/2246541424

I have updated the action to use latest mercurial and hg-evolve, any reason why repo2docker isn't using the latest release of mercurial available via pip?

@manics
Copy link
Member

manics commented Apr 1, 2021

I have updated the action to use latest mercurial and hg-evolve, any reason why repo2docker isn't using the latest release of mercurial available via pip?

@paugier added the mercurial provider in #950

@paugier
Copy link
Contributor

paugier commented Apr 1, 2021

any reason why repo2docker isn't using the latest release of mercurial available via pip?

Because there are no Mercurial wheels for Linux on PyPI: https://pypi.org/project/mercurial/#files. So installing Mercurial via pip triggers a Mercurial build and we don't want to do that here.

I don't understand what has changed and why installing the same version of the same package on the same Python is now broken. Anyway, maybe another quick way to fix this error ("ImportError: No module named setuptools") would be to install setuptools for the Python used by Mercurial by adding:

$(hg debuginstall --template "{pythonexe}") -m pip install setuptools --user

before installing hg-evolve 9.2.

@paugier
Copy link
Contributor

paugier commented Apr 1, 2021

Or one could use Ubuntu 20.04 ?

@MridulS
Copy link
Contributor Author

MridulS commented Apr 3, 2021

Thanks @paugier!

Updated the CI to install setup tools for mercurial.
Actions are happy now.

@sblack-usu
Copy link
Contributor

I'm from HydroShare and just checking in to see if any help is needed to get this merged. I'm also curious to see if there is anything we could do to catch this earlier. It looks like it wasn't caught here because requests are mocked and it was caught in the binderhub repoproviders test after binderhub picked up the latest repo2docker.

@betatim
Copy link
Member

betatim commented Apr 20, 2021

LGTM.

I think your diagnosis is right about why it broke and no one noticed.

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.

5 participants