setup.py fails w/ TypeError: super(NovaLogger, self).warning(msg, *args, **kwargs)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Naveed Massjouni |
Bug Description
After commit 067eb74733d00d2
Traceback (most recent call last):
File "setup.py", line 104, in <module>
py_modules=[])
File "/usr/lib/
__requires(
File "/usr/lib/
__add_
File "/usr/lib/
if __external_
File "/usr/lib/
mod = __import__(module)
File "/usr/lib/
Deprecation
File "/tmp/tmp.
LOG.
File "/tmp/tmp.
super(
TypeError: super() argument 1 must be type, not classobj
dh_auto_build: python2.6 setup.py build --force returned exit code 1
make[1]: *** [override_
make[1]: Leaving directory `/tmp/tmp.
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
rake aborted!
Build packages failed!
Changed in nova: | |
status: | Fix Committed → Fix Released |
Looks like the issue here is that NovaLogger now extends Logger. In python 2.6 Logger extends Filterer which is an old style class that doesn't extend (object). If I edit /usr/lib/ python2. 6/logging/ __init_ _.py and make change Filterer to Filterer(object) it works fine.
So the issue here appears to be a python2.6 problem when using the latest nova code.