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

Provide better error message when running on unsupported distro #221

Merged
merged 7 commits into from Nov 20, 2018

Conversation

yuvipanda
Copy link
Collaborator

  • Add / update documentation
  • Add tests

Fixes #186 #206

@yuvipanda
Copy link
Collaborator Author

This provides a better error message, and bolder text about requiring Ubuntu 18.04.

@Carreau
Copy link
Member

Carreau commented Nov 1, 2018 via email

@choldgraf
Copy link
Member

ahh yea, on

https://docs.python.org/2/library/platform.html#platform.linux_distribution

I see:

Note This function is deprecated since Python 3.5 and removed in Python 3.8. See alternative like the distro package.

looks like the usage for "distro" is pretty similar:

https://pypi.org/project/distro/

@yuvipanda
Copy link
Collaborator Author

Unfortunately we have to only use stdlib in bootstrap.py. I'll probably switch it to read from /etc/os-release. Thanks for the pointer, @Carreau and @choldgraf

@yuvipanda
Copy link
Collaborator Author

@Carreau @choldgraf I've modified this to use /etc/os-release now!

@choldgraf
Copy link
Member

re-running circle to see if the error was a one-off

@choldgraf
Copy link
Member

is this ready to go now?

@yuvipanda
Copy link
Collaborator Author

@choldgraf it is!

@Carreau Carreau merged commit 5f440ae into jupyterhub:master Nov 20, 2018
@Carreau
Copy link
Member

Carreau commented Nov 20, 2018

Awayyyyy we go.

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.

None yet

3 participants