Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1685039 - [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
Summary: [abrt] gimp-layer-via-copy-cut: syntax(): layer-via-copy-cut.py:27:<module>: ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gimp-layer-via-copy-cut
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:1e42c4a1449f1f54b3a73620f07...
: 1698285 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 08:45 UTC by Stefan Gies
Modified: 2019-04-15 12:01 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
File: backtrace (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: cgroup (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: cpuinfo (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: environ (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: mountinfo (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: namespaces (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details
File: open_fds (deleted)
2019-03-04 08:45 UTC, Stefan Gies
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.