You are not logged in.

#1 2024-06-18 01:38:08

mg0
Member
Registered: 2024-06-18
Posts: 1

GIMP still using python2 in 2024?

When I installed GIMP and several extensions via "yay gimp", I noticed a significant number of python2 packages being installed. Hasn't python2 been deprecated for years? Is it safe to use these packages?

Offline

#2 2024-06-18 02:22:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,360
Website

Re: GIMP still using python2 in 2024?

Then clearly you are not using arch linux.

1. There's no reason to use 'yay' to install a repo package as it'd just be passed to pacman
2. Pacman could not possibly install python2 packages as they do not exist in our repos.

So is it safe to use those packages? Which ones? And which distro packaged them for you?  You would have to ask on that distro's forums.

If you really think you are actually using arch linux, then please post the full command and output in code tags, and also post the content of your pacman.conf and mirrorlist.

EDIT: while I still have my suspicions, it's been highlighted below that careless use of yay on an arch system could result in installing an python2 package from the AUR.  So if you are using arch, get rid of yay immediately.

Last edited by Trilby (2024-06-18 15:57:07)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-06-18 07:11:04

seth
Member
Registered: 2012-09-03
Posts: 63,338

Re: GIMP still using python2 in 2024?

https://aur.archlinux.org/packages/python2-gimp is in the AUR because there're still some old 3rd party gimp scripts written in python2 around.
This has nothing to do with gimp or arch - if you want to execute python2 code, you'll need python2 - but neither gimp itself nor arch somehow "use" it.

It's also one of the main reasons why pacman wrapping AUR helpers like yay have a bad reputation: they blend between the repos and the (completely unvetted) AUR and open questions like this because you're not even realizing what's going on.
Luckily the solution to that problem is rather simple and straight forward:

pacman -Rs yay

Offline

#4 2024-06-18 11:57:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,360
Website

Re: GIMP still using python2 in 2024?

But even `yay gimp` wouldn't install that as it "should" (ducks and covers) just pass that on to pacman to install gimp from the repos.

As absurd as yay can be I still couldn't believe it could find a match for a target in the main repos, ignore that, and then go install some completely different package from the AUR.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-06-18 12:05:14

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,105
Website

Re: GIMP still using python2 in 2024?

Trilby wrote:

But even `yay gimp` wouldn't install that as it "should" (ducks and covers) just pass that on to pacman to install gimp from the repos.

Well yay in this case just installs what the user tells it to since yay <arg> seems to be a mix of aur package search and pacman -Ss output. yay -S would just get the repo variant.
So whatever OP selected there probably brought in python2 stuff.

OP: If you actually just want to install gimp you would do a "pacman -S gimp".


$ yay gimp
116 aur/perl-alien-gimp 0.10-1 (+0 0.00) (Orphaned) 
    Encapsulate install info for GIMP
115 aur/slos-gimpainter 20220429-1 (+0 0.00) 
    A brush package for GIMP 2.10.20 or Later
114 aur/cups-print-to-programme 0.3-2 (+1 0.00) 
    Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp.
113 aur/xcftools-git 1.0.7.r18.196f517-1 (+1 0.00) 
    Command line tools for extracting images and information from GIMP XCF files (Git version).
112 aur/xsane-gimp-git 0.999.r89.gfee5f42-1 (+2 0.00) 
    XSane Gimp plugin. Git version.
111 aur/xsane-git 0.999.r89.gfee5f42-1 (+2 0.00) 
    A GTK-based X11 frontend for SANE and plugin for Gimp. Git version.
110 aur/mingw-w64-potrace 1.16-1 (+0 0.00) (Orphaned) 
    Utility for tracing a bitmap (input: PBM,PGM,PPM,BMP; output: EPS,PS,PDF,SVG,DXF,PGM,Gimppath,XFig) (mingw-w64)
109 aur/svg2ggr 2012-5 (+5 0.00) 
    Extract gradients from svg files and save them to Gimp gradient files (ggr).
108 aur/abr2gbr 1.0.2-2 (+8 0.00) 
    Converts PhotoShop .ABR and Paint Shop Pro .JBR brushes to GIMP .GBR.
107 aur/gimp3-plugin-resynthesizer-git 2.0.3.r90.gdee6711-1 (+0 0.00) 
    Suite of gimp plugins for texture synthesis (like heal-selection), ported to GIMP 3. Git-Version
