← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1881684] [NEW] GIMP Python Plugins Won't Run in Ubuntu 20.04

 

Public bug reported:

I'm using Ubuntu 20.04 and GIMP installed via apt, v. 2.10.18.

To reproduce the problem:

Install a python-based plugin in ~/.config/GIMP/2.10/plug-ins. In my
case, it was Export Layers (https://github.com/khalim19/gimp-plugin-
export-layers).

Run GIMP from Terminal and you see:

/usr/bin/env: ‘python’: No such file or directory
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error

There is no "Python-fu" menu item on the Filters menu in GIMP even with
a python-based plugin installed in ~/.config/GIMP/2.10/plug-ins, and
that folder listed in GIMP -> Preferences -> Folders -> Plugins.

What I expect to happen is to be able to run GIMP python-based plugins,
and to have the Python-fu menu item on the Filters menu when a python-
based plugin is installed.

The cause seems to be that 20.04 does not provide the package gimp-
python, which is not listed as a dependency or a "suggests" on the
package page for Focal (https://packages.ubuntu.com/focal/gimp) though
it is for Eoan.

I did find a workaround. Here are the steps:

sudo apt install python-cairo python-gobject-2
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gimp/gimp-python_2.10.8-2_amd64.deb
sudo dpkg -i python-gtk2_2.24.0-6_amd64.deb
sudo dpkg -i gimp-python_2.10.8-2_amd64.deb

Once I did that, GIMP started without any errors and Export Layers works
just fine.

** Affects: gimp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to gimp in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1881684

Title:
  GIMP Python Plugins Won't Run in Ubuntu 20.04

Status in gimp package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 20.04 and GIMP installed via apt, v. 2.10.18.

  To reproduce the problem:

  Install a python-based plugin in ~/.config/GIMP/2.10/plug-ins. In my
  case, it was Export Layers (https://github.com/khalim19/gimp-plugin-
  export-layers).

  Run GIMP from Terminal and you see:

  /usr/bin/env: ‘python’: No such file or directory
  gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error

  There is no "Python-fu" menu item on the Filters menu in GIMP even
  with a python-based plugin installed in ~/.config/GIMP/2.10/plug-ins,
  and that folder listed in GIMP -> Preferences -> Folders -> Plugins.

  What I expect to happen is to be able to run GIMP python-based
  plugins, and to have the Python-fu menu item on the Filters menu when
  a python-based plugin is installed.

  The cause seems to be that 20.04 does not provide the package gimp-
  python, which is not listed as a dependency or a "suggests" on the
  package page for Focal (https://packages.ubuntu.com/focal/gimp) though
  it is for Eoan.

  I did find a workaround. Here are the steps:

  sudo apt install python-cairo python-gobject-2
  wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
  wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gimp/gimp-python_2.10.8-2_amd64.deb
  sudo dpkg -i python-gtk2_2.24.0-6_amd64.deb
  sudo dpkg -i gimp-python_2.10.8-2_amd64.deb

  Once I did that, GIMP started without any errors and Export Layers
  works just fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/1881684/+subscriptions