ah, the traceback occurs only if python3-hacking package is installed. ** Description changed:
- python3-flake8 always returns AttributeError: 'Checker' object has no - attribute 'blank_before'. + If python3-hacking package is installed, python3-flake8 always returns + AttributeError: 'Checker' object has no attribute 'blank_before'. - $ cat foo.py + $ 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/python3.4/runpy.py", line 170, in _run_module_as_main - "__main__", mod_spec) - File "/usr/lib/python3.4/runpy.py", line 85, in _run_code - exec(code, run_globals) - File "/usr/lib/python3/dist-packages/flake8/__main__.py", line 4, in <module> - main() - File "/usr/lib/python3/dist-packages/flake8/main.py", line 32, in main - report = flake8_style.check_files() - File "/usr/lib/python3/dist-packages/pep8.py", line 1624, in check_files - runner(path) - File "/usr/lib/python3/dist-packages/flake8/engine.py", line 83, in input_file - return fchecker.check_all(expected=expected, line_offset=line_offset) - File "/usr/lib/python3/dist-packages/pep8.py", line 1393, in check_all - self.check_logical() - File "/usr/lib/python3/dist-packages/pep8.py", line 1327, in check_logical - for result in self.run_check(check, argument_names): - File "/usr/lib/python3/dist-packages/pep8.py", line 1256, in run_check - arguments.append(getattr(self, name)) + File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main + "__main__", mod_spec) + File "/usr/lib/python3.4/runpy.py", line 85, in _run_code + exec(code, run_globals) + File "/usr/lib/python3/dist-packages/flake8/__main__.py", line 4, in <module> + main() + File "/usr/lib/python3/dist-packages/flake8/main.py", line 32, in main + report = flake8_style.check_files() + File "/usr/lib/python3/dist-packages/pep8.py", line 1624, in check_files + runner(path) + File "/usr/lib/python3/dist-packages/flake8/engine.py", line 83, in input_file + return fchecker.check_all(expected=expected, line_offset=line_offset) + File "/usr/lib/python3/dist-packages/pep8.py", line 1393, in check_all + self.check_logical() + File "/usr/lib/python3/dist-packages/pep8.py", line 1327, in check_logical + for result in self.run_check(check, argument_names): + File "/usr/lib/python3/dist-packages/pep8.py", line 1256, in run_check + arguments.append(getattr(self, name)) AttributeError: 'Checker' object has no attribute 'blank_before' - ProblemType: Bug - DistroRelease: Ubuntu 15.04 + ProblemType: BugDistroRelease: Ubuntu 15.04 Package: python3-flake8 2.2.2-1ubuntu1 ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0 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 + InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150228)SourcePackage: python-flake8 UpgradeStatus: No upgrade log present (probably fresh install) ** Description changed: 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/python3.4/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.4/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3/dist-packages/flake8/__main__.py", line 4, in <module> main() File "/usr/lib/python3/dist-packages/flake8/main.py", line 32, in main report = flake8_style.check_files() File "/usr/lib/python3/dist-packages/pep8.py", line 1624, in check_files runner(path) File "/usr/lib/python3/dist-packages/flake8/engine.py", line 83, in input_file return fchecker.check_all(expected=expected, line_offset=line_offset) File "/usr/lib/python3/dist-packages/pep8.py", line 1393, in check_all self.check_logical() File "/usr/lib/python3/dist-packages/pep8.py", line 1327, in check_logical for result in self.run_check(check, argument_names): File "/usr/lib/python3/dist-packages/pep8.py", line 1256, in run_check arguments.append(getattr(self, name)) AttributeError: 'Checker' object has no attribute 'blank_before' - ProblemType: BugDistroRelease: Ubuntu 15.04 + ProblemType: Bug + DistroRelease: Ubuntu 15.04 Package: python3-flake8 2.2.2-1ubuntu1 ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0 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 + InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150228) + SourcePackage: python-flake8 UpgradeStatus: No upgrade log present (probably fresh install) ** Package changed: python-flake8 (Ubuntu) => python-hacking (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-hacking in Ubuntu. https://bugs.launchpad.net/bugs/1429521 Title: AttributeError: 'Checker' object has no attribute 'blank_before' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-hacking/+bug/1429521/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs