i want to load dicom in chinese path, i change CTK source code,and set python defaultencoding to utf-8, now import chinese path is ok, examine is ok, but when click load button,some error:
Loading with imageIOName: GDCM
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file C:/Users/Dell/Desktop/e3d/数据CT/测试/IMG00282.dcm does not existAlgorithm vtkITKArchetypeImageSeriesScalarReader(000002024FFFD6A0) returned failure for request: vtkInformation (0000020255ECBE20)
Debug: Off
Modified Time: 339515
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
Could not read scalar volume using GDCM approach. Error is: FileNotFoundError
Loading with imageIOName: DCMTK
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file C:/Users/Dell/Desktop/e3d/数据CT/测试/IMG00282.dcm does not existAlgorithm vtkITKArchetypeImageSeriesScalarReader(000002024FFF6000) returned failure for request: vtkInformation (000002025EEA2080)
Debug: Off
Modified Time: 339605
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
Could not read scalar volume using DCMTK approach. Error is: FileNotFoundError
???:3: Body 1.0 CE???Scalar Volume
i found error in DICOMScalarVolumePlugin.py function loadFilesWithSeriesReader(self, imageIOName, files, name), so i print the files[0]:
C:/Users/Dell/Desktop/e3d/êy?YCT/2aê?/IMG00282.dcm
i don’t know what this is,
but i print DICOMWidgets.py function getFileListsForRole(self, uidArgument, role) the return fileLists, it’s get CTK dicomdatabase result,the path is:
u’C:/Users/Dell/Desktop/e3d/\u6570\u636eCT/\u6d4b\u8bd5/IMG00001.dcm’
it’s unicode
how can i do