Bug 1685039

Summary: [abrt] gimp-layer-via-copy-cut: syntax(): layer-via-copy-cut.py:27:<module>: File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
Product: [Fedora] Fedora Reporter: Stefan Gies <stefan998>
Component: gimp-layer-via-copy-cutAssignee: Luya Tshimbalanga <luya_tfz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: a.thiaville, bugzilla.redhat.com, design-devel, gabriel.gass, illeete, jridky, karoly, luya_tfz, nphilipp, phracek, retroilya, truls, vikigoyal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/4bc70b5695de2d97fa5ae8821d964adaeb453cb2
Whiteboard: abrt_hash:1e42c4a1449f1f54b3a73620f07d27dffc7b2059;VARIANT_ID=workstation;
Fixed In Version: gimp-layer-via-copy-cut-1.6-14.fc30 gimp-layer-via-copy-cut-1.6-14.fc28 gimp-layer-via-copy-cut-1.6-14.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-27 21:26:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Stefan Gies 2019-03-04 08:45:19 UTC
Description of problem:
Gimp was loading to open a PDF-file and Audacious were running

Version-Release number of selected component:
gimp-layer-via-copy-cut-1.6-12.fc29

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py -gimp 13 12 -query 0
crash_function: syntax
exception_type: SyntaxError
executable:     /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py
interpreter:    python3-3.7.2-4.fc29.x86_64
kernel:         4.20.13-200.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
layer-via-copy-cut.py:27:<module>:  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224

Traceback (most recent call last):
  File "/usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py", line 27, in <module>
    from gimpfu import *
  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
    raise error, "procedure name contains illegal characters"
               ^
SyntaxError: invalid syntax

Local variables in innermost frame:
__name__: '__main__'
__doc__: None
__package__: None
__loader__: <_frozen_importlib_external.SourceFileLoader object at 0x7fc52ced1b38>
__spec__: None
__annotations__: {}
__builtins__: <module 'builtins' (built-in)>
__file__: '/usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py'
__cached__: None

Comment 1 Stefan Gies 2019-03-04 08:45:21 UTC
Created attachment 1540550 [details]
File: backtrace

Comment 2 Stefan Gies 2019-03-04 08:45:23 UTC
Created attachment 1540551 [details]
File: cgroup

Comment 3 Stefan Gies 2019-03-04 08:45:24 UTC
Created attachment 1540552 [details]
File: cpuinfo

Comment 4 Stefan Gies 2019-03-04 08:45:25 UTC
Created attachment 1540553 [details]
File: environ

Comment 5 Stefan Gies 2019-03-04 08:45:26 UTC
Created attachment 1540554 [details]
File: mountinfo

Comment 6 Stefan Gies 2019-03-04 08:45:27 UTC
Created attachment 1540555 [details]
File: namespaces

Comment 7 Stefan Gies 2019-03-04 08:45:28 UTC
Created attachment 1540556 [details]
File: open_fds

Comment 8 Truls Gulbrandsen 2019-03-07 19:32:32 UTC
Similar problem has been detected:

I installed Gimp, the various plugins, gutenprint with plugins, rawtherapee, then rebooted after a system update.

The errormessage occured when logging in to the updated system.

reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py -gimp 12 11 -query 0
crash_function: syntax
exception_type: SyntaxError
executable:     /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py
interpreter:    python3-3.7.2-4.fc29.x86_64
kernel:         4.20.13-200.fc29.x86_64
package:        gimp-layer-via-copy-cut-1.6-12.fc29
reason:         layer-via-copy-cut.py:27:<module>:  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Ben Spera 2019-03-11 07:41:52 UTC
*** Bug 1687277 has been marked as a duplicate of this bug. ***

Comment 10 vikram goyal 2019-03-19 07:21:46 UTC
Similar problem has been detected:

I opened a png file from /tmp folder owned by root - -rw-r--r--. 1 root   root   12277 Mar 19 12:44 tmprepc5no2.png
through selected application from right-click context menu through GIMP.

reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py -gimp 10 9 -query 0
crash_function: syntax
exception_type: SyntaxError
executable:     /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py
interpreter:    python3-3.7.2-4.fc29.x86_64
kernel:         4.20.15-200.fc29.x86_64
package:        gimp-layer-via-copy-cut-1.6-12.fc29
reason:         layer-via-copy-cut.py:27:<module>:  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
runlevel:       N 5
type:           Python3
uid:            1000

Comment 11 Penelope Fudd 2019-04-05 21:18:04 UTC
Similar problem has been detected:

I just ran 'gimp somefile.pdf', and this error popped up.

From looking at the code, /usr/lib64/gimp/2.0/python/gimpfu.py line 224 appears to be checking a procedure name, and 
rejects one for having a character that's other than letters, digits, underline or dash.

It would have been helpful if the error message could have printed what the procedure name was (possibly escaped)
and where it came from.

reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py -gimp 10 9 -query 0
crash_function: syntax
exception_type: SyntaxError
executable:     /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py
interpreter:    python3-3.7.2-5.fc29.x86_64
kernel:         5.0.5-200.fc29.x86_64
package:        gimp-layer-via-copy-cut-1.6-12.fc29
reason:         layer-via-copy-cut.py:27:<module>:  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
runlevel:       N 5
type:           Python3
uid:            1000

Comment 12 Luya Tshimbalanga 2019-04-07 08:15:34 UTC
Hello,
I reproduced the issue and it appears the problem is related to gimpfu.py found on Gimp. Assigning to Gimp.

Comment 13 Luya Tshimbalanga 2019-04-13 01:04:29 UTC
*** Bug 1698285 has been marked as a duplicate of this bug. ***

Comment 14 Josef Ridky 2019-04-15 12:01:56 UTC
The point of this issue is, that gimp-layer-via-copy-cut-1.6-12.fc29 uses as requirement Python3. But GIMP supports only Python2 notation, due GIMP isn't Python3 compatible yet.

Please, downgrade to gimp-layer-via-copy-cut-1.6-11.fc29, which is Python2 compatible.

Moving back to gimp-layer-via-copy-cut, due last build for f29 (1.6-13), that fixes this issue has failed.

Comment 15 Fedora Update System 2019-04-17 05:19:40 UTC
gimp-layer-via-copy-cut-1.6-14.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f11dd13864

Comment 16 Fedora Update System 2019-04-17 05:19:44 UTC
gimp-layer-via-copy-cut-1.6-14.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-74fcda91be

Comment 17 Fedora Update System 2019-04-17 05:19:48 UTC
gimp-layer-via-copy-cut-1.6-14.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ff2a67706

Comment 18 Fedora Update System 2019-04-17 14:24:10 UTC
gimp-layer-via-copy-cut-1.6-14.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f11dd13864

Comment 19 Fedora Update System 2019-04-18 21:04:48 UTC
gimp-layer-via-copy-cut-1.6-14.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-74fcda91be

Comment 20 Fedora Update System 2019-04-18 22:13:07 UTC
gimp-layer-via-copy-cut-1.6-14.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ff2a67706

Comment 21 retroilya@gmail.com 2019-04-23 20:57:12 UTC
Similar problem has been detected:

auto created

reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py -gimp 10 9 -query 0
crash_function: syntax
exception_type: SyntaxError
executable:     /usr/lib64/gimp/2.0/plug-ins/layer-via-copy-cut.py
interpreter:    python3-3.7.3-1.fc29.x86_64
kernel:         5.0.7-200.fc29.x86_64
package:        gimp-layer-via-copy-cut-1.6-12.fc29
reason:         layer-via-copy-cut.py:27:<module>:  File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 224
runlevel:       N 5
type:           Python3
uid:            1001

Comment 22 Luya Tshimbalanga 2019-04-27 17:50:26 UTC
Please use
sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-7ff2a67706

Comment 23 Fedora Update System 2019-04-27 21:26:09 UTC
gimp-layer-via-copy-cut-1.6-14.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2019-04-27 21:35:52 UTC
gimp-layer-via-copy-cut-1.6-14.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2019-04-27 23:10:34 UTC
gimp-layer-via-copy-cut-1.6-14.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 26 karesz 2019-08-02 21:01:09 UTC
*** Bug 1737154 has been marked as a duplicate of this bug. ***