GIMP-ML icon indicating copy to clipboard operation
GIMP-ML copied to clipboard

Getting exec format error for all plugins

Open michael-conrad opened this issue 4 years ago • 3 comments

Installed the plugin per instructions. Ran the install script. PIP installed packages w/o any issues.

  • OS Version: Ubuntu 20.10
  • GIMP Version: 2.10.18-1build2
~/git/GIMP-ML/gimp-plugins$ gimp
GIMP-Error: Unable to run plug-in "update.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/update.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/update.py” (Exec format error)

GIMP-Error: Unable to run plug-in "syncWeights.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/syncWeights.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/syncWeights.py” (Exec format error)

GIMP-Error: Unable to run plug-in "super_resolution.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/super_resolution.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/super_resolution.py” (Exec format error)

GIMP-Error: Unable to run plug-in "semseg.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/semseg.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/semseg.py” (Exec format error)

GIMP-Error: Unable to run plug-in "monodepth.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/monodepth.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/monodepth.py” (Exec format error)

GIMP-Error: Unable to run plug-in "kmeans.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/kmeans.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/kmeans.py” (Exec format error)

GIMP-Error: Unable to run plug-in "invert.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/invert.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/invert.py” (Exec format error)

GIMP-Error: Unable to run plug-in "interpolateframes.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/interpolateframes.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/interpolateframes.py” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "faceparse.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/faceparse.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/faceparse.py” (Exec format error)

GIMP-Error: Unable to run plug-in "facegen.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/facegen.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/facegen.py” (Exec format error)

GIMP-Error: Unable to run plug-in "enlighten.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/enlighten.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/enlighten.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deepmatting.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepmatting.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepmatting.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deepdenoise.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepdenoise.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepdenoise.py” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "deepcolor.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepcolor.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepcolor.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deblur.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deblur.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deblur.py” (Exec format error)

GIMP-Error: Unable to run plug-in "colorpalette.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/colorpalette.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/colorpalette.py” (Exec format error)

michael-conrad avatar Jan 27 '21 00:01 michael-conrad

Ok solved the "arcane" on my own... GIMP-ML and Gimp uses Python2 but InstallGimpML.sh assumes the command python2 get-pip.py works... instead it not works... The problem here, Ubuntu and some distro dropped support for pip2 because is almost dead and other reasons..

The workaround for now (and for me) is:

  • delete the "gimpenv" folder in cloned repository (GIMP-ML)
  • execute this command anywhere curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py && python2 ./get-pip.py
  • check if pip2 is correctly installed on system pip2 --version should return Python 2.7
  • run sudo apt install python2-minimal libpython2.7
  • then modify InstallGimp-ML.sh script, i've already done that here installGimpML-fix-pip2.sh

Hope this works! anyway GIMP-ML should be ported to python3 but i think is a lot of work for the devs...

00xBAD avatar Feb 03 '21 01:02 00xBAD

Hope this works! anyway GIMP-ML should be ported to python3 but i think is a lot of work for the devs...

Tried this... still getting "exec format error"...

michael-conrad avatar Feb 03 '21 21:02 michael-conrad

in debian 10 solved with

sudo apt install gimp-python

buttha avatar Mar 21 '21 08:03 buttha