pylint 1.7.1 needs a recent astroid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Global Requirements |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When following pylint version requirement change from 1.4.x to 1.7.1, the CI job running pylint for for networking-bagpipe project has the following error:
2017-06-05 12:50:10.651917 | Problem importing module classes.py: cannot import name InconsistentMro
2017-06-05 12:50:10.653986 | Traceback (most recent call last):
2017-06-05 12:50:10.654069 | File "/home/
2017-06-05 12:50:10.654104 | sys.exit(
2017-06-05 12:50:10.654148 | File "/home/
2017-06-05 12:50:10.654160 | Run(sys.argv[1:])
2017-06-05 12:50:10.654197 | File "/home/
2017-06-05 12:50:10.654210 | linter.
2017-06-05 12:50:10.654251 | File "/home/
2017-06-05 12:50:10.654264 | checkers.
2017-06-05 12:50:10.654309 | File "/home/
2017-06-05 12:50:10.654325 | register_
2017-06-05 12:50:10.654364 | File "/home/
2017-06-05 12:50:10.654397 | module = modutils.
2017-06-05 12:50:10.654438 | File "/home/
2017-06-05 12:50:10.654456 | return load_module_
2017-06-05 12:50:10.654495 | File "/home/
2017-06-05 12:50:10.654514 | module = imp.load_
2017-06-05 12:50:10.654552 | File "/home/
2017-06-05 12:50:10.654565 | from pylint.checkers import utils
2017-06-05 12:50:10.654602 | File "/home/
2017-06-05 12:50:10.654616 | astroid.DictComp, astroid.
2017-06-05 12:50:10.654633 | AttributeError: 'module' object has no attribute 'GeneratorExp'
2017-06-05 12:50:10.667214 | ERROR: InvocationError: '/home/
It seems that pylint 1.7.1 requires a recent-enough astroid (with the GeneratorExp attribute), which
the current requirement files prevent from getting:
global-
upper-constrain
The GeneratorExp attribute was introduced in 8abf328539e0e5f 1dbafe70b773bfe bd28afca77 and the first release with this commit is 1.5.0.
So I believe that global requirements should have the most recent astroid 1.5.x, which as of today is 1.5.3.