やってみる

アウトプットすべく己を導くためのブログ。その試行錯誤すらたれ流す。

GIMP python-fu で使うPythonを3にしようと試みたがダメだった

 Python2しか使えなかった。明日まででサポート終了するのに……。

情報取得

Python情報。

$ python3 -V
Python 3.7.3
$ python -V
Python 2.7.16
$ which python
/usr/bin/python
$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7  35  2019 /usr/bin/python -> python2
$ which python
/usr/bin/python
$ which python2
/usr/bin/python2
$ which python3
/usr/bin/python3

 pythonpython2を指す。python3を使いたくばpython3とせねばならない。

GIMP情報。

$ gimp --version
GIMP (GNU Image Manipulation Program) ver.2.10.8
gimp --verbose

ログ

Parsing '/etc/gimp/2.0/gimprc' for configured language.
Parsing '/home/pi/.config/GIMP/2.10/gimprc' for configured language.
No language property found.
INIT: gimp_load_config
Parsing '/home/pi/.config/GIMP/2.10/unitrc'
Parsing '/etc/gimp/2.0/gimprc'
Parsing '/home/pi/.config/GIMP/2.10/gimprc'
Adding icon theme 'Color' (/usr/share/gimp/2.0/icons/Color)
Adding icon theme 'Legacy' (/usr/share/gimp/2.0/icons/Legacy)
Adding icon theme 'Symbolic' (/usr/share/gimp/2.0/icons/Symbolic)
Adding icon theme 'Symbolic-Inverted' (/usr/share/gimp/2.0/icons/Symbolic-Inverted)
Loading icon theme 'Symbolic'
Adding theme 'Dark' (/usr/share/gimp/2.0/themes/Dark)
Adding theme 'Gray' (/usr/share/gimp/2.0/themes/Gray)
Adding theme 'Light' (/usr/share/gimp/2.0/themes/Light)
Adding theme 'System' (/usr/share/gimp/2.0/themes/System)
Writing '/home/pi/.config/GIMP/2.10/themerc'
Trying splash '/home/pi/.config/GIMP/2.10/gimp-splash.png' ... failed
Trying splash '/usr/share/gimp/2.0/images/gimp-splash.png' ... OK
INIT: gimp_initialize
INIT: gimp_real_initialize
Parsing '/usr/lib/gimp/2.0/interpreters/default.interp'
Parsing '/usr/lib/gimp/2.0/interpreters/pygimp.interp'
Parsing '/usr/lib/gimp/2.0/environ/pygimp.env'
Parsing '/usr/lib/gimp/2.0/environ/default.env'
INIT: gui_initialize_after_callback
INIT: gimp_restore
Parsing '/home/pi/.config/GIMP/2.10/parasiterc'
Loading 'brush factory' data
  Loading /usr/share/gimp/2.0/brushes/Basic/1-pixel.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Block-01.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Block-02.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Block-03.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Hardness-025.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Hardness-050.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Hardness-075.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Hardness-100.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/Star.vbr
  Loading /usr/share/gimp/2.0/brushes/Basic/pixel.gbr
  Loading /usr/share/gimp/2.0/brushes/Fun/GEGL-goat.gih
  Loading /usr/share/gimp/2.0/brushes/Fun/Wilber.gih
  Loading /usr/share/gimp/2.0/brushes/Fun/pepper.gbr
  Loading /usr/share/gimp/2.0/brushes/Legacy/confetti.gbr
  Loading /usr/share/gimp/2.0/brushes/Legacy/confetti.gih
  Loading /usr/share/gimp/2.0/brushes/Legacy/vine.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Acrylic-01.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Acrylic-02.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Acrylic-03.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Acrylic-04.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Acrylic-05.gih
  Loading /usr/share/gimp/2.0/brushes/Media/Bristles-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Media/Bristles-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Media/Bristles-03.gbr
  Loading /usr/share/gimp/2.0/brushes/Media/Oils-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Media/Oils-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Media/Oils-03.gbr
  Loading /usr/share/gimp/2.0/brushes/Sketch/Chalk-01.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Chalk-02.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Chalk-03.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Charcoal-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Sketch/Charcoal-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Sketch/Charcoal-03.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Pencil-01.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Pencil-02.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Pencil-03.gih
  Loading /usr/share/gimp/2.0/brushes/Sketch/Pencil-Scratch.gbr
  Loading /usr/share/gimp/2.0/brushes/Splatters/Grunge-01.gih
  Loading /usr/share/gimp/2.0/brushes/Splatters/Sparks-Hose.gih
  Loading /usr/share/gimp/2.0/brushes/Splatters/Splats-01.gih
  Loading /usr/share/gimp/2.0/brushes/Splatters/Splats-02.gih
  Loading /usr/share/gimp/2.0/brushes/Splatters/Sponge-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Splatters/Sponge-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Cell-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Cell-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Grass.gih
  Loading /usr/share/gimp/2.0/brushes/Texture/Hatch-Pen-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Smoke.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Stone-Work-01.gih
  Loading /usr/share/gimp/2.0/brushes/Texture/Texture-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Texture-02.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Texture-Hose-01.gih
  Loading /usr/share/gimp/2.0/brushes/Texture/Texture-Hose-02.gih
  Loading /usr/share/gimp/2.0/brushes/Texture/Texture-Hose-03.gih
  Loading /usr/share/gimp/2.0/brushes/Texture/Vegetation-01.gbr
  Loading /usr/share/gimp/2.0/brushes/Texture/Vegetation-02.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/10x10square.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/10x10squareBlur.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/20x20square.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/20x20squareBlur.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/5x5square.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/5x5squareBlur.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Calligraphic-Brush-0.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Calligraphic-Brush-1.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Calligraphic-Brush-2.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Calligraphic-Brush-3.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-1.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-11.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-13.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-15.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-17.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-19.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-3.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-5.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-7.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-9.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-11.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-13.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-15.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-17.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-19.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-3.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-5.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-7.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Circle-Fuzzy-9.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Diagonal-Star-11.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Diagonal-Star-17.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Diagonal-Star-25.vbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Grass1.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/SketchBrush-16.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/SketchBrush-32.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/SketchBrush-64.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/Structure.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/dunes.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/feltpen.gih
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/galaxy-big.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/galaxy.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/galaxy_small.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/pepper.gbr
  Loading /usr/share/gimp/2.0/brushes/gimp-obsolete-files/pixel.gbr
