Bug 1702110

Summary: [abrt] recoll: find_cookie(): tokenize.py:405:find_cookie: File "<string>", line None
Product: [Fedora] Fedora Reporter: kxra
Component: recollAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: pbonzini, terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/23874e9fe97a01ff24bd810224a292c37d9d593b
Whiteboard: abrt_hash:463898153340056d233577fc7a032c48355127c7;VARIANT_ID=workstation;
Fixed In Version: recoll-1.25.15-1.fc28 recoll-1.25.15-1.fc30 recoll-1.25.15-1.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-07 04:49:55 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 kxra 2019-04-23 00:35:37 UTC
Version-Release number of selected component:
recoll-1.25.11-1.fc30

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 /usr/share/recoll/filters/rclpython /home/kyra/.local/lib/python2.7/site-packages/astroid/tests/testdata/python2/data/invalid_encoding.py
crash_function: find_cookie
exception_type: LookupError
executable:     /usr/share/recoll/filters/rclpython
interpreter:    python3-3.7.3-1.fc30.x86_64
kernel:         5.0.8-300.fc30.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
tokenize.py:405:find_cookie:  File "<string>", line None

Traceback (most recent call last):
  File "/usr/lib64/python3.7/tokenize.py", line 397, in find_cookie
    codec = lookup(encoding)
LookupError: unknown encoding: lala

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/recoll/filters/rclpython", line 258, in <module>
    colorize_file(filepath, out)
  File "/usr/share/recoll/filters/rclpython", line 239, in colorize_file
    Parser(source, out=outstream).format()
  File "/usr/share/recoll/filters/rclpython", line 155, in format
    for a,b,c,d,e in tokenize.tokenize(text.readline):
  File "/usr/lib64/python3.7/tokenize.py", line 481, in tokenize
    encoding, consumed = detect_encoding(readline)
  File "/usr/lib64/python3.7/tokenize.py", line 426, in detect_encoding
    encoding = find_cookie(first)
  File "/usr/lib64/python3.7/tokenize.py", line 405, in find_cookie
    raise SyntaxError(msg)
  File "<string>", line None
SyntaxError: unknown encoding: lala

Local variables in innermost frame:
line: b'# -*- coding: lala -*-'
line_string: '# -*- coding: lala -*-'
msg: 'unknown encoding: lala'
match: <re.Match object; span=(0, 18), match='# -*- coding: lala'>
encoding: 'lala'
bom_found: False
filename: None

Comment 1 kxra 2019-04-23 00:35:39 UTC
Created attachment 1557309 [details]
File: backtrace

Comment 2 kxra 2019-04-23 00:35:40 UTC
Created attachment 1557310 [details]
File: cgroup

Comment 3 kxra 2019-04-23 00:35:40 UTC
Created attachment 1557311 [details]
File: cpuinfo

Comment 4 kxra 2019-04-23 00:35:41 UTC
Created attachment 1557312 [details]
File: environ

Comment 5 kxra 2019-04-23 00:35:42 UTC
Created attachment 1557313 [details]
File: mountinfo

Comment 6 kxra 2019-04-23 00:35:42 UTC
Created attachment 1557314 [details]
File: namespaces

Comment 7 kxra 2019-04-23 00:35:43 UTC
Created attachment 1557315 [details]
File: open_fds

Comment 8 Fedora Update System 2019-04-28 18:03:14 UTC
recoll-1.25.15-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7abe176067

Comment 9 Fedora Update System 2019-04-28 18:03:20 UTC
recoll-1.25.15-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a4787f16d2

Comment 10 Fedora Update System 2019-04-28 18:03:27 UTC
recoll-1.25.15-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b3167666fa

Comment 11 Fedora Update System 2019-04-29 03:00:21 UTC
recoll-1.25.15-1.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-b3167666fa

Comment 12 Fedora Update System 2019-04-29 04:09:21 UTC
recoll-1.25.15-1.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-7abe176067

Comment 13 Fedora Update System 2019-04-29 17:40:39 UTC
recoll-1.25.15-1.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-a4787f16d2

Comment 14 Fedora Update System 2019-05-07 04:49:55 UTC
recoll-1.25.15-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2019-05-07 05:41:26 UTC
recoll-1.25.15-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2019-05-07 14:23:37 UTC
recoll-1.25.15-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.