Pretext: I'm painfully aware that this package is no longer maintained. But we have no alternative and our only hope is to wait patiently for nipy/nibabel#977. I'm still reporting this bug here so it might be taken into consideration in the nibabel implementation.
For a 3D RGB image with shape [192, 256, 256, 3] the individual DICOM files (slices) have a shape of [256, 256, 3].
The method DcmMetaExtension.from_sequence currently can't handle a channel dimension.
It then fails at line 611 in dcmmeta.py:
if len(input_shape) > dim and input_shape[dim] != 1:
raise ValueError("The dim must be singular or not exist for the inputs.")
where input_shape is [256, 256, 3], len(input_shape) is 3 but dim is 2.