upgrade: error at the end of process with python 2.6

Bug #1244721 reported by Georges Racinet on 2013-10-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe

Bug Description

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'

indeed, total_seconds is new in python 2.7 (see http://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds)

Related branches

Georges Racinet (gracinet) wrote :

corrected wording (it is new in python 2.7, and not in python 2.6)

description: updated
Changed in anybox.recipe.openerp:
milestone: 1.8.2 → 1.8.3
Georges Racinet (gracinet) wrote :

Simple enough, but not high on the todo list

Changed in anybox.recipe.openerp:
milestone: 1.8.3 → 1.8.4
Georges Racinet (gracinet) wrote :

won't take any unnecessary risk before stable release (who cares really about py 2.6)

Changed in anybox.recipe.openerp:
milestone: 1.8.4 → 1.9.0
Georges Racinet (gracinet) wrote :

This one shouldn't pollute us any more

Changed in anybox.recipe.openerp:
milestone: 1.9.0 → 1.8.5
status: New → Fix Committed
Changed in anybox.recipe.openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers