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

Catch errors from outdated wxpython versions bundled with FSL, then suggest a solution #4048

Merged

Conversation

joshuacwnewton
Copy link
Member

@joshuacwnewton joshuacwnewton commented Feb 22, 2023

Description

This PR more gracefully handles an error thrown by FSLeyes when WxPython is out of date (buggy: 4.1.1, fixed: 4.2.0).

Before:

image

After:

image

This out of date WxPython is installed when using the "FSL installation method" for FSLeyes. So, we provide FSL-specific instructions for updating WxPython within the FSL conda environment.

(If FSLeyes is installed via a dedicated conda environment, then an up-to-date WxPython will be installed, and thus will be unaffected by this bug.)

Linked issues

Fixes #3988

@joshuacwnewton joshuacwnewton added bug category: fixes an error in the code upstream Issue caused by software dependencies sct_plugin.py (FSLeyes) context: Related to FSLeyes plugin labels Feb 22, 2023
@joshuacwnewton joshuacwnewton added this to the 6.0 milestone Feb 22, 2023
@joshuacwnewton joshuacwnewton self-assigned this Feb 22, 2023
@joshuacwnewton joshuacwnewton force-pushed the jn/3988-handle-wxpython-error-in-fsleyes-script branch from b1c7101 to 7428cc9 Compare February 22, 2023 16:00
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.

Thanks! This is a really user-friendly error message (what happened, how to fix it, link to more info) for a common error.

Visually, the modified readthedocs page looks fine.

contrib/fsl_integration/sct_plugin.py Outdated Show resolved Hide resolved
documentation/source/user_section/fsleyes.rst Outdated Show resolved Hide resolved
joshuacwnewton and others added 2 commits February 24, 2023 11:02
Co-authored-by: Mathieu Guay-Paquet <mathieu.guaypaquet@gmail.com>
Co-authored-by: Mathieu Guay-Paquet <mathieu.guaypaquet@gmail.com>
@joshuacwnewton joshuacwnewton merged commit 33e134e into master Feb 24, 2023
@joshuacwnewton joshuacwnewton deleted the jn/3988-handle-wxpython-error-in-fsleyes-script branch February 24, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code sct_plugin.py (FSLeyes) context: Related to FSLeyes plugin upstream Issue caused by software dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rect.SetHeight(): argument 1 has unexpected type ‘float’ when loading FSLeyes integration script
2 participants