"No imageIO registered" - error message in python ITK

python
(Sindhura C) #1

I just tried using ITK Python from the link below

I installed all requirements and i tried simulating the following code

 import itkConfig
 import itkExtras
 itkConfig.ProgressCallback = itkExtras.simple_progress_callback
 fileName = 'data/PacMan.png'
 reader = itk.ImageFileReader.New(FileName=fileName)
 print("reader's Output", reader.GetOutput())

The error message is
RuntimeError: No ImageIO is registered to handle the given file.

Please help me with this

(Matt McCormick) #2

Hi Sindhura,

Does the file ‘data/PacMan.png’ exist?

The error message is not very descriptive, but @fbudin has improve the error message in the upcoming ITK 5.0.0 release.