106 aur/gimp-plugin-place-layer-into-selection 1.0-2 (+3 0.00) 
    Place a layer in a rectangular selection area.
105 aur/gimp-plugin-scale-layer-to-image-size 1.4-2 (+3 0.00) 
    Scales the contents of the layer, or layer group, to image size.
104 aur/gimp-plugin-wavelet-denoise 0.3.1-5 (+1 0.00) (Orphaned) 
    Tool to reduce noise in each channel of an image separately
103 aur/gimp-plugin-texturize-git r35.a14af5b-1 (+0 0.00) (Out-of-date: 2023-11-24) 
    Generates large textures from a small sample
102 aur/gimp-plugin-fourier-git 0.4.4.r0.g35e2cfe-1 (+0 0.00) (Orphaned) 
    Fourier plugin for GIMP
101 aur/pinta-gtk3-git r2618.6d26a525-1 (+2 0.00) 
    Drawing/editing program modeled after Paint.NET. It's goal is to provide a simplified alternative to GIMP for casual users
100 aur/gimp-script-luminosity-masks 2-2 (+3 0.00) 
    Generate a full set of Light, Dark, and Midtone masks as channels for your image
99 aur/gimp-plugin-duplicate-to-another-image 1.1-2 (+6 0.00) 
    Duplicate layer, layer with mask, or layer group from one image to another.
98 aur/gnome-xcf-thumbnailer 1.0-10 (+10 0.00) 
    GNOME thumbnailer for GIMP XCF files.
97 aur/gimp-plugin-imgur-git r12.369a75e-1 (+1 0.00) (Orphaned) 
    A very simple gimp plugin to upload the current image anonymously to imgur.
96 aur/lib32-gimp 2.10.36-3 (+6 0.00) (Orphaned) 
    GNU Image Manipulation Program (32-bit)
95 aur/gimp-plugin-create-layer-mask-from 1.0-2 (+6 0.00) 
    Create layer mask from another layer mask.
94 aur/gimp-plugin-make-anaglyph 1-1 (+2 0.00) 
    Gimp plugin to create stereoscopic 3D anaglyph photos from a stereo pair
93 aur/gimp-plugin-layers-to-divs 0.1-1 (+2 0.00) 
    Gimp plugin to create html divs from gimp layers
92 aur/gimp-script-divide-scanned-images 2.2F-6 (+6 0.00) 
    GIMP Scheme (.scm) script for splitting separate sub-images from a composite image that has a uniform background. Creates a new image from each; will call the \'deskew\' plugin on each image (if it is installed).
91 aur/xapp-gimp-thumbnailer 1.2.4-1 (+5 0.28) 
    GIMP thumbnailer
90 aur/gimp-plugin-fblur 3.2.6-6 (+0 0.00) (Orphaned) 
    Makes out of focus with luminosity and depth
89 aur/python2-gimp 2.10.38-1 (+20 0.51) 
    Python 2 plugins support for GIMP
88 aur/gimp-plugin-satequalizer 0.9.2-1 (+5 0.00) (Out-of-date: 2024-01-14) 
    Saturation equalizer. 6-bands equalizer, brightness adjustment, auto white calibration and more.
87 aur/gimp-plugin-akkana-git r73.6ac8a1a-1 (+4 0.00) 
    A collection of GIMP scripts and plug-ins by Akkana Peck.
86 aur/gimp-plugin-gmic-git 2.9.8.r13.g2885531.gimp.2.0-1 (+3 0.00) (Out-of-date: 2024-03-19) 
    Front-end to the image processing framework G'MICQ
85 aur/gimp-plugin-layer-via-copy-cut 1.6-2 (+8 0.00) 
    Copy and move the selected area to a new layer in the same position.
84 aur/gimp-font-rendering-fix 1-1 (+5 0.00) (Out-of-date: 2023-12-19) 
    Fixes subpixel font rendering when using infinality fontconfig
83 aur/gimp-plugin-contrastfix 1.0-3 (+6 0.02) 
    Adds a Contrast Adjustment layer to your image to help fix contrast problems
82 aur/gimp-plugin-tategaki 1.2.1-2 (+0 0.00) 
    GIMP で縦書きをするためのプラグイン。
