flake8 crashed with AttributeError in __init__(): 'NoneType' object has no attribute 'filename'

Bug #1719566 reported by Andreas Brauchli
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-flake8 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

flake8 was not called intentially, possibly on a file that didn't exist anymore at the time of calling flake. Flake8 is invoked by my vim config, so if a script was using vim, this may have caused the crash.

In any case, flake8 could fail more gracefully.

ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: flake8 3.2.1-1
ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
Uname: Linux 4.13.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Sep 26 12:43:53 2017
ExecutablePath: /usr/bin/flake8
InstallationDate: Installed on 2017-05-30 (119 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
InterpreterPath: /usr/bin/python3.6
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/flake8 --max-line-length=120 /tmp/vwNu1Zo/0.py
Python3Details: /usr/bin/python3.6, Python 3.6.3rc1, python3-minimal, 3.6.2-1ubuntu2
PythonArgs: ['/usr/bin/flake8', '--max-line-length=120', '/tmp/vwNu1Zo/0.py']
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-1
SourcePackage: python-flake8
Title: flake8 crashed with AttributeError in __init__(): 'NoneType' object has no attribute 'filename'
UpgradeStatus: Upgraded to artful on 2017-09-25 (0 days ago)
UserGroups: dialout plugdev sudo wireshark

Revision history for this message
Andreas Brauchli (blk) wrote :
tags: removed: need-duplicate-check
Changed in python-flake8 (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
tags: removed: wayland-session
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-flake8 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.