Loading 'dynamics factory' data
  Loading /usr/share/gimp/2.0/dynamics/Basic/Basic-Simple.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Dynamics-Random.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Negative-Size-Pressure.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Pen-Generic.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Pencil-Generic.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Pencil-Shader.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Pressure-Opacity.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic/Pressure-Size.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Basic-Dynamics.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Color-From-Gradient.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Dynamics-Off.gdyn
  Loading /usr/share/gimp/2.0/dynamics/FX/Confetti.gdyn
  Loading /usr/share/gimp/2.0/dynamics/FX/Perspective.gdyn
  Loading /usr/share/gimp/2.0/dynamics/FX/Speed_Size_Opacity.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Fade-Tapering.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Random-Color.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Tilt-Angle.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Track-Direction.gdyn
  Loading /usr/share/gimp/2.0/dynamics/Velocity-Tapering.gdyn
Loading 'mypaint brush factory' data
Loading 'pattern factory' data
  Loading /usr/share/gimp/2.0/patterns/Animal/leather.pat
  Loading /usr/share/gimp/2.0/patterns/Animal/leopard.pat
  Loading /usr/share/gimp/2.0/patterns/Fabric/burlap.pat
  Loading /usr/share/gimp/2.0/patterns/Food/choc_swirl.pat
  Loading /usr/share/gimp/2.0/patterns/Food/java.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/3dgreen.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/Stripes1px.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/Stripes2px.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/blue.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/bluegrid.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/bluesquares.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/blueweb.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/fibers.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/nops.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/pastel.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/qube1.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/recessed.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/redcube.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/sm_squares.pat
  Loading /usr/share/gimp/2.0/patterns/Legacy/warning.pat
  Loading /usr/share/gimp/2.0/patterns/Paper/crinklepaper.pat
  Loading /usr/share/gimp/2.0/patterns/Paper/paper.pat
  Loading /usr/share/gimp/2.0/patterns/Plant/leaves.pat
  Loading /usr/share/gimp/2.0/patterns/Sky/lightning.pat
  Loading /usr/share/gimp/2.0/patterns/Sky/sky.pat
  Loading /usr/share/gimp/2.0/patterns/Sky/starfield.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/Craters.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/Moonfoot.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/amethyst.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/brick.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/cracked.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/granite1.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/ground1.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/marble1.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/marble2.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/marble3.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/pink_marble.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/rock.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/slate.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/stone33.pat
  Loading /usr/share/gimp/2.0/patterns/Stone/terra.pat
  Loading /usr/share/gimp/2.0/patterns/Water/electric.pat
  Loading /usr/share/gimp/2.0/patterns/Water/ice.pat
  Loading /usr/share/gimp/2.0/patterns/Water/pool.pat
  Loading /usr/share/gimp/2.0/patterns/Water/rain.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/bark.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/burlwood.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/corkboard.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/parque1.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/parque2.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/parque3.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/pine.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/walnut.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/wood1.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/wood2.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/wood3.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/wood4.pat
  Loading /usr/share/gimp/2.0/patterns/Wood/wood5.pat