81 aur/gimp-plugin-image-reg 2.0.1-1 (+5 0.00) 
    Image registration plugin for the GIMP
80 aur/gimp-plugin-lqr-git v0.7.0.r14.g61d1f07-2 (+1 0.00) 
    GIMP plugin providing Liquid Rescale
79 aur/gimp-palletes-davidrevoy 2-1 (+7 0.00) 
    Palettes for Gimp made by Davide Revoy
78 aur/gimp-plugin-deskew-git 1.1-4 (+6 0.00) 
    Auto straighten lines of text in scanned documents
77 aur/gimp-plugin-laso 1.0-2 (+2 0.00) 
    Selection tool using active contour models (aka snakes).
76 aur/gimp-plugin-lqr 0.7.2-3 (+2 0.00) (Orphaned) 
    Plugin for The GIMP providing Liquid Rescale
75 aur/gimp-develop-git 1:2.99.19.r352.f346b1783b-1 (+3 0.00) 
    GNU Image Manipulation Program (non-conflicting git version)
74 aur/gimp-plugin-normalmap 1.2.3-2 (+8 0.00) (Out-of-date: 2024-05-10) 
    A plugin for GIMP that aids in the authoring of tangent-space normal maps for use in per-pixel lighting applications.
73 aur/gimp-plugin-instagram-effects 0.1-3 (+13 0.00) 
    Collections of plug-ins who can recreate (as closely as possible) Instagram's effects
72 aur/pinta-git r3610.b79bd6a5-1 (+11 0.00) 
    Drawing/editing program modeled after Paint.NET. It's goal is to provide a simplified alternative to GIMP for casual users
71 aur/gimp-ofnuts-tools 1:20240416T073402Z-1 (+5 0.02) 
    Ofnuts' Gimp Tools
70 aur/gimp-plugin-mathmap 1.3.5-8 (+3 0.00) (Out-of-date: 2024-02-14) 
    A GIMP plug-in which allows distortion of images specified by mathematical formulae
