Dear SCT team,
I am trying to install SCT 5.8 on Windows 11 using the installer install_sct-5.8_win.bat, and keep running into an error saying “ModuleNotFoundError: No module named ‘packaging’”. Here is the output from the terminal:
Virtual environment created and activated successfully
### Installing SCT and its dependencies from requirements-freeze.txt ...
Requirement already satisfied: pip in c:\users\ryanx\spinalcordtoolbox\venv_sct\lib\site-packages (22.3.1)
Collecting pip
Using cached pip-23.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-23.1.2
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cpu
Collecting absl-py==1.3.0 (from -r requirements-freeze.txt (line 1))
Using cached absl_py-1.3.0-py3-none-any.whl (124 kB)
Collecting astor==0.8.1 (from -r requirements-freeze.txt (line 2))
Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting attrs==22.1.0 (from -r requirements-freeze.txt (line 3))
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting bids-validator==1.9.9 (from -r requirements-freeze.txt (line 4))
Using cached bids_validator-1.9.9-py2.py3-none-any.whl (21 kB)
Collecting cachetools==5.2.0 (from -r requirements-freeze.txt (line 5))
Using cached cachetools-5.2.0-py3-none-any.whl (9.3 kB)
Collecting certifi==2022.9.24 (from -r requirements-freeze.txt (line 6))
Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)
Collecting cffi==1.15.1 (from -r requirements-freeze.txt (line 7))
Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB)
Collecting charset-normalizer==2.1.1 (from -r requirements-freeze.txt (line 8))
Using cached https://download.pytorch.org/whl/charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting click==8.1.3 (from -r requirements-freeze.txt (line 9))
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting colorama==0.4.6 (from -r requirements-freeze.txt (line 10))
Using cached https://download.pytorch.org/whl/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting coloredlogs==15.0.1 (from -r requirements-freeze.txt (line 11))
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting commonmark==0.9.1 (from -r requirements-freeze.txt (line 12))
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting contourpy==1.0.6 (from -r requirements-freeze.txt (line 13))
Using cached contourpy-1.0.6-cp311-cp311-win_amd64.whl (163 kB)
Collecting coverage==6.5.0 (from -r requirements-freeze.txt (line 14))
Using cached coverage-6.5.0-cp311-cp311-win_amd64.whl (188 kB)
Collecting cryptography==38.0.4 (from -r requirements-freeze.txt (line 15))
Using cached cryptography-38.0.4-cp36-abi3-win_amd64.whl (2.4 MB)
Collecting csv-diff==1.1 (from -r requirements-freeze.txt (line 16))
Using cached csv_diff-1.1-py3-none-any.whl (12 kB)
Collecting cycler==0.11.0 (from -r requirements-freeze.txt (line 17))
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting Deprecated==1.2.13 (from -r requirements-freeze.txt (line 18))
Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Collecting dictdiffer==0.9.0 (from -r requirements-freeze.txt (line 19))
Using cached dictdiffer-0.9.0-py2.py3-none-any.whl (16 kB)
Collecting dipy==1.5.0 (from -r requirements-freeze.txt (line 20))
Using cached dipy-1.5.0.tar.gz (11.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "C:\Users\ryanx\spinalcordtoolbox\venv_sct\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\ryanx\spinalcordtoolbox\venv_sct\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryanx\spinalcordtoolbox\venv_sct\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryanx\AppData\Local\Temp\pip-build-env-lzut6jt0\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryanx\AppData\Local\Temp\pip-build-env-lzut6jt0\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\ryanx\AppData\Local\Temp\pip-build-env-lzut6jt0\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ryanx\AppData\Local\Temp\pip-build-env-lzut6jt0\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 34, in <module>
File "C:\Users\ryanx\AppData\Local\Temp\pip-install-t5bq3tll\dipy_8f6233f19d3b4dbeaa53c447f2ae4462\cythexts.py", line 7, in <module>
from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Failed with error #1.
I would appreciate any help.