Loading 'palette factory' data
  Loading /usr/share/gimp/2.0/palettes/Bears.gpl
  Loading /usr/share/gimp/2.0/palettes/Bgold.gpl
  Loading /usr/share/gimp/2.0/palettes/Blues.gpl
  Loading /usr/share/gimp/2.0/palettes/Borders.gpl
  Loading /usr/share/gimp/2.0/palettes/Browns_And_Yellows.gpl
  Loading /usr/share/gimp/2.0/palettes/Caramel.gpl
  Loading /usr/share/gimp/2.0/palettes/Cascade.gpl
  Loading /usr/share/gimp/2.0/palettes/China.gpl
  Loading /usr/share/gimp/2.0/palettes/Coldfire.gpl
  Loading /usr/share/gimp/2.0/palettes/Cool_Colors.gpl
  Loading /usr/share/gimp/2.0/palettes/Cranes.gpl
  Loading /usr/share/gimp/2.0/palettes/Dark_pastels.gpl
  Loading /usr/share/gimp/2.0/palettes/Default.gpl
  Loading /usr/share/gimp/2.0/palettes/Ega.gpl
  Loading /usr/share/gimp/2.0/palettes/Firecode.gpl
  Loading /usr/share/gimp/2.0/palettes/Gold.gpl
  Loading /usr/share/gimp/2.0/palettes/GrayViolet.gpl
  Loading /usr/share/gimp/2.0/palettes/Grayblue.gpl
  Loading /usr/share/gimp/2.0/palettes/Grays.gpl
  Loading /usr/share/gimp/2.0/palettes/Greens.gpl
  Loading /usr/share/gimp/2.0/palettes/Hilite.gpl
  Loading /usr/share/gimp/2.0/palettes/Khaki.gpl
  Loading /usr/share/gimp/2.0/palettes/Lights.gpl
  Loading /usr/share/gimp/2.0/palettes/Muted.gpl
  Loading /usr/share/gimp/2.0/palettes/Named_Colors.gpl
  Loading /usr/share/gimp/2.0/palettes/News3.gpl
  Loading /usr/share/gimp/2.0/palettes/Op2.gpl
  Loading /usr/share/gimp/2.0/palettes/Paintjet.gpl
  Loading /usr/share/gimp/2.0/palettes/Pastels.gpl
  Loading /usr/share/gimp/2.0/palettes/Plasma.gpl
  Loading /usr/share/gimp/2.0/palettes/Reds.gpl
  Loading /usr/share/gimp/2.0/palettes/Reds_And_Purples.gpl
  Loading /usr/share/gimp/2.0/palettes/Royal.gpl
  Loading /usr/share/gimp/2.0/palettes/Tango.gpl
  Loading /usr/share/gimp/2.0/palettes/Topographic.gpl
  Loading /usr/share/gimp/2.0/palettes/Visibone.gpl
  Loading /usr/share/gimp/2.0/palettes/Visibone_2.gpl
  Loading /usr/share/gimp/2.0/palettes/Volcano.gpl
  Loading /usr/share/gimp/2.0/palettes/Warm_Colors.gpl
  Loading /usr/share/gimp/2.0/palettes/Web.gpl
