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

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 … Read more

What can you do with COM/ActiveX in Python? [closed]

First you have to install the wonderful pywin32 module. It provides COM support. You need to run the makepy utility. It is located at C:\…\Python26\Lib\site-packages\win32com\client. On Vista, it must be ran with admin rights. This utility will show all available COM objects. You can find yours and it will generate a python wrapper for this … Read more

Symlinks on windows?

NTFS file system has junction points, I think you may use them instead, You can use python win32 API module for that e.g. import win32file win32file.CreateSymbolicLink(fileSrc, fileTarget, 1) If you do not want to rely on win32API module, you can always use ctypes and directly call CreateSymbolicLink win32 API e.g. import ctypes kdll = ctypes.windll.LoadLibrary(“kernel32.dll”) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)