I use 3D Slicer for registering SPECT images at different time points. However, the exported DICOM files of all series show different voxel sizes between Python code (which shows the voxel size as 1.95313, 1.95313, 1) and DICOM viewer tools such as Slicer, MicroDICOM, and ImageJ (which show the voxel size as 1.95313, 1.95313, 1.95313). However, when I use this code and DICOM viewer tool with original DICOM images, they show the voxel dimensions as 1.95313, 1.95313, 1.95313."
I see, OK. RT is for radiationntherapy export (export of segmentation as RT structure set, transform as spatial registration object, and associated images). It is not relevant for SPECT.
Note that the exported SPECT image may need some additional fields - check the generated files if they contain all required fields described in the DICOM standard for this information object type; or use David Clunie’s DICOM verifier.
I don’t see any error message that tells why export failed. Could you please provide the full application log as text (menu: help / report a bug, so not delete any lines from it, but if there are any details you dont want to ahare then replace them by *****).
You could also try first with Export to folder option disabled.