I am having trouble with running sct_label_utils. When I first run sct_label_vertebrae, I get an error ‘Automatic C2-C3 detection failed. Please provide manual label with sct_label_utils.’ After running the sct_label_utils command, I get the output:
‘Cannot mix compatible Qt library (version 0x50b03) with this library (version 0x50b02)
Aborted’.
hi,
looks like there is a problem with display in your station. Are you connecting with ssh to a remote station? Can you copy/paste the output of sct_check_dependencies?
thanks
I apologize for the late response. Yes, I am connecting with ssh to a remote station. I have copied the output below:
Spinal Cord Toolbox (4.3)
SCT info:
version: 4.3
path: /usr/local/apps/SCT/4.3/src
OS: linux (Linux-3.10.0-862.14.4.el7.x86_64-x86_64-with-centos-7.5.1804-Core)
CPU cores: Available: 72, Used by SCT: 72
Swap: 2047 14 2033
Check Python executable…[OK]
Using bundled python 3.6.10 |Anaconda, Inc.| (default, May 8 2020, 02:54:21)
[GCC 7.3.0] at /usr/local/apps/SCT/4.3/src/python/envs/venv_sct/bin/python
Check if data are installed…[OK]
Check if numpy is installed…[OK] (1.18.5)
Check if colored is installed…[OK] (1.4.2)
Check if dipy is installed…[OK] (1.1.1)
Check if futures is installed…[OK]
Check if h5py is installed…[OK] (2.10.0)
Check if ivadomed (1.2.1) is installed…[OK] (1.2.1)
Check if Keras (2.1.5) is installed…[OK] (2.1.5)
Check if matplotlib is installed…[OK] (3.2.1)
Check if nibabel is installed…[OK] (3.1.0)
Check if pandas is installed…[OK] (1.0.4)
Check if pyqt5 (5.11.3) is installed…[OK] (5.11.3)
Check if pytest is installed…[OK] (5.4.3)
Check if pytest-cov is installed…[OK] (2.9.0)
Check if raven is installed…[OK]
Check if requests is installed…[OK] (2.23.0)
Check if requirements-parser is installed…[OK] (0.2.0)
Check if scipy is installed…[OK] (1.4.1)
Check if scikit-image is installed…[OK] (0.17.2)
Check if scikit-learn is installed…[OK] (0.23.1)
Check if tensorflow (1.5.0) is installed…[OK] (1.5.0)
Check if torch (1.5.0+cpu) is installed…[OK] (1.5.0+cpu)
Check if torchvision (0.6.0+cpu) is installed…[OK] (0.6.0+cpu)
Check if xlwt is installed…[OK] (1.3.0)
Check if tqdm is installed…[OK] (4.46.1)
Check if transforms3d is installed…[OK] (0.3.1)
Check if urllib3 is installed…[OK] (1.25.9)
Check if spinalcordtoolbox is installed…[OK]
Check ANTs compatibility with OS …[OK]
Check PropSeg compatibility with OS …[OK]
Check if DISPLAY variable is set…[OK]
Check if figure can be opened with PyQt…[OK]
Hi @kim, surprisingly PyQt appears to be working during sct_check_dependencies so we are working to figure out what is different between that sct_label_utils.
Would you be able to run
echo $LD_LIBRARY_PATH and report the outcome.
Also I notice this is a centos machine, is this a compute canada cluster that you’re using? If so this will be much easier to debug because we have access to the system.
Assuming you are running on ComputeCanada, I think it’s likely this was induced by anaconda somehow. They don’t support running conda on their systems (https://docs.computecanada.ca/wiki/Anaconda/en). I see you have 72 cores, so I assume you’re on an HPC system even if it’s not ComputeCanada.
I think this is a bug on our end, caused by only testing against conda which doesn’t fairly represent the diversity of systems, especially HPC systems like yours. We have a longstanding task (https://github.com/neuropoly/spinalcordtoolbox/issues/1526) to make this better.
I am curious about exactly what is failing. I would also like to see $LD_LIBRARY_PATH, and to see what our tests say. If you have a moment, can you launch this and upload the output here?