This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Denny Weinberg
Recipients Denny Weinberg, palm.kevin
Date 2016-06-27.13:49:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After calling Py_Finalize and Py_Initialize I get the message "attribute of type 'NoneType' is not callable" on the datetime.strptime method.

from datetime import datetime
s = '20160505 160000'
refdatim = datetime.strptime(s, '%Y%m%d %H%M%S')

The first call works fine but it crashes after the re initialization.

from datetime import datetime
s = '20160505 160000'
    refdatim = datetime.strptime(s, '%Y%m%d %H%M%S')
except TypeError:
    import time
    refdatim = datetime.fromtimestamp(time.mktime(time.strptime(s, '%Y%m%d %H%M%S')))

Related Issue: Issue17408 ("second python execution fails when embedding")
Date User Action Args
2016-06-27 13:49:18Denny Weinbergsetrecipients: + Denny Weinberg, palm.kevin
2016-06-27 13:49:18Denny Weinbergsetmessageid: <>
2016-06-27 13:49:18Denny Weinberglinkissue27400 messages
2016-06-27 13:49:18Denny Weinbergcreate