0
    image_eps = 'test.eps'
    im = Image.open(image_eps)
    fig = im.convert('RGBA')
raise OSError("Unable to locate Ghostscript on paths")
OSError: Unable to locate Ghostscript on paths

the error comes from here: EpslmagePlugin.py


    for binary in ("gswin32c", "gswin64c", "gs"):
        if shutil.which(binary) is not None:
            gs_windows_binary = binary
            break
    else:
        gs_windows_binary = False

shutil = module 'shutil' from 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py'

unfortunately i did not find a solution for the problem here or anywhere else.

what have I found and what have I done so far: stackoverflow enter image description here i added the Path C:\Program Files\gs\gs9.50\bin\ enter image description here

what I also don't quite understand is why pycharm gets the shutil from Microsoft Visual Studio.

Jongware
  • 22,200
  • 8
  • 54
  • 100
Illu
  • 31
  • 6

0 Answers0