I have FSL installed onto my system and have now installed SCT. I was hoping to integrate SCT and FSLeyes using the sct_plugin.py script. However, when I tried, I received the following error:
The script /Users/waldmanad/sct_5.8/contrib/fsl_integration/sct_plugin.py has crashed! Reason: Rect.SetHeight(): argument 1 has unexpected type ‘float’
Any thoughts on where I may be going wrong? Thanks!
Does the error happen when first loading the script? Or, does the error occur when trying to perform some sort of action within FSLeyes (like pressing a button, running an SCT command, etc.)?
Good news, @AW123! We have been able to reproduce this issue:
We have determined that the bug is actually inside of FSL. There is a problem with the wxPython software package that FSL v6.0.6 uses. The good news is, the wxPython bug was fixed here: PR #1896. This means that all you need to do is update the version of wxPython inside of FSL.
You can update wxPython using the following command:
sudo $FSLDIR/bin/conda update -n base wxPython
You should see wxPython updated from v4.1.1 to v4.2.0. After updating, the SCT FSLeyes integration should work correctly.
Thank you again for bringing this to our attention! We greatly appreciate your contribution on the forum.