It goes like this, and is really minor because it occurs in the final reporting of the total time spent:
File "bin/upgrade_openerp", line 52, in <module>
sys.exit(anybox.recipe.openerp.runtime.upgrade.upgrade('/srv/openerp/demosimon/zeproject/current_buildout/upgrade.py', 'run', '/srv/openerp/demosimon/zeproject/current_buildout/etc/openerp.cfg', '/srv/openerp/demosimon/zeproject/current_buildout'))
File "/srv/openerp/eggs/anybox.recipe.openerp-1.8.0-py2.6.egg/anybox/recipe/openerp/runtime/upgrade.py", line 135, in upgrade
ceil((datetime.utcnow() - start_time).total_seconds())
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
It goes like this, and is really minor because it occurs in the final reporting of the total time spent:
File "bin/upgrade_ openerp" , line 52, in <module> exit(anybox. recipe. openerp. runtime. upgrade. upgrade( '/srv/openerp/ demosimon/ zeproject/ current_ buildout/ upgrade. py', 'run', '/srv/openerp/ demosimon/ zeproject/ current_ buildout/ etc/openerp. cfg', '/srv/openerp/ demosimon/ zeproject/ current_ buildout' )) eggs/anybox. recipe. openerp- 1.8.0-py2. 6.egg/anybox/ recipe/ openerp/ runtime/ upgrade. py", line 135, in upgrade (datetime. utcnow( ) - start_time) .total_ seconds( )) timedelta' object has no attribute 'total_seconds'
sys.
File "/srv/openerp/
ceil(
AttributeError: 'datetime.
indeed, total_seconds is new in python 2.6 (see http:// docs.python. org/2/library/ datetime. html#datetime. timedelta. total_seconds)