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

BUG: Allow show_versions to work for any module that raises an exception #59114

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

mroeschke
Copy link
Member

The use of import_optional_dependency only can ignore ImportError, but as seen in the issue essentially any exception can be raised with an import.

Also cleans up some redundancy of optional dependencies being listed.

@mroeschke mroeschke added the Bug label Jun 26, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jun 27, 2024
@Dr-Irv
Copy link
Contributor

Dr-Irv commented Jun 27, 2024

@mroeschke I think it may be a while until we do a 3.0 release, and with numpy 2.0 now released, we might be seeing more reports of problems with show_versions(), so we might need to do a 2.2.3 release with this patch to avoid lots of people reporting issues.

@mroeschke mroeschke modified the milestones: 3.0, 2.2.3 Jun 28, 2024
@mroeschke
Copy link
Member Author

OK we can backport this change just in case

@mroeschke
Copy link
Member Author

Merging, but happy to follow up if needed

@mroeschke mroeschke merged commit db13fb5 into pandas-dev:main Jul 1, 2024
48 of 49 checks passed
@mroeschke mroeschke deleted the fix/show_versions branch July 1, 2024 16:36
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jul 1, 2024
mroeschke added a commit that referenced this pull request Jul 1, 2024
…for any module that raises an exception) (#59158)

Backport PR #59114: BUG: Allow show_versions to work for any module that raises an exception

Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: HDF support and show_versions() broken with pandas 2.2.2 and numpy 2.0
2 participants