nova-powervm tox pep8 fails for py3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-powervm |
Fix Released
|
Undecided
|
Matthew Edmonds |
Bug Description
I'm seeing the following error when I run `tox -re epep8` for nova-powervm (master) on a new Ubuntu 16.04.2 system:
Traceback (most recent call last):
File ".tox/pep8/
sys.
File "/home/
flake8_style = get_style_
File "/home/
styleguide = StyleGuide(
File "/home/
self.
File "/home/
options.
File "/home/
return sorted(checks)
TypeError: unorderable types: function() < function()
This appears to be specific to py3. If I change the tox.ini to make pep8 use py2.7, this error goes away.
Interestingly, nova is already forcing py2.7 for pep8 because py3 wasn't working for them [1]. The trace for the nova bug [2] looks different, but still...
[1] https:/
[2] https:/
I should mention that realpath `which python` returns /usr/bin/python2.7, so I have no idea why tox was using python3.5