This error occurs when using py2exe on a vista machine and trying to run the resulting EXE on an XP machine. In looking into this in more detail, it seems that the Vista machine run adds in an additional DLL file that is not needed (at least in my case) and this additional DLL is the cause of the error.

See http://www.thescripts. com/forum/thread730751.ht ml

I am using wxPython with pySerial. Then assembling everything...