Loading 'gradient factory' data
  Loading /usr/share/gimp/2.0/gradients/Abstract_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Abstract_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Abstract_3.ggr
  Loading /usr/share/gimp/2.0/gradients/Aneurism.ggr
  Loading /usr/share/gimp/2.0/gradients/Blinds.ggr
  Loading /usr/share/gimp/2.0/gradients/Blue_Green.ggr
  Loading /usr/share/gimp/2.0/gradients/Browns.ggr
  Loading /usr/share/gimp/2.0/gradients/Brushed_Aluminium.ggr
  Loading /usr/share/gimp/2.0/gradients/Burning_Paper.ggr
  Loading /usr/share/gimp/2.0/gradients/Burning_Transparency.ggr
  Loading /usr/share/gimp/2.0/gradients/CD.ggr
  Loading /usr/share/gimp/2.0/gradients/CD_Half.ggr
  Loading /usr/share/gimp/2.0/gradients/Caribbean_Blues.ggr
  Loading /usr/share/gimp/2.0/gradients/Coffee.ggr
  Loading /usr/share/gimp/2.0/gradients/Cold_Steel.ggr
  Loading /usr/share/gimp/2.0/gradients/Cold_Steel_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Crown_molding.ggr
  Loading /usr/share/gimp/2.0/gradients/Dark_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Deep_Sea.ggr
  Loading /usr/share/gimp/2.0/gradients/Default.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Glow_Angular_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Glow_Radial_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Glow_Radial_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Glow_Radial_3.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Glow_Radial_4.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Radial_101.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Radial_102.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Radial_103.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Rays_Radial_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Rays_Radial_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Rays_Size_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Flare_Sizefac_101.ggr
  Loading /usr/share/gimp/2.0/gradients/Four_bars.ggr
  Loading /usr/share/gimp/2.0/gradients/Full_saturation_spectrum_CCW.ggr
  Loading /usr/share/gimp/2.0/gradients/Full_saturation_spectrum_CW.ggr
  Loading /usr/share/gimp/2.0/gradients/Golden.ggr
  Loading /usr/share/gimp/2.0/gradients/Greens.ggr
  Loading /usr/share/gimp/2.0/gradients/Horizon_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Horizon_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Incandescent.ggr
  Loading /usr/share/gimp/2.0/gradients/Land_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Land_and_Sea.ggr
  Loading /usr/share/gimp/2.0/gradients/Metallic_Something.ggr
  Loading /usr/share/gimp/2.0/gradients/Nauseating_Headache.ggr
  Loading /usr/share/gimp/2.0/gradients/Neon_Cyan.ggr
  Loading /usr/share/gimp/2.0/gradients/Neon_Green.ggr
  Loading /usr/share/gimp/2.0/gradients/Neon_Yellow.ggr
  Loading /usr/share/gimp/2.0/gradients/Pastel_Rainbow.ggr
  Loading /usr/share/gimp/2.0/gradients/Pastels.ggr
  Loading /usr/share/gimp/2.0/gradients/Purples.ggr
  Loading /usr/share/gimp/2.0/gradients/Radial_Eyeball_Blue.ggr
  Loading /usr/share/gimp/2.0/gradients/Radial_Eyeball_Brown.ggr
  Loading /usr/share/gimp/2.0/gradients/Radial_Eyeball_Green.ggr
  Loading /usr/share/gimp/2.0/gradients/Radial_Glow_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Radial_Rainbow_Hoop.ggr
  Loading /usr/share/gimp/2.0/gradients/Rounded_edge.ggr
  Loading /usr/share/gimp/2.0/gradients/Shadows_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Shadows_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Shadows_3.ggr
  Loading /usr/share/gimp/2.0/gradients/Skyline.ggr
  Loading /usr/share/gimp/2.0/gradients/Skyline_polluted.ggr
  Loading /usr/share/gimp/2.0/gradients/Square_Wood_Frame.ggr
  Loading /usr/share/gimp/2.0/gradients/Sunrise.ggr
  Loading /usr/share/gimp/2.0/gradients/Three_bars_sin.ggr
  Loading /usr/share/gimp/2.0/gradients/Tropical_Colors.ggr
  Loading /usr/share/gimp/2.0/gradients/Tube_Red.ggr
  Loading /usr/share/gimp/2.0/gradients/Wood_1.ggr
  Loading /usr/share/gimp/2.0/gradients/Wood_2.ggr
  Loading /usr/share/gimp/2.0/gradients/Yellow_Contrast.ggr
  Loading /usr/share/gimp/2.0/gradients/Yellow_Orange.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/French_flag.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/French_flag_smooth.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/German_flag.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/German_flag_smooth.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/Mexican_flag.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/Mexican_flag_smooth.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/Romanian_flag.ggr
  Loading /usr/share/gimp/2.0/gradients/gimp-obsolete-files/Romanian_flag_smooth.ggr
Parsing '/home/pi/.config/GIMP/2.10/colorrc'
Loading 'font factory' data
Loading fonts
Loading 'tool preset factory' data
  Loading /usr/share/gimp/2.0/tool-presets/Crop/16_10.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/16_9.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/3_2-Landscape.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/3_2-Portrait.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/4_3-Landscape.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/4_3-Portrait.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Crop/Square.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Crop-16-9.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Crop-Composition.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/FX-Confetti.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/FX-Radial-Softlight.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Fill-Paper.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Glow-Lights.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Smooth-Clone.gtp
  Loading /usr/share/gimp/2.0/tool-presets/FX/Vignette.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Airbrush-Color-From-Gradient.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Airbrush.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Basic-Knife.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Basic-Round-Detail.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Basic-Round.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Bristles.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Eraser-Hard.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Noise.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Paintbrush-Color-From-Gradient.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Pencil-Color-From-Gradient.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Smudge-Rough.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Smudge-Soft.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Soft-Oil.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Splatters.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Structure.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Paint/Vegetal.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Selection/Circle-200px.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Selection/Feathered-Selection.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Blue-Pen.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Eraser-Soft.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Ink-Smooth.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Ink-Thin.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Pencil-Soft.gtp
  Loading /usr/share/gimp/2.0/tool-presets/Sketch/Pencil.gtp
Parsing '/home/pi/.config/GIMP/2.10/templaterc'
Parsing '/home/pi/.config/GIMP/2.10/modulerc'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-cmyk.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-cmyk.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-water.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-water.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-wheel.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-wheel.so'
Loading module '/usr/lib/gimp/2.0/modules/libcontroller-linux-input.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcontroller-linux-input.so'
Loading module '/usr/lib/gimp/2.0/modules/libcontroller-midi.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcontroller-midi.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-clip-warning.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-clip-warning.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-color-blind.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-color-blind.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-gamma.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-gamma.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-high-contrast.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-high-contrast.so'
INIT: gui_restore_callback
clipboard: writable pixbuf format: image/png
clipboard: writable pixbuf format: image/bmp
clipboard: writable pixbuf format: image/x-bmp
clipboard: writable pixbuf format: image/x-MS-bmp
clipboard: writable pixbuf format: image/x-icon
clipboard: writable pixbuf format: image/x-ico
clipboard: writable pixbuf format: image/x-win-bitmap
clipboard: writable pixbuf format: image/vnd.microsoft.icon
clipboard: writable pixbuf format: application/ico
clipboard: writable pixbuf format: image/ico
clipboard: writable pixbuf format: image/icon
clipboard: writable pixbuf format: text/ico
clipboard: writable pixbuf format: image/tiff
clipboard: writable pixbuf format: image/jpeg
Parsing '/home/pi/.config/GIMP/2.10/sessionrc'
Parsing '/home/pi/.config/GIMP/2.10/dockrc'
Parsing '/home/pi/.config/GIMP/2.10/toolrc'
Parsing '/home/pi/.config/GIMP/2.10/contextrc'
Parsing '/home/pi/.config/GIMP/2.10/internal-data/custom.ggr'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-rect-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-ellipse-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-free-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-fuzzy-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-by-color-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-iscissors-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-foreground-select-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-vector-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-color-picker-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-zoom-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-measure-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-move-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-align-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-crop-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-unified-transform-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-rotate-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-scale-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-shear-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-handle-transform-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-perspective-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-flip-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-cage-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-warp-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-text-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-bucket-fill-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-gradient-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-pencil-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-paintbrush-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-eraser-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-airbrush-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-ink-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-mypaint-brush-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-clone-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-heal-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-perspective-clone-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-convolve-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-smudge-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-dodge-burn-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-brightness-contrast-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-threshold-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-levels-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-curves-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-gegl-tool'
Parsing '/home/pi/.config/GIMP/2.10/tool-options/gimp-operation-tool'
INIT: gimp_real_restore
Parsing '/home/pi/.config/GIMP/2.10/pluginrc'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-rawtherapee/file-rawtherapee'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-darktable/file-darktable'
Initializing plug-in: '/usr/lib/gimp/2.0/plug-ins/file-rawtherapee/file-rawtherapee'
Initializing plug-in: '/usr/lib/gimp/2.0/plug-ins/file-darktable/file-darktable'
Writing '/home/pi/.config/GIMP/2.10/pluginrc'
Starting extension: 'extension-script-fu'
INIT: gui_restore_after_callback
Parsing '/home/pi/.config/GIMP/2.10/menurc'
Parsing '/home/pi/.config/GIMP/2.10/action-history'
Parsing '/home/pi/.config/GIMP/2.10/devicerc'
Parsing '/home/pi/.config/GIMP/2.10/controllerrc'
loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /image-menubar

 ログからpyを検索すると以下がヒット。それっぽい名前。

