-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Warning with numpy.longdouble
gets thrown on WSL when calling SCT functions
#4411
Comments
Could you share the full output of I'm not getting this on my end, nor have I seen it in our test suite, so I'm curious what your setup is like. :) |
Ah wait, I see now from the other issue that you're on WSL. And, checking the WSL CI logs, I see this too: https://github.com/spinalcordtoolbox/spinalcordtoolbox/actions/runs/8357890181/job/22877996583#step:8:42
|
numpy.longdouble
numpy.longdouble
gets thrown on WSL when calling SCT functions
Some relevant issues:
It seems like this is an issue with WSL itself, rather than Are you using WSL1 or WSL2? Because it seems like this issue may be fixed in WSL2: numpy/numpy#22187 (comment) |
I am using WSL1, but I never had that warning before in SCT |
I think this is due to #4332, which caused us to upgrade numpy versions. According to h5py/h5py#2357, downgrading to 1.24 removes the warning, and we were on 1.23.5 until a few days ago. |
Hrm. Given that we explicitly recommend using WSL1 with SCT, there doesn't seem to be an easy way around this. I wonder where On the other hand, if this warning doesn't truly affect SCT, then perhaps we could filter it instead. |
I set a breakpoint at the LOC where this warning is triggered, then ran It looks like the LOC is only traversed when
The source code for As far as the warning goes -- it seems like this should be reported upstream? It's possible that EDIT: Done: |
My fix was merged upstream! :) It will take some time for a new
Perhaps we could add the same warning filter in the meantime? Otherwise, I think this issue is resolved now. |
I think, because this has been fixed upstream it might be best to just close this as completed? |
Description
I intalled the lastest master's version (
git-master-56c7f6cdb0f763f1e287a3255b25ab532e257a00*
)And when running sct_check_dependencies, I get this user warning:
I also get it if I run an sct command:
The text was updated successfully, but these errors were encountered: