AttributeError: 'Checker' object has no attribute 'blank_before'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
High
|
Unassigned | ||
pep8 (Debian) |
Fix Released
|
Unknown
|
|||
pep8 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
If python3-hacking package is installed, python3-flake8 always returns AttributeError: 'Checker' object has no attribute 'blank_before'.
$ cat foo.py
#!/usr/bin/python3
pass
$ python3 -m flake8 -vv foo.py
checking foo.py
pass
Traceback (most recent call last):
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "/usr/lib/
main()
File "/usr/lib/
report = flake8_
File "/usr/lib/
runner(path)
File "/usr/lib/
return fchecker.
File "/usr/lib/
self.
File "/usr/lib/
for result in self.run_
File "/usr/lib/
arguments.
AttributeError: 'Checker' object has no attribute 'blank_before'
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python3-flake8 2.2.2-1ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Mar 8 15:15:00 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-02-28 (7 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150228)
SourcePackage: python-flake8
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in hundredpapercuts: | |
status: | New → Confirmed |
Changed in python-hacking (Ubuntu): | |
importance: | Undecided → High |
Changed in python-flake8 (Ubuntu): | |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
importance: | Undecided → High |
affects: | python-flake8 (Ubuntu) → pep8 (Ubuntu) |
no longer affects: | python-hacking (Ubuntu) |
Changed in pep8 (Debian): | |
status: | Unknown → New |
Changed in pep8 (Debian): | |
status: | New → Fix Released |
Thanks for taking your time to report this issue and help making Ubuntu better.
I was not able to reproduce this issue when I tested on an up-to-date Vivid system:
$ python3 -m flake8 -vv foo.py
checking foo.py
pass
Looks like the underlying problem occurs when it calls pep8, which version of pep8 do you have installed?
$ apt-cache policy python3-flake8 no.archive. ubuntu. com/ubuntu/ vivid/main amd64 Packages dpkg/status
python3-flake8:
Installed: 2.2.2-1ubuntu1
Candidate: 2.2.2-1ubuntu1
Version table:
*** 2.2.2-1ubuntu1 0
500 http://
100 /var/lib/
$ apt-cache policy python3-pep8 no.archive. ubuntu. com/ubuntu/ vivid/main amd64 Packages dpkg/status
python3-pep8:
Installed: 1.5.7-2
Candidate: 1.5.7-2
Version table:
*** 1.5.7-2 0
500 http://
100 /var/lib/