← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 490937] Re: code using datetime.strptime() from datetime crashes client under CentOS/RHEL 5/Python 2.4

 

The V6 of openerp is designed for python 2.5 and above, we won't fix bug
related with python 2.4. And if the bug concern v5, please report the
bug using your publisher warranty

** Changed in: openobject-client
       Status: Triaged => Invalid

** Changed in: openobject-client
       Status: Invalid => Won't Fix

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/490937

Title:
  code using datetime.strptime() from datetime crashes client under CentOS/RHEL 5/Python 2.4

Status in OpenObject GTK Client:
  Won't Fix
Status in CentOS:
  New

Bug description:
  Since some 5.0.1+ version, widgets have been using default datetime for doing dates instead of mx.DateTime.

This leads to the following errors, crashing the client and even corrupting the database in some cases: 
 
AttributeError: type object 'datetime.datetime' has no attribute 'strptime'

Looking around in datetime.c it seems Python 2.4 does not have a strptime in datetime.

Either revert to mx.DateTime or drop compatibilty for Python 2.3+ (as referred to in the documentation). The latter would be severely dissapointing due to CentOS/RHEL 5 shipping with only Python 2.4.