OSError: The logical drive number is invalid

I am trying to save an image to the SD card on my OpenMV.
My PC sees the OpenMV as drive G:, but I get the error shown on the subject above.
What am I doing wrong?

Here is a code snippet:
img = sensor.snapshot()


Hi Ron,

From the camera’s perspective there’s only one drive (the internal flash or micro sd) and it doesn’t use letters. You can save the image as just “theImage.jpg” and it will save it to the internal flash or to micro sd if it’s connected.

Thanks “iabdalkader”. It works :slight_smile: