-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
If PIL.image is missing, tell user to install pillow #9365
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
Conversation
doc/conf.py
Outdated
@@ -55,7 +55,10 @@ def _check_deps(): | |||
try: | |||
__import__(name) | |||
except ImportError: | |||
missing.append(name) | |||
if name == 'PIL.Image': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just make names a mapping? IPython.blah.blah is likewise technically not the correct name (should be just IPython).
802ed1f
to
cb94229
Compare
👍 on this. Every six months or so I went through this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conditional on tests passing (but why would they not)
... yet |
Because |
Does that mean the other append statement won't work on python 2 either? |
... no? |
If
pillow
isn't installed and one tries to build the docs, currently the error message isIt took me a while and a bit of searching that to fix this requires installing the
pillow
package. This PR changes the error message toto make it much clearer which package is missing and needs to be installed.