#1 Le 16/04/2021, à 15:54
- mguer133
GIMP pb installation greffon en .py
bonjour à toutes.s,
j'essaie, en vain, d'activer un greffon en cours de développement (développé par Bjarne Winkler des fois que d'autres fassent la même démarche, fichier sur demande).
j'ai suivi la procédure ici.
et j'ai les messages d'erreur suivant :
lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gimp-2.0 -o '/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image/resize_image' '/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py' -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgegl-0.4 -lgegl-npd-0.4 -lm -Wl,--export-dynamic -lgmodule-2.0 -pthread -ljson-glib-1.0 -lbabl-0.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env python
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:3:3: error: invalid preprocessing directive #resize_image
3 | # resize_image.py
| ^~~~~~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:4:3: error: invalid preprocessing directive #last
4 | # last modified/tested by Bjarne Winkler [WeCaptureYourBusiness@gmail.com]
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:5:7: error: "-" is not a valid filename
5 | # 2021-04-11 on GIMP-2.10.22
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:6:2: error: invalid preprocessing directive #==
6 | #===============================================
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:7:3: error: invalid preprocessing directive #original
7 | # original by Bjarne Winkler 2021-03-24
| ^~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:8:3: error: invalid preprocessing directive #GIMP
8 | # GIMP Python plug-in to Resize the current image option to maintain H/W ratio
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:9:3: error: invalid preprocessing directive #requires
9 | # requires Python Scripting Support
| ^~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:10:2: error: invalid preprocessing directive #==
10 | #===============================================
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:11:3: error: invalid preprocessing directive #CHANGE
11 | # CHANGE LOG
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:12:10: error: "-" is not a valid filename
12 | # 2021-04-10
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:13:10: error: invalid preprocessing directive #Added
13 | # Added the CSV & INI User Edit function
| ^~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:14:10: error: "-" is not a valid filename
14 | # 2021-04-01
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:15:10: error: invalid preprocessing directive #Added
15 | # Added the INI class
| ^~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:16:2: error: invalid preprocessing directive #==
16 | #===============================================
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:17:3: error: invalid preprocessing directive #LICENSE
17 | # LICENSE
| ^~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:18:6: error: invalid preprocessing directive #This
18 | # This program is free software: you can redistribute it and/or modify
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:19:6: error: invalid preprocessing directive #it; did you mean #if?
19 | # it under the terms of the GNU General Public License as published by
| ^~
| if
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:20:6: error: invalid preprocessing directive #the
20 | # the Free Software Foundation, either version 3 of the License, or
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:21:6: error: invalid preprocessing directive #(
21 | # (at your option) any later version.
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:23:6: error: invalid preprocessing directive #This
23 | # This program is distributed in the hope that it will be useful,
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:24:6: error: invalid preprocessing directive #but
24 | # but WITHOUT ANY WARRANTY# without even the implied warranty of
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:25:6: error: invalid preprocessing directive #MERCHANTABILITY
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| ^~~~~~~~~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:26:6: error: invalid preprocessing directive #GNU
26 | # GNU General Public License for more details. See <http://www.gnu.org/licenses/>
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:27:2: error: invalid preprocessing directive #==
27 | #===============================================
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:29:1: error: unknown type name ‘import’
29 | import sys, os, subprocess, time, csv, webbrowser
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:30:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘from’
30 | from gimpfu import *
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:32:3: error: invalid preprocessing directive #Plug
32 | # Plug-In Constants
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:63:11: error: invalid preprocessing directive #Configure
63 | # Configure the Class
| ^~~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:74:7: error: invalid preprocessing directive #End
74 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:77:11: error: invalid preprocessing directive #Public
77 | # Public procedure to test if there is a INI file
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:81:11: error: invalid preprocessing directive #End
81 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:83:7: error: invalid preprocessing directive #End
83 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:86:11: error: invalid preprocessing directive #Public
86 | # Public procedure to create a new INI file using the datelist
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:87:11: error: invalid preprocessing directive #datelist
87 | # datelist [section,key,value,section,key,value,section,key,value.......]
| ^~~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:99:15: error: invalid preprocessing directive #End
99 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:102:15: error: invalid preprocessing directive #End
102 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:103:11: error: invalid preprocessing directive #End
103 | # End;
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:106:7: error: invalid preprocessing directive #End
106 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:109:11: error: invalid preprocessing directive #Public
109 | # Public procedure to read the INI file
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:114:15: error: invalid preprocessing directive #Test
114 | # Test for INI file
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:116:19: error: invalid preprocessing directive #INI
116 | # INI File found
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:117:19: error: invalid preprocessing directive #Open
117 | # Open the INI file
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:119:23: error: invalid preprocessing directive #Start
119 | # Start reading lines in the INI File
| ^~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:124:31: error: invalid preprocessing directive #Create
124 | # Create a list of INI file lines
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:126:27: error: invalid preprocessing directive #End
126 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:128:31: error: invalid preprocessing directive #Add
128 | # Add to the list of INI file lines
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:130:27: error: invalid preprocessing directive #End
130 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:132:23: error: invalid preprocessing directive #End
132 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:133:19: error: invalid preprocessing directive #End
133 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:136:15: error: invalid preprocessing directive #End
136 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:138:19: error: invalid preprocessing directive #Message
138 | # Message caller that INI file was not found
| ^~~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:141:15: error: invalid preprocessing directive #End
141 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:142:11: error: invalid preprocessing directive #End
142 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:144:15: error: invalid preprocessing directive #Dang
144 | # Dang something is not going right
| ^~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:149:11: error: invalid preprocessing directive #End
149 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:151:7: error: invalid preprocessing directive #End
151 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:154:11: error: invalid preprocessing directive #Public
154 | # Public procedure to write internal content to the INI file
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:155:24: error: missing binary operator before token "it"
155 | # if overwrite it true if ther is a current INI with that name it will be ower witten
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:156:16: warning: extra tokens at end of #else directive [-Wendif-labels]
156 | # else the filename.ini with be rename filename.bak and if a current bak file was found it would be deleted
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:163:19: error: invalid preprocessing directive #End
163 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:166:27: error: invalid preprocessing directive #we
166 | # we found an INI file with that name
| ^~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:168:31: error: invalid preprocessing directive #delete
168 | # delete it
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:170:27: error: invalid preprocessing directive #End
170 | # End
| ^~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:172:31: error: invalid preprocessing directive #rename
172 | # rename it
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:175:44: error: missing binary operator before token "delete"
175 | # if found delete it
| ^~~~~~
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:182:26: warning: missing terminating ' character
182 | # let's save the content in the INI file
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:479:47: warning: missing terminating ' character
479 | # We have an CSV file, now let's read it
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:652:6: warning: missing terminating ' character
652 | # let's do the INI stuff
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:656:42: warning: missing terminating ' character
656 | # We did not have an INI file, so let's create it
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:683:6: warning: missing terminating ' character
683 | # Let's read the INI file
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:805:49: warning: missing terminating ' character
805 | # before starting the GIMP stuff let's save the setting if altered
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:921:57: warning: missing terminating ' character
921 | # users file name have an ext so let's use that as File Type
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1065:29: warning: missing terminating ' character
1065 | # OK let's save this resized baby via a dummy save layer then delete after saving
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1113:33: warning: missing terminating ' character
1113 | # OK let's save this resized baby via a dummy save layer then delete after saving
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1143:33: warning: missing terminating ' character
1143 | # OK let's save this resized baby via a dummy save layer then delete after saving
| ^
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1121: error: unterminated #if
1121 | # if so delete it and clear the flag
|
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1098: error: unterminated #if
1098 | # if the Image Height is equal to or less than the requested Height.
|
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:1073: error: unterminated #if
1073 | # if so delete it and clear the flag
|
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:175: error: unterminated #if
175 | # if found delete it
|
/home/roulopa/.config/GIMP/2.10/plug-ins/resize_image.py:155: error: unterminated #else
155 | # if overwrite it true if ther is a current INI with that name it will be ower witten
|
roulopa@roulopa-ordi:~$
j'ai copié le greffon dans plusieurs répertoire en vain, j'ai même essayé de le mettre dans le répertoire des scripts.
une idée de ce qui cloche?
panasonic touhpad fz g1 et tougghbook cf 53
linux mint 64 bits
Hors ligne
#2 Le 16/04/2021, à 16:19
- Vobul
Re : GIMP pb installation greffon en .py
D'après les messages j'ai l'impression qu'il ne comprend pas que c'est un script python. En gros il essaie de compiler avec gcc un script python. Donc il y a clairement un problème de ce côté-là.
Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM
Hors ligne