Slicer 3D DICOM Import Issues with pydicom DICOM files

I ran the tool you suggested for the stripped down pydicom DICOM and it says:

jdp$ ./dcentvfy NewDICOM.dcm
Warning - Unrecognized SOP Class - - so cannot determine information entity of attributes within file <NewDICOM.dcm>

It seems because pydicom made this, the SOP isn’t recognized by the tool you suggested I use. I did have a slight error in the stripped down code with:
file_meta.MediaStorageSOPClassUID = pydicom.uid.generate_uid()
should have been:
file_meta.MediaStorageSOPClassUID = str(‘1.2.840.10008.5.1.4.1.1.7’)

  • but the error is happening after the correction (and the same issue is happening in slicer). Any other suggestions here as I’m at a loss at this point?