Hi @Gali! Thanks for sharing the install log so we can help you out.
Could not connect to display 127.0.0.1:0.0
Could not connect to any X display.
means it’s trying to connect to an X server. Ubuntu comes with one, but I see you’re on WSL (“5.4.72-microsoft-standard-WSL2”), which does not come with one by default.
The quick solution is to disable interactive plotting. spinalcordtoolbox works fine with non-interactive graphics, able to save results to .png files which you can then open from Windows Explorer. To do this, just do:
echo 'MPLBACKEND=Agg' >> ~/.bash_profile
and then log out and back in again. SCT is fully functional in this mode.
If you want to go further and enable interactive graphics, you can try following this answer: https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2/61110604#61110604
We are still working through how to support WSL well, so please let us know how this goes for you and we can think about how to integrate its advice into our own. In the meantime, SCT should be working for you, and thanks for using SCT!
(refs: https://github.com/spinalcordtoolbox/spinalcordtoolbox/pull/3420/, https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/3392)