[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize
Denny Weinberg added the comment: Any news here? 3.6.0 is also affected by this bug. -- ___ Python tracker <http://bugs.python.org/issue27400> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27625] "make install" fails when no zlib support available
Changes by Denny Weinberg : -- nosy: +Denny Weinberg ___ Python tracker <http://bugs.python.org/issue27625> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27516] Wrong initialization of python path with embeddable distribution
Changes by Denny Weinberg : -- nosy: +Denny Weinberg ___ Python tracker <http://bugs.python.org/issue27516> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize
Denny Weinberg added the comment: Just to be clear: The error happens after these steps: 1. Call strptime 2. Call cpython function "Py_Finalize" and "Py_Initialize" 3. Call strptime again Now we get the error "attribute of type 'NoneType' is not callable" -- ___ Python tracker <http://bugs.python.org/issue27400> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize
New submission from Denny Weinberg: After calling Py_Finalize and Py_Initialize I get the message "attribute of type 'NoneType' is not callable" on the datetime.strptime method. Example: from datetime import datetime s = '20160505 16' refdatim = datetime.strptime(s, '%Y%m%d %H%M%S') The first call works fine but it crashes after the re initialization. Workaround: from datetime import datetime s = '20160505 16' try: 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") -- components: Interpreter Core messages: 269379 nosy: Denny Weinberg, palm.kevin priority: normal severity: normal status: open title: Datetime NoneType after calling Py_Finalize and Py_Initialize type: behavior versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue27400> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Denny Weinberg added the comment: Ok, thank you very much for your comments. See Issue27400 -- ___ Python tracker <http://bugs.python.org/issue17408> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Denny Weinberg added the comment: Can we please reopen this issue? -- ___ Python tracker <http://bugs.python.org/issue17408> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Denny Weinberg added the comment: Hi, I think that the problem exists also in python 3.5.1 After calling Py_Finalize and Py_Initialize I get the message "attribute of type 'NoneType' is not callable" on the datetime.strptime method. Example: from datetime import datetime s = '20160505 16' refdatim = datetime.strptime(s, '%Y%m%d %H%M%S') The first call works find but it crashes after the re initialization. Workaround: from datetime import datetime s = '20160505 16' try: 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'))) Can anyone confirm this bug? Can you tell me if this will be fixed for python 3.5/3.6/...? All the other modules are working find after the re initialization but datetime.strptime. -- nosy: +Denny Weinberg versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue17408> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com