Error “ValueError: can't format dates this early” on one PC, works on other

为君一笑 提交于 2019-12-04 22:13:39

Turns out the issue was in fact trivial and somewhat due to my lack of experience with python and misleading error message.

The COM object raw = win32com.client.Dispatch("MyLib.MyClass") is used to open proprietary files in a loop. To solve the issue one must "clean-up" the object before next iteration. This is done either by

del raw or raw = None.

That completely solves the issue. It has absolutely nothing to do with dates or date formating. So Peter Brittain was probably right that this file limit was reached.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!