[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Cool, and Nick also resolved it with the appropriate import. I'll close and if anyone still has a problem (on current python versions - 3.9+) then please create a new issue with up to date info. -- stage: -> resolved status: open -> closed _

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Erik Janssens
Erik Janssens added the comment: At least for us, the issue seems to be related to the MSVC runtime. We compiled python with mingw using the mingw runtime, and the issue was gone. On Tue, 2021-10-19 at 09:02 +, Irit Katriel wrote: > Irit Katriel added the comment: > It doesn't look like th

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: It doesn't look like there's anything we can do here on the python side. If nobody will object I will close this ticket. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2020-06-22 Thread Nick Canfield
Nick Canfield added the comment: I'm having trouble with the .ReceivedTime breaking the program when I compile the .py script to an .exe using auto-py-to-exe. Here's where the error occurs underneath this try: statement try: received_year = str(email.ReceivedTime)[0:4]

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @vijay may I suggest you try to investigate your issue in more detail : - does it depend on the Python version ? If so which versions work, which dont. - does the crash happen as well when using the REPL ? - if you use PyQt instead of pywin32, does it still

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @ronaldoussoren In my case it was not Outlook, it was a third party line of business application, but as in the case of the OP, as mentioned in the StackOverflow link, the crashing only happens using certain Python version. I'm not suggesting the issue of the

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: There's not enough information in the issue to be sure, but I'm inclined to say this is a 3th-party problem. To be sure someone will have to reproduce the problem in a debugger, or provide a stack trace of the crash. The initial message says there's a cras

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Vijay
Vijay added the comment: can someone please clarify, is it a pywin32 issue or python3.7 issue?. -- ___ Python tracker ___ ___ Pytho

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-06 Thread Erik Janssens
Erik Janssens added the comment: for what's it worth, I've observed similar crashes under these strange circumstances : - the crashes don't appear in python 3.4, but they do in 3.5 (maybe due to switch in msvc runtime) - the crashes do appear when run as script, the exact same commands in t

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This might help : https://github.com/mhammond/pywin32/issues Thanks -- Regards, Karthikeyan S -- ___ Python tracker ___

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-03 Thread Vijay
Vijay added the comment: Thanks for the inputs. i will check with pywin32 team. is there any pywin32 link to raise the case. please share if you know. -- ___ Python tracker __

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: win32com is part of pywin32, which is a 3th-party extension. Please check with that project first (if there is bug it is probably on that side). -- components: +Windows nosy: +paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware resolution:

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Vijay
Vijay added the comment: i have already added the script. try to run in the python3.7. python is getting crashed. -- ___ Python tracker ___ __

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a very similar SO question https://stackoverflow.com/questions/51885734/python-crashes-when-i-am-trying-to-access-any-date-related-fields-in-mailitem-co which points to an AttributeError. Is this a case where Python segfaults or there is s

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Vijay
New submission from Vijay : MailItem.SentOn or MailItem.ReceivedTime, Python crashes with windows showing "Python has stopped working" dialog window. What can be the cause of this issue? import win32com.client import os import datetime from datetime import timedelta outlook = win32com.client.D