pylint does not work with Python 3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
astroid (Debian) |
Fix Released
|
Unknown
|
|||
astroid (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
pylint (Debian) |
Fix Released
|
Unknown
|
|||
pylint (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Unassigned |
Bug Description
In cosmic, Python 3.7 was added, but pylint does not work with it. Test case:
```
$ echo "print('test')" > test.py
$ # python3.7 -m pylint test.py
No config file found, using default configuration
Traceback (most recent call last):
File "/usr/lib/
res = next(generator)
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "/usr/lib/
pylint.
File "/usr/lib/
Run(
File "/usr/lib/
linter.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
walker.
File "/usr/lib/
cb(astroid)
File "/usr/lib/
self.
File "/usr/lib/
func = utils.safe_
File "/usr/lib/
next(inferit)
RuntimeError: generator raised StopIteration
```
tags: | added: cosmic rls-cc-incoming |
tags: | removed: rls-cc-incoming |
tags: | added: id-5b6c6dabdb4b64402e84f627 |
Changed in astroid (Debian): | |
status: | Unknown → Confirmed |
Changed in astroid (Ubuntu Cosmic): | |
status: | New → Fix Released |
Changed in pylint (Ubuntu Cosmic): | |
status: | New → Fix Released |
Changed in pylint (Debian): | |
status: | Unknown → Fix Released |
Changed in astroid (Debian): | |
status: | Confirmed → Fix Released |
The situation here is a little muddled because upstream has afaik decided to stop supporting Python 2. astroid needs an update, and the version of that that supports Python 3.7 definitely does not support Python 2 at all, so that will need to be split into two source packages. I can't quite tell if pylint (which needs an update separate to astroid) has followed the same path. If it has that will need a similar split too.