Parsing '/usr/lib/gimp/2.0/interpreters/pygimp.interp'
Parsing '/usr/lib/gimp/2.0/environ/pygimp.env'

/usr/lib/gimp/2.0/interpreters/pygimp.interp

確認

cd /usr/lib/gimp/2.0/interpreters
cat pygimp.interp
python=/usr/bin/python2.7
python2=/usr/bin/python2.7
/usr/bin/python=/usr/bin/python2.7
:Python:E::py::python2.7:

 Pythonのパスっぽい。2.73に書換すればできないかな?

書換

sudo cp pygimp.interp pygimp_backup.interp
sudo vim pygimp.interp
python=/usr/bin/python3
python2=/usr/bin/python3
/usr/bin/python=/usr/bin/python3
:Python:E::py::python3:

 むりやりPython3として認識させるつもりで。

 でも2.7のままだった。確認手順は以下のいずれか。

  • 前回のコード実行に出たログを見る
  • GIMPメニューFiliters,Python-fu,コンソールに出るバージョンを見る

 起動後、ファイルにも変更なし。2.7に戻されているようなこともない。一応ファイル事態は検出されているようだが。

$ gimp --verbose
...
Parsing '/usr/lib/gimp/2.0/interpreters/default.interp'
Parsing '/usr/lib/gimp/2.0/interpreters/pygimp_backup.interp'
Parsing '/usr/lib/gimp/2.0/interpreters/pygimp.interp'

 もとに戻しておこう。

rm pygimp.interp
mv pygimp_backup.interp pygimp.interp 

/usr/lib/gimp/2.0/environ/pygimp.env

cd /usr/lib/gimp/2.0/environ/
$ ls
default.env  pygimp.env
$ cat default.env 
# Example entry in files like these
# FOOPATH=/path/to/foo/stuff
$ cat pygimp.env 
: PYTHONPATH=${gimp_plug_in_dir}/python

 PYTHONPATHPythonがモジュールを探すディレクトリパスらしい。なら関係ないか。

環境変数

 python2を使っているなら、それを3に変えてやろう。

python=/usr/bin/python3 gimp --verbose
env python=/usr/bin/python3 gimp --verbose

 しかし、同様に2.7が使われた。

所感

 どうあってもPython2.7を使わねばならないらしい。もうサポート終了直前なんですけど……。ああ嫌だ絶対使いたくないのに……。

対象環境

$ uname -a
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux