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 dependency installation error reporting and handling. #309

Merged

Conversation

Exairnous
Copy link
Contributor

@Exairnous Exairnous commented Jul 31, 2024

False positives in the error reporting when installing dependencies caused confusion to users and sometimes led to the dependency not getting installed at all when false errors were detected and the install halted.
Switch to relying solely on is_module_available to determine whether an install was successful and suppress errors unless they are 100% confirmed to be an issue.
Make upgrading pip optional instead of required.
Modify is_module_available to be able to check both system dependencies (i.e. pip) and locally installed dependencies.
Modify is_module_available to explicitly return a bool.

This PR should hopefully address #308 as well as any other similar cases.

@Exairnous Exairnous requested review from keianhzo and removed request for keianhzo July 31, 2024 05:31
@Exairnous Exairnous force-pushed the fix-installdeps-error-reporting branch from c929b02 to fdef458 Compare July 31, 2024 05:34
False positives in the error reporting when installing dependencies caused confusion to users and sometimes led to the dependency not getting installed at all when false errors were detected and the install halted.
Switch to relying solely on is_module_available to determine whether an install was successful and suppress errors unless they are 100% confirmed to be an issue.
Make upgrading pip optional instead of required.
Modify is_module_available to be able to check both system dependencies (i.e. pip) and locally installed dependencies.
Modify is_module_available to explicitly return a bool.
@Exairnous Exairnous force-pushed the fix-installdeps-error-reporting branch from fdef458 to 41ac24b Compare July 31, 2024 05:44
@Exairnous
Copy link
Contributor Author

@hrithikwins Can you check and see if this fixes #308 for you, please?

@Exairnous Exairnous added this to the 1.6.1 milestone Oct 15, 2024
@Exairnous Exairnous merged commit 06d98bf into Hubs-Foundation:master Oct 19, 2024
6 checks passed
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.

1 participant