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

Make sct_download_data errors non-fatal during installations of SCT #4484

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

joshuacwnewton
Copy link
Member

@joshuacwnewton joshuacwnewton commented May 15, 2024

Description

This PR follows the reasoning in #4410 (comment). By allowing sct_download_data failures, we mitigate crashing the entire SCT installation if a single dependency fails to install (e.g. due to network/disk issues).

That said, it is still important for users to know that the installation of dependencies has failed. So, we also add a new check to sct_check_dependencies that checks if the default data dependencies are installed. As a bonus, this means that the list of defaults no longer has to be hardcoded inside of the individual install scripts.

Linked issues

Fixes #4410.

@joshuacwnewton joshuacwnewton added the installation category: install_sct or pip/setup.py label May 15, 2024
@joshuacwnewton joshuacwnewton added this to the 6.4 milestone May 15, 2024
@joshuacwnewton joshuacwnewton self-assigned this May 15, 2024
Copy link
Member

@mguaypaq mguaypaq left a comment

Choose a reason for hiding this comment

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

Possibly this would be good to bring up at today's SCT meeting!

install_sct Outdated Show resolved Hide resolved
install_sct.bat Outdated Show resolved Hide resolved
@joshuacwnewton joshuacwnewton marked this pull request as draft May 17, 2024 15:34
install_sct Outdated Show resolved Hide resolved
@joshuacwnewton joshuacwnewton marked this pull request as ready for review May 17, 2024 20:22
I also had the wrong default value for `keep`. In `install_named_dataset`, this is False by default.
This preserves the proper logging, as `init_sct` will initialize the logger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation category: install_sct or pip/setup.py
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File permission error during SCT installation
2 participants