69 aur/gimp-devel-noconflict 2.99.18-4 (+3 0.00) (Installed: 2.99.16-2)
    GNU Image Manipulation Program (Development version, doesn't conflict with gimp 2.0)
68 aur/gimp-plugin-export-layers 3.3.5-1 (+11 0.02) 
    GIMP plug-in that exports layers as separate images.
67 aur/gimp-refocus 0.9.0-5 (+1 0.00) (Orphaned) 
    A sharpen plugin for gimp using FIR Wiener filtering
66 aur/gimp-plugin-layerfx 20120412-2 (+10 0.00) 
    A GIMP plugin for layer effects (Layer->Layer Effects)
65 aur/gimp-calendar 1.0-1 (+4 0.00) 
    A GIMP script to create a simple calendar
64 aur/gimp-plugin-wavelet-sharpen 0.1.2-2 (+19 0.14) 
    Enhances apparent sharpness of an image by increasing contrast in high frequency space.
63 aur/gimp-voronoi 2.2-5 (+3 0.00) 
    A GIMP plug-in to create Voronoi patterns
62 aur/gimp-elsamuko-git r88.b401697-1 (+14 0.00) 
    Varoius Gimp scripts and plugins made by elsamuko
61 aur/gimp-plugin-resynthesizer 2.0.3-2 (+25 0.09) 
    Suite of gimp plugins for texture synthesis
60 aur/mprime 2:30.19.13-1 (+78 1.85) 
    A GIMPS, distributed computing project client, dedicated to finding Mersenne primes.
59 aur/gimp-plugin-id-photo 20180606-1 (+18 0.00) (Orphaned) 
    id photo for documents gimp plugin
58 aur/gimp-plugin-arrow 0.0.1-2 (+16 0.00) 
    easy drawing of arbitrary arrows into an image or a new layer
57 aur/gimp-plugin-beautify 0.5.3-1 (+21 0.00) 
    GIMP Beautify is a set of GIMP plug-ins for quickly and easily beautifying photos.
56 aur/mprime-bin 1:30.19.13-1 (+109 0.01) 
    A GIMPS, distributed computing project client, dedicated to finding Mersenne primes. Precompiled binary version.
55 aur/gimp-plugin-toy 1.0.4-3 (+14 0.00) 
    GIMP plug-in that creates a toy effect or tilt-shift miniature faking on a selected layer
54 aur/gimp-plugin-astronomy 0.10-1 (+19 0.00) 
    Gimp Astronomy Plugins
53 aur/gimp-plugin-refocusit 2.0.0-2 (+32 0.00) 
    Iterative refocus plug-in for GIMP
52 aur/gimp-brushbox 2.1-5 (+19 0.02) 
    Set of brushes, presets, dynamics made by GrindGod
51 aur/gimp-fix-ca 3.0.2-3 (+14 0.00) 
    A Gimp plugin for correcting chromatic aberration (CA)
50 aur/gimp-dds 3.0.1-6 (+4 0.00) 
    A plugin for the GIMP version 2.8. It allows you to load and save images in the Direct Draw Surface (DDS) format
49 aur/gimp-plugin-bimp 2.6-1 (+35 0.00) 
    Batch Image Manipulation Plugin for GIMP
48 aur/gimp-lensfun 0.2.4+9+gc5eaf97-1 (+20 0.00) (Out-of-date: 2024-02-27) 
    A Gimp plugin to correct lens distortion using the lensfun library and database
47 aur/gimp-plugin-dcamnoise2 0.64-8 (+67 0.01) (Orphaned) 
    Removes noise from images
46 aur/gimp-plugin-texturize 2.2-1 (+83 0.00) 
    Generates large textures from a small sample
45 aur/gimp-paint-studio 2.0-2 (+69 0.01) 
    Collection of brushes and accompanying tool presets intended to speed up repetitive tasks by avoiding the need to manually reset tool options after each change
44 aur/gimp-plugin-pandora 0.9.3-2 (+89 0.00) 
    A GIMP plug-in which helps in stitching together multiple images to make a panorama
43 aur/gimp-plugin-resynthesizer-git 2.0.3.r24.gecfc4e7-1 (+211 0.00) 
    Suite of gimp plugins for texture synthesis (like heal-selection). Git-Version
42 aur/gimp-plugin-saveforweb 0.29.3-3 (+124 0.00) (Orphaned) 
    Plugin to save optimized images for display on web pages
41 aur/gimp-plugin-registry 9.20180625-4 (+25 0.43) 
    Repository of optional extensions for GIMP
40 aur/gimp-gap 2.7-2 (+11 0.00) 
    Gimp Animation Package, gimp's plugin for animation
39 aur/gimp-fourier 0.4.3-6 (+65 0.02) 
    A GIMP plugin to do the fourier transform
38 aur/gimp-devel 2.99.18-5 (+41 0.10) 
    GNU Image Manipulation Program (Development version)
37 aur/gimp-extras 2.0.4-1 (+62 0.01) 
    The extra brushes and patterns from ubuntu
36 aur/gimp-git 2:2.99.19.r352.f346b1783b-1 (+115 0.49) (Out-of-date: 2024-06-16) 
    GNU Image Manipulation Program
35 custom/gimp-devel-noconflict-debug 2.99.16-2 (23.1 MiB 121.1 MiB) 
    Detached debugging symbols for gimp-devel-noconflict
34 extra/potrace 1.16-3 (90.5 KiB 190.2 KiB) (Installed)
    Utility for tracing a bitmap (input: PBM,PGM,PPM,BMP; output: EPS,PS,PDF,SVG,DXF,PGM,Gimppath,XFig)
33 extra/xsane-gimp 0.999-6 (273.4 KiB 799.4 KiB) 
    XSane Gimp plugin
32 extra/xsane 0.999-6 (1.6 MiB 4.8 MiB) 
    A GTK-based X11 frontend for SANE and plugin for Gimp.
31 extra/pinta 2.1.2-2 (1.9 MiB 8.7 MiB) (Installed)
    Drawing/editing program modeled after Paint.NET. It's goal is to provide a simplified alternative to GIMP for casual users
30 extra/gimp-help-zh_cn 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Chinese (simplified) help files for Gimp
29 extra/gimp-help-pt_br 2.10.34-1 (49.4 MiB 67.0 MiB) 
    Brazilian Portuguese help files for Gimp
28 extra/gimp-help-en_gb 2.10.34-1 (47.4 MiB 64.8 MiB) 
    English (United Kingdom) help files for Gimp
27 extra/gimp-plugin-gmic 3.4.0-1 (921.9 KiB 2.4 MiB) 
    Gimp plugin for the G'MIC image processing framework
26 extra/gimp-help-sl 2.10.34-1 (47.5 MiB 65.1 MiB) 
    Slovak help files for Gimp
25 extra/gimp-help-ja 2.10.34-1 (46.3 MiB 63.9 MiB) 
    Japanese help files for Gimp
24 extra/gimp-help-uk 2.10.34-1 (47.5 MiB 65.2 MiB) 
    Ukrainian help files for Gimp
23 extra/gimp-help-es 2.10.34-1 (47.9 MiB 65.5 MiB) 
    Spanish help files for Gimp
22 extra/gimp-help-cs 2.10.34-1 (47.3 MiB 64.8 MiB) 
    Czech help files for Gimp
21 extra/gimp-help-en 2.10.34-1 (47.5 MiB 65.0 MiB) 
    English help files for Gimp
20 extra/gimp-help-fa 2.10.34-1 (47.5 MiB 65.1 MiB) 
    Faroese (Persian) help files for Gimp
19 extra/gimp-help-ca 2.10.34-1 (48.1 MiB 65.6 MiB) 
    Catalan help files for Gimp
18 extra/gimp-help-fr 2.10.34-1 (49.6 MiB 67.2 MiB) 
    French help files for Gimp
17 extra/gimp-help-nl 2.10.34-1 (47.6 MiB 65.1 MiB) 
    Dutch help files for Gimp
16 extra/gimp-help-da 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Danish help files for Gimp
15 extra/gimp-help-hr 2.10.34-1 (47.5 MiB 65.1 MiB) 
    Croatian help files for Gimp
14 extra/gimp-help-ko 2.10.34-1 (47.9 MiB 65.4 MiB) 
    Korean help files for Gimp
13 extra/gimp-help-pt 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Portuguese help files for Gimp
12 extra/gimp-help-nn 2.10.34-1 (43.1 MiB 59.9 MiB) 
    Norwegian help files for Gimp
11 extra/gimp-help-hu 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Hungarian help files for Gimp
10 extra/gimp-help-sv 2.10.34-1 (47.5 MiB 65.3 MiB) 
    Swedish help files for Gimp
9 extra/gimp-help-it 2.10.34-1 (52.0 MiB 73.1 MiB) 
    Italian help files for Gimp
8 extra/gimp-help-ru 2.10.34-1 (47.7 MiB 66.5 MiB) 
    Russian help files for Gimp
7 extra/gimp-help-lt 2.10.34-1 (48.4 MiB 66.2 MiB) 
    Lithuanian help files for Gimp
6 extra/gimp-help-ro 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Romanian help files for Gimp
5 extra/gimp-help-fi 2.10.34-1 (47.5 MiB 65.0 MiB) 
    Finnish help files for Gimp
4 extra/gimp-help-de 2.10.34-1 (49.7 MiB 67.5 MiB) 
    German help files for Gimp
3 extra/gimp-help-el 2.10.34-1 (44.9 MiB 63.7 MiB) 
    Greek help files for Gimp
2 extra/gimp-nufraw 0.43.3-10 (851.5 KiB 5.7 MiB) (Installed)
    Converter for raw files; utility and GIMP plugin
1 extra/gimp 2.10.38-1 (20.0 MiB 112.7 MiB) (Installed)
    GNU Image Manipulation Program
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 

Last edited by gromit (2024-06-18 12:05:45)

Offline

#6 2024-06-18 15:48:37

seth
Member
Registered: 2012-09-03
Posts: 63,338

Re: GIMP still using python2 in 2024?

Trilby wrote:

But even `yay gimp` wouldn't install that as it "should" (ducks and covers) just pass that on to pacman to install gimp from the repos.

See, that's why I've got the video link on a textblock tongue
We've been there, https://bbs.archlinux.org/viewtopic.php … 2#p2171112

Yay's input handling makes even localectl look sane by comparism.

Offline

#7 2024-06-18 15:55:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,360
Website

Re: GIMP still using python2 in 2024?

*headdesk* my apologies, I can't believe it but I'm yet again surprised by just how foolish yay can be.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB