Hi Lasso, thanks for your answer!
I changed the TemporaryDICOMDatabase
to DICOMUtils.TemporaryDICOMDatabase("db_temp")
and ensured that there is read/write access:
root@5afaf174a8f5:/# ls -la
total 92
drwxr-xr-x 1 root root 4096 Mar 27 07:51 .
drwxr-xr-x 1 root root 4096 Mar 27 07:51 ..
-rwxr-xr-x 1 root root 0 Mar 27 07:51 .dockerenv
drwxrwxrwx 1 root root 4096 Mar 26 12:27 Slicer
lrwxrwxrwx 1 root root 7 Feb 27 15:59 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 18 2022 boot
drwxrwxrwx 1 root root 4096 Mar 27 07:52 db_temp
drwxr-xr-x 5 root root 360 Mar 27 07:51 dev
-rw-rw-r-- 1 root root 1512 Mar 27 07:43 docker_slicer_test.py
drwxr-xr-x 1 root root 4096 Mar 27 07:51 etc
drwxr-xr-x 2 root root 4096 Apr 18 2022 home
lrwxrwxrwx 1 root root 7 Feb 27 15:59 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Feb 27 15:59 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 9 Feb 27 15:59 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 10 Feb 27 15:59 libx32 -> usr/libx32
drwxr-xr-x 2 root root 4096 Feb 27 15:59 media
drwxr-xr-x 2 root root 4096 Feb 27 15:59 mnt
drwxrwxrwx 2 root root 4096 Mar 27 07:51 niiout
drwxr-xr-x 2 root root 4096 Feb 27 15:59 opt
dr-xr-xr-x 808 root root 0 Mar 27 07:51 proc
drwx------ 1 root root 4096 Mar 27 07:51 root
drwxr-xr-x 1 root root 4096 Mar 26 12:26 run
lrwxrwxrwx 1 root root 8 Feb 27 15:59 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 Feb 27 15:59 srv
dr-xr-xr-x 13 root root 0 Mar 27 07:51 sys
drwxr-xr-x 3 root www-data 4096 Jan 23 12:45 test
drwxrwxrwt 1 root root 4096 Mar 27 07:51 tmp
drwxr-xr-x 1 root root 4096 Feb 27 15:59 usr
drwxr-xr-x 1 root root 4096 Feb 27 16:02 var
The output seems the same:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qSlicerMarkupsModulePrivate::addToolBar: no main window is available, toolbar is not added
qSlicerSequencesModulePrivate::addToolBar: no main window is available, toolbar is not added
"DICOM indexer has successfully inserted 3219 files [2.79s]"
"DICOM indexer has successfully processed 3219 files [4.03s]"
"DICOM indexer has updated display fields for 3219 files [0.44s]"
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x47aafd0)
Debug: Off
Modified Time: 67547
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x1b547b0)
Debug: Off
Modified Time: 67642
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x47a5a10)
Debug: Off
Modified Time: 67747
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x46fa190)
Debug: Off
Modified Time: 67853
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x3d1b530)
Debug: Off
Modified Time: 67958
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x4ac7440)
Debug: Off
Modified Time: 68064
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x47bb2b0)
Debug: Off
Modified Time: 68169
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x3d1b4e0)
Debug: Off
Modified Time: 68275
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x4af95b0)
Debug: Off
Modified Time: 68380
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x47c64b0)
Debug: Off
Modified Time: 68486
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x47c3570)
Debug: Off
Modified Time: 68591
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x47c3870)
Debug: Off
Modified Time: 68697
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x4a5fc80)
Debug: Off
Modified Time: 68802
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x4ac7440)
Debug: Off
Modified Time: 68908
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x1b547b0)
Debug: Off
Modified Time: 69013
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x47c39f0)
Debug: Off
Modified Time: 69119
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x4af90a0)
Debug: Off
Modified Time: 69224
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x4a98de0)
Debug: Off
Modified Time: 69330
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.sr does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderFile (0x468b410) returned failure for request: vtkInformation (0x5122610)
Debug: Off
Modified Time: 69435
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.sr does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderFile (0x3430330) returned failure for request: vtkInformation (0x4a57b90)
Debug: Off
Modified Time: 69541
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x468b410) returned failure for request: vtkInformation (0x4709a60)
Debug: Off
Modified Time: 69646
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x3430330) returned failure for request: vtkInformation (0x47c39f0)
Debug: Off
Modified Time: 69752
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries (0x468b410) returned failure for request: vtkInformation (0x3d1b4e0)
Debug: Off
Modified Time: 69857
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries (0x3430330) returned failure for request: vtkInformation (0x4a2f530)
Debug: Off
Modified Time: 69963
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderFile (0x468b410) returned failure for request: vtkInformation (0x4b2c1e0)
Debug: Off
Modified Time: 70068
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderFile (0x3430330) returned failure for request: vtkInformation (0x4af8c80)
Debug: Off
Modified Time: 70174
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.sr does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries (0x468b410) returned failure for request: vtkInformation (0x47c22d0)
Debug: Off
Modified Time: 70279
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/test/<name>.sr does not exist.
Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries (0x3430330) returned failure for request: vtkInformation (0x4a52ac0)
Debug: Off
Modified Time: 70385
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Found nodes: []
[2]+ Exit 1 Xvfb :99
How can I do that?
Yes, I renamed it to <name>
the real names are something like:
1.23.456789101112131415161718192021222324252/6272e829-3bb0-31e3-ba32-b33c3435dc3a/6.37.383940414243444546474849505152535455565.dcm
I have also tried the script on the SlicerDICOMTutorial data from https://spujol.github.io/SlicerDICOMTutorial/:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qSlicerMarkupsModulePrivate::addToolBar: no main window is available, toolbar is not added
qSlicerSequencesModulePrivate::addToolBar: no main window is available, toolbar is not added
E: DcmElement: CommandField (0000,0100) larger (828667202) than remaining bytes in file
Could not load "SlicerDICOMTutorialData/dataset1_TorsoCT/.DS_Store"
DCMTK says: I/O suspension or premature end of stream
Could not read DICOM file:SlicerDICOMTutorialData/dataset1_TorsoCT/.DS_Store
E: DcmElement: CommandField (0000,0100) larger (828667202) than remaining bytes in file
Could not load "SlicerDICOMTutorialData/dataset2_BreastMRI/.DS_Store"
DCMTK says: I/O suspension or premature end of stream
Could not read DICOM file:SlicerDICOMTutorialData/dataset2_BreastMRI/.DS_Store
"DICOM indexer has successfully inserted 1299 files [0.54s]"
"DICOM indexer has successfully processed 1301 files [0.77s]"
Failed to find patient with PatientsName= and PatientID=
"DICOM indexer has updated display fields for 1299 files [0.15s]"
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset1_TorsoCT/IM-0001-0291.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x7bd8a8c4c0a0) returned failure for request: vtkInformation (0x5dd1390)
Debug: Off
Modified Time: 67317
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset1_TorsoCT/IM-0001-0291.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5da74f0)
Debug: Off
Modified Time: 67412
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/DICOMLib/DICOMUtils.py", line 769, in getLoadablesFromFileLists
loadablesByPlugin[plugin] = plugin.examine(fileLists)
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/DICOMImageSequencePlugin.py", line 54, in examine
loadables += self.examineFiles(files)
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/DICOMImageSequencePlugin.py", line 173, in examineFiles
ds = dicom.read_file(cineMriInstanceNumberToFilenameIndex[next(iter(cineMriInstanceNumberToFilenameIndex))], stop_before_pixels=True)
File "/Slicer/Slicer-5.6.1-linux-amd64/lib/Python/lib/python3.9/site-packages/pydicom/filereader.py", line 1002, in dcmread
fp = open(fp, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/401.000000-STIR SENSE-35251/000018.dcm'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/301.000000-T2WTSE SENSE-80453/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x7bd8a8c4c0a0) returned failure for request: vtkInformation (0x5dc5650)
Debug: Off
Modified Time: 67688
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/301.000000-T2WTSE SENSE-80453/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5fbf760)
Debug: Off
Modified Time: 67794
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/401.000000-STIR SENSE-35251/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x7bd8a8c4c0a0) returned failure for request: vtkInformation (0x5c13b00)
Debug: Off
Modified Time: 67899
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/401.000000-STIR SENSE-35251/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x3156d50)
Debug: Off
Modified Time: 68005
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5ff9520) returned failure for request: vtkInformation (0x604d740)
Debug: Off
Modified Time: 68206
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5dbdc30)
Debug: Off
Modified Time: 68312
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x6088dd0)
Debug: Off
Modified Time: 68503
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5dbdb90)
Debug: Off
Modified Time: 68609
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x602b890)
Debug: Off
Modified Time: 68787
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x3156d50)
Debug: Off
Modified Time: 68893
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x5fffbc0)
Debug: Off
Modified Time: 69075
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x3156510)
Debug: Off
Modified Time: 69181
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x5fc0cc0)
Debug: Off
Modified Time: 69364
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5ff7b40)
Debug: Off
Modified Time: 69470
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x6273bc0)
Debug: Off
Modified Time: 69602
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x3156d50)
Debug: Off
Modified Time: 69708
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x5fc1100)
Debug: Off
Modified Time: 69853
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x3156510)
Debug: Off
Modified Time: 69959
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x6261050)
Debug: Off
Modified Time: 70100
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x5ff7b40)
Debug: Off
Modified Time: 70206
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x62630a0)
Debug: Off
Modified Time: 70347
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x6067c20)
Debug: Off
Modified Time: 70453
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5fc3270) returned failure for request: vtkInformation (0x60d6350)
Debug: Off
Modified Time: 70597
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
vtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /db_temp/SlicerDICOMTutorialData/dataset2_BreastMRI/11-11-2008-MRI BREAST BILATERAL WITH T WITHOUT CONTRAST-28651/801.000000-AX BLISSAUTO SENSE-06146/000000.dcm does not exist.
Algorithm vtkITKArchetypeImageSeriesScalarReader (0x5c47c30) returned failure for request: vtkInformation (0x6260650)
Debug: Off
Modified Time: 70703
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "/Slicer/Slicer-5.6.1-linux-amd64/bin/../lib/Slicer-5.6/qt-scripted-modules/MultiVolumeImporterPlugin.py", line 654, in load
parentTransformNode = frame.GetParentTransformNode()
AttributeError: 'NoneType' object has no attribute 'GetParentTransformNode'
Found nodes: ['vtkMRMLSequenceNode1', 'vtkMRMLSequenceNode2', 'vtkMRMLSequenceNode3', 'vtkMRMLSequenceNode4', 'vtkMRMLSequenceNode5']
Saving 801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_TriggerTime...
bool qSlicerCoreIOManager::saveNodes(qSlicerIO::IOFileType, const IOProperties&, vtkMRMLMessageCollection*, vtkMRMLScene*) error: No writer found to write file "niiout/801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_TriggerTime.nrrd" of type "SequenceFile"
Saving 801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_AcquisitionTime...
bool qSlicerCoreIOManager::saveNodes(qSlicerIO::IOFileType, const IOProperties&, vtkMRMLMessageCollection*, vtkMRMLScene*) error: No writer found to write file "niiout/801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_AcquisitionTime.nrrd" of type "SequenceFile"
Saving 801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_ContentTime...
bool qSlicerCoreIOManager::saveNodes(qSlicerIO::IOFileType, const IOProperties&, vtkMRMLMessageCollection*, vtkMRMLScene*) error: No writer found to write file "niiout/801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_ContentTime.nrrd" of type "SequenceFile"
Saving 801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_AcquisitionTime_1...
bool qSlicerCoreIOManager::saveNodes(qSlicerIO::IOFileType, const IOProperties&, vtkMRMLMessageCollection*, vtkMRMLScene*) error: No writer found to write file "niiout/801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_AcquisitionTime_1.nrrd" of type "SequenceFile"
Saving 801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_InstanceNumber...
bool qSlicerCoreIOManager::saveNodes(qSlicerIO::IOFileType, const IOProperties&, vtkMRMLMessageCollection*, vtkMRMLScene*) error: No writer found to write file "niiout/801_MR_AX_BLISS_AUTO_SENSE_-_10_frames_Volume_Sequence_by_InstanceNumber.nrrd" of type "SequenceFile"
It seems to at least find some nodes but it cant write them either. The output folder is drwxrwxrwx 2 root root 4096 Mar 27 07:51 niiout
My current dockerfile:
FROM ubuntu:22.04
# make apt/dpkg behave
ENV DEBIAN_FRONTEND=noninteractive
# Update + upgrade
RUN apt-get update && apt-get -y upgrade
# Slicer stuff
COPY Slicer.tar.gz .
RUN apt-get install -y libpulse-dev libnss3 libglu1-mesa
RUN apt-get install -y libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0
RUN apt-get install -y libxcb-shape0 libxcb-xinerama0 libxcb-xinerama0-dev
RUN apt-get install -y libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0 libxcb-xkb-dev libxkbcommon-x11-dev
RUN apt-get install -y libxdamage1
RUN apt-get install --reinstall libxcb-xinerama0 && apt-get -y autoremove && apt-get clean autoclean
# Qt5 dependencies for the user interface and development
RUN apt-get install -y qtmultimedia5-dev qttools5-dev libqt5xmlpatterns5-dev libqt5svg5-dev qtwebengine5-dev qtscript5-dev qtbase5-private-dev libqt5x11extras5-dev libxt-dev libqt5opengl5-dev
# Other essential packages for software development
RUN apt-get install -y libssl-dev libcurl4-openssl-dev
# Python for scripting within 3D Slicer
RUN apt-get install -y python3-dev python3-pip
# wget -O "Slicer.tar.gz" https://slicer-packages.kitware.com/api/v1/item/657813b183a3201b44d4e6f7/download &&
RUN mkdir Slicer && tar -xvzf Slicer.tar.gz -C Slicer && chmod -R 777 Slicer && rm Slicer.tar.gz
RUN apt-get install -y xvfb
# Script to test if there are errors
COPY docker_slicer_test.py .
COPY --chown=:www-data --chmod=755 test-1 test
COPY --chown=:www-data --chmod=755 SlicerDICOMTutorialData SlicerDICOMTutorialData
RUN mkdir db_temp && chmod -R a+rwx db_temp
RUN mkdir niiout && chmod -R a+rwx niiout
# Xvfb :99 & export DISPLAY=:99; ./Slicer/Slicer-5.6.1-linux-amd64/Slicer --no-main-window --python-script docker_slicer_test.py test niiout
# Xvfb :99 & export DISPLAY=:99; ./Slicer/Slicer-5.6.1-linux-amd64/Slicer --no-main-window --python-script docker_slicer_test.py SlicerDICOMTutorialData niiout
CMD ["sh"]
The docker_slicer_test.py script:
import argparse
import os
import uuid
parser = argparse.ArgumentParser(description="Convert DICOM series to compressed NIfTI format.")
parser.add_argument("inputDICOMDirectory", default="test", help="Path to the input directory containing DICOM files.")
parser.add_argument("outputDirectory", default="test_out",
help="Path to the directory where compressed NIfTI files will be saved.")
args = parser.parse_args()
dicomDataDir, outputDir = args.inputDICOMDirectory, args.outputDirectory
os.makedirs(outputDir, exist_ok=True)
import slicer
import re
temp_db = os.path.abspath("db_temp")
if not os.path.exists(temp_db):
print("Temp database does not exist")
exit()
try:
loadedNodeIDs = [] # this list will contain the list of all loaded node IDs
from DICOMLib import DICOMUtils
with DICOMUtils.TemporaryDICOMDatabase(temp_db) as db:
DICOMUtils.importDicom(dicomDataDir, db)
patientUIDs = db.patients()
for patientUID in patientUIDs:
loadedNodeIDs.extend(DICOMUtils.loadPatientByUID(patientUID))
print("Found nodes:", loadedNodeIDs)
for loadedNodeID in loadedNodeIDs:
node = slicer.mrmlScene.GetNodeByID(loadedNodeID)
safeFileName = re.sub(r'(?u)[^-\w.]', '', node.GetName().strip().replace(' ', '_'))
print(f"Saving {safeFileName}...")
slicer.util.saveNode(node, '{0}/{1}.nrrd'.format(outputDir, safeFileName))
except Exception as e:
print("Exception occurred:", e)
finally:
exit()
Thanks I will have a look!
Again thanks for the help!