metadata is None? ¶
By: JasonMendoza2008 on April 2, 2024, 2:37 p.m.
I tried to upload the template docker and I have this error:
2024-04-02T14:34:31.236000+00:00 Traceback (most recent call last):
2024-04-02T14:34:31.236000+00:00 File "/opt/app/inference.py", line 97, in <module>
2024-04-02T14:34:31.236000+00:00 raise SystemExit(run())
2024-04-02T14:34:31.236000+00:00 File "/opt/app/inference.py", line 49, in run
2024-04-02T14:34:31.236000+00:00 description = xmltodict.parse(metadata)
2024-04-02T14:34:31.236000+00:00 File "/home/user/.local/lib/python3.10/site-packages/xmltodict.py", line 378, in parse
2024-04-02T14:34:31.236000+00:00 parser.Parse(xml_input, True)
2024-04-02T14:34:31.236000+00:00 TypeError: a bytes-like object is required, not 'NoneType'
It seems that: image_input, metadata = read_image( join(transmitted_light_path, input_file_name) )
returns a None object for metadata.
I would assume the template provided works, so maybe there is something wrong with the example image on the website? Is this normal? I ran it on Input 1 084 (.tiff)