Hi, I am trying to get Slicer to build and run on my home computer.
It is debian testing with gcc 6 (unfortunately gcc 5 no longer offered).
Clean directory, disable SimpleITK, disable BRAINS,
ignore inevitible BRAINSCommon build failures. Slicer builds.
Got the following error when trying to run. Any ideas?
Thanks,
Greg
$ ./Slicer-build/Slicer
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/Python/slicer/slicerqt.py", line 6, in <module>
import vtk
File "/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/Wrapping/Python/vtk/__init__.py", line 41, in <module>
from .vtkCommonKit import *
File "/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/Wrapping/Python/vtk/vtkCommonKit.py", line 9, in <module>
from vtkCommonKitPython import *
ImportError: /home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkCommonKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/Python/slicer/slicerqt-with-tcl.py", line 42, in <module>
slicer.sliceWidgets = {}
NameError: name 'slicer' is not defined
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'getSlicerRCFileName' is not defined
Number of registered modules: 85
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/CompareVolumes.py", line 3, in <module>
from __main__ import vtk, qt, ctk, slicer
ImportError: cannot import name vtk
loadSourceAsModule - Failed to load file "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/CompareVolumes.py" as module "CompareVolumes" !
Fail to instantiate module "CompareVolumes"
error: [/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/./SlicerApp-real] exit abnormally - Report the problem.
gsharp@wormwood:~/build/slicer-4/Slicer-build$ rm -rf ~/.config/NA-MIC/
gsharp@wormwood:~/build/slicer-4/Slicer-build$ ./Slicer-build/Slicer
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/Python/slicer/slicerqt.py", line 6, in <module>
import vtk
File "/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/Wrapping/Python/vtk/__init__.py", line 41, in <module>
from .vtkCommonKit import *
File "/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/Wrapping/Python/vtk/vtkCommonKit.py", line 9, in <module>
from vtkCommonKitPython import *
ImportError: /home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkCommonKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/Python/slicer/slicerqt-with-tcl.py", line 42, in <module>
slicer.sliceWidgets = {}
NameError: name 'slicer' is not defined
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
/home/gsharp/build/slicer-4/Slicer-build/VTKv7-build/lib/./libvtkRenderingKitPython27D-7.1.so.1: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'getSlicerRCFileName' is not defined
Number of registered modules: 85
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/CompareVolumes.py", line 3, in <module>
from __main__ import vtk, qt, ctk, slicer
ImportError: cannot import name vtk
loadSourceAsModule - Failed to load file "/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/CompareVolumes.py" as module "CompareVolumes" !
Fail to instantiate module "CompareVolumes"
error: [/home/gsharp/build/slicer-4/Slicer-build/Slicer-build/bin/./SlicerApp-real] exit abnormally - Report the problem.