Bug 1266386 - [abrt] python-flake8: pep8.py:1328:check_logical:TypeError: 'NoneType' object has no attribute '__getitem__'
[abrt] python-flake8: pep8.py:1328:check_logical:TypeError: 'NoneType' object...
Status: CLOSED INSUFFICIENT_DATA
Product: Fedora
Classification: Fedora
Component: python-flake8 (Show other bugs)
22
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Matthias Runge
Fedora Extras Quality Assurance
https://retrace.fedoraproject.org/faf...
abrt_hash:7e334e8dfb3e7f5e96edba25322...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-25 03:24 EDT by Yajo
Modified: 2015-09-29 03:21 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-29 03:21:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: backtrace (983 bytes, text/plain)
2015-09-25 03:24 EDT, Yajo
no flags Details
File: environ (1.32 KB, text/plain)
2015-09-25 03:24 EDT, Yajo
no flags Details

  None (edit)
Description Yajo 2015-09-25 03:24:05 EDT
Version-Release number of selected component:
python-flake8-2.2.5-1.fc22

Additional info:
reporter:       libreport-2.6.2
cmdline:        /usr/bin/python2 /usr/bin/flake8 --max-complexity 10 -
dso_list:       python-pep8-1.5.7-1.fc22.noarch
executable:     /usr/bin/flake8
kernel:         4.1.6-200.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
pep8.py:1328:check_logical:TypeError: 'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):
  File "/usr/bin/flake8", line 9, in <module>
    load_entry_point('flake8==2.2.5', 'console_scripts', 'flake8')()
  File "/usr/lib/python2.7/site-packages/flake8/main.py", line 32, in main
    report = flake8_style.check_files()
  File "/usr/lib/python2.7/site-packages/pep8.py", line 1672, in check_files
    runner(path)
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 96, in input_file
    return fchecker.check_all(expected=expected, line_offset=line_offset)
  File "/usr/lib/python2.7/site-packages/pep8.py", line 1456, in check_all
    self.check_logical()
  File "/usr/lib/python2.7/site-packages/pep8.py", line 1328, in check_logical
    (start_row, start_col) = mapping[0][1]
TypeError: 'NoneType' object has no attribute '__getitem__'

Local variables in innermost frame:
self: <pep8.Checker object at 0x7fd9ecedf790>
mapping: None
Comment 1 Yajo 2015-09-25 03:24:08 EDT
Created attachment 1076921 [details]
File: backtrace
Comment 2 Yajo 2015-09-25 03:24:10 EDT
Created attachment 1076922 [details]
File: environ
Comment 3 Matthias Runge 2015-09-29 03:21:38 EDT
unfortunately, this report doesn't contain any info on how to reproduce the issue.
I can see, it throws a stack trace in pep8.

If you are able to reproduce and to share how to reproduce, feel free to open this bz again.

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