-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ERR: include original error message for missing required dependencies #26665
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
ERR: include original error message for missing required dependencies #26665
Conversation
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.
lgtm, thanks @DanielFEvans
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.
Looks good, thanks!
Sorry all, not sure how I missed this was actually not passing CI. |
@DanielFEvans sorry, I was a bit fast with merging this (for some reason I overlooked that the CI was red). So for now I reverted the change on master, to avoid that all other PRs will fail. Can you open a new PR with the same changes, but then look into fixing the tests? (I didn't fully find out how to fix them, my attempt is in #26674) |
…ndencies (pandas-dev#26665)" This reverts commit 047d32d.
git diff upstream/master -u -- "*.py" | flake8 --diff
Modifies the try-catch for imports of required dependencies (
numpy
,pytz
, anddateutil
) to record any exceptions raised, and then to include the message from these when reporting that required dependencies are missing.Previously, the error message simply claimed the dependency was missing, which was somewhat misleading if the dependency was installed but raised its own ImportError (missing sub-dependencies, bad install, etc.).