Error message when running slicerCIP

Hello Developers and Users 3DSlicer

I want to run SlicerCIP (SlicerCIP4-10-2) in my computer with the following specifications:

sn@MP:~$ uname --all
Linux MP 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

sn@MP:~$ python --version
Python 2.7.17

sn@MP:~$ python3 --version
Python 3.6.9

When I run SlicerCIP4-10-2, I get the following error message:

sn@MP:~$ cd ./SlicerCIP4-10-2/

sn@MP:~/SlicerCIP4-10-2$ ./SlicerCIP4-10-2
Error processing line 1 of /home/sn/SlicerCIP4-10-2/lib/Python/lib/python2.7/site-packages/._easy-install.pth:

Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/bin/…/lib/Python/lib/python2.7/site.py”, line 156, in addpackage
if not dircase in known_paths and os.path.exists(dir):
File “/home/sn/SlicerCIP4-10-2/bin/…/lib/Python/lib/python2.7/genericpath.py”, line 26, in exists
os.stat(path)
TypeError: stat() argument 1 must be encoded string without null bytes, not str

Remainder of file ignored
Error processing line 1 of /home/sn/SlicerCIP4-10-2/lib/Python/lib/python2.7/site-packages/._setuptools.pth:

Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/bin/…/lib/Python/lib/python2.7/site.py”, line 156, in addpackage
if not dircase in known_paths and os.path.exists(dir):
File “/home/sn/SlicerCIP4-10-2/bin/…/lib/Python/lib/python2.7/genericpath.py”, line 26, in exists
os.stat(path)
TypeError: stat() argument 1 must be encoded string without null bytes, not str

Remainder of file ignored
Error(s):
Cannot load library /home/sn/SlicerCIP4-10-2/SlicerCIP4-10-2-Extensions/Chest_Imaging_Platform/lib/Slicer-4.10/qt-loadable-modules/libqSlicerAirwayInspectorModule.so: (libvtkSlicerAirwayInspectorModuleLogic.so: cannot open shared object file: No such file or directory)
Error(s):
Cannot load library /home/sn/SlicerCIP4-10-2/SlicerCIP4-10-2-Extensions/Chest_Imaging_Platform/lib/Slicer-4.10/qt-loadable-modules/libqSlicerParticlesDisplayModule.so: (libvtkSlicerParticlesDisplayModuleLogic.so: cannot open shared object file: No such file or directory)
Error(s):
Cannot load library /home/sn/SlicerCIP4-10-2/SlicerCIP4-10-2-Extensions/Chest_Imaging_Platform/lib/Slicer-4.10/qt-loadable-modules/libqSlicerRegionTypeModule.so: (libvtkSlicerRegionTypeModuleLogic.so: cannot open shared object file: No such file or directory)
Failed to import ._init: Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/lib/Slicer-4.10/qt-scripted-modules/SubjectHierarchyPlugins/init.py”, line 14, in
exec(importStr)
File “”, line 1, in
ImportError: No module named _init

Failed to import ._AbstractScriptedSubjectHierarchyPlugin: Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/lib/Slicer-4.10/qt-scripted-modules/SubjectHierarchyPlugins/init.py”, line 14, in
exec(importStr)
File “”, line 1, in
ImportError: No module named _AbstractScriptedSubjectHierarchyPlugin

Failed to import ._AnnotationsSubjectHierarchyPlugin: Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/lib/Slicer-4.10/qt-scripted-modules/SubjectHierarchyPlugins/init.py”, line 14, in
exec(importStr)
File “”, line 1, in
ImportError: No module named _AnnotationsSubjectHierarchyPlugin

Failed to import ._SegmentEditorSubjectHierarchyPlugin: Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/lib/Slicer-4.10/qt-scripted-modules/SubjectHierarchyPlugins/init.py”, line 14, in
exec(importStr)
File “”, line 1, in
ImportError: No module named _SegmentEditorSubjectHierarchyPlugin

Failed to import ._SegmentStatisticsSubjectHierarchyPlugin: Traceback (most recent call last):
File “/home/sn/SlicerCIP4-10-2/lib/Slicer-4.10/qt-scripted-modules/SubjectHierarchyPlugins/init.py”, line 14, in
exec(importStr)
File “”, line 1, in
ImportError: No module named _SegmentStatisticsSubjectHierarchyPlugin

Switch to module: “Welcome”
Switch to module: “”
Switch to module: “”

Although I get error messages mentioned above, but Slicer is opened.
Why do I get the error? Do these errors affect performance of “Chest Imaging Platform” module in 3DSlicer? What can I do to avoid/solve this error?

Please help me.
Thanks a lot.
Shahrokh

Hmm, looks like an issue with the packaging of the customized app. I tried it and most things seem to work anyway.

I’d suggest using the nightly, but unfortunately the extension is broken. I’ve submitted a pull request.

1 Like

Dear Steve
At now, I install Chest_Imaging_Platform extension in Slicer-4.8.1. I do not get any error message.

Thanks a lot.
Shahrokh

1 Like

@pieper’s fix went through and so CIP is available in most recent Slicer-4.11. Please use this version, as it would help us discover and fix any potential issues before the new release.