Using Python and name = dType.load() getting OSError: [WinError 193] %1 is not a valid Win32 application


#1

With a simple program I get an OSError: [WinError 193] %1 is not a valid Win32 application with the name = dType.load(), but only occurs in some of the programs that I have been testing code with. Why one and not the other??? What I found that made the difference is having from PyQt5 import QtCore, QtGui, QtWidgets eliminated the error. Why does that fix the OSError? The DobotDLL.dll should cover it’s self for PyQt or is this an error in the calling mechanism. Secondly, when using the dType.load() with different names does not mean that they are independent when setting up two different dobot units. The dType.load() uses the same handle and different address pointers yet only one COM port is used when addressing the two different dobot units thus only one dobot is commanded, the last one initialized. This issue is for the Dobot Magician.