错误请参见如下贴图,请问该如何解决?
Dobot Magician python demo 运行错误
C:\Users\outan\Downloads\dobot\DobotDemoV2.0\DobotDemoForPython>python --version
Python 3.5.2
⇒3.5.2的python,还是出现了同样的问题呀。
C:\Users\outan\Downloads\dobot\DobotDemoV2.0\DobotDemoForPython>python DobotControl.py
Traceback (most recent call last):
File “DobotControl.py”, line 4, in
api = dType.load()
File “C:\Users\outan\Downloads\dobot\DobotDemoV2.0\DobotDemoForPython\DobotDllType.py”, line 423, in load
return cdll.DobotDll
File “C:\Users\outan\AppData\Local\Programs\Python\Python35\lib\ctypes_init_.py”, line 417, in getattr
dll = self.dlltype(name)
File "C:\Users\outan\AppData\Local\Programs\Python\Python35\lib\ctypes_init.py", line 347, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application.
Hello dennis!
I cant read chinese. But from code i think im stuck with the same problem as you. Did you find the solution?
Thanks
Install 32-bit Python. I was using 64-bit and got the error, once I installed 32-bit Python, it worked.
i am using 32 bit python 3.5. still the same issue.
The following is my error.
can anyone suggest me a solution.
Traceback (most recent call last):
File “C:\Programs\DobotControl.py”, line 10, in
api = dType.load()
File “C:\Programs\DobotDllType.py”, line 458, in load
return CDLL(“DobotDll.dll”, RTLD_GLOBAL)
File “C:\Users\Admin\AppData\Local\Programs\Python\Python35-32\lib\ctypes_init_.py”, line 347, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found