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 #753, use try import rather than importlib to test module presence. #755

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

petersilva
Copy link
Contributor

Formerly used importlib, but that only tested if the module itself was installed. As per #753, It turns out that import can fail because of transitive deps: a package is installed, but something that it depends on is missing, so it's clearer to just try an import surrounded by try/except.

@petersilva petersilva changed the title fix #753, use literal rather than importlib to test module presence. fix #753, use try import rather than importlib to test module presence. Sep 1, 2023
Copy link
Contributor

@tysonkaufmann tysonkaufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Received confirmation that this PR resolves the linked issue from user

@petersilva petersilva merged commit 671df54 into v03_wip Sep 11, 2023
39 of 42 checks passed
@petersilva petersilva deleted the v03_issue753 branch September 27, 2023 13:16
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

2 participants