Image uploading issue using admin API - Python

Hi,

I am trying to upload image using admin API, here is my code:

image

But I am getting the following error:
{“errors”:[{“message”:“Please select an image.”,“context”:null,“type”:“ValidationError”,“details”:null,“property”:null,“help”:null,“code”:null,“id”:“658e71a0-f7c7-11ed-a43a-35330461017c”,“ghostErrorCode”:null}]}

Any solutions would be appreciated.

I assume you’ve already looked at this?

I don’t know python well enough to debug your code, but the error is suggestive of a formatting/encoding issue? You’re sure the file exists at that path?