Dobot Magician python demo 运行错误


#1

错误请参见如下贴图,请问该如何解决?


#2

问题在更新python后解决了,谢谢 :-)


#3

我这边也出现同样的错误。 我的python 版本是2.7.13.
你的python版本是?


#4

magician二代机器用python 3.5试试


#5

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.


#6

你的Python是 32位还是64位的? 我的是32位的


#7

我用的是Windows10,所以从下面的网站中下载
Windows x86-64 executable installer

所以python是64位的。


#8

我们的基于32位的,那么你看看用32位的试一下


#9

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


#10

Install 32-bit Python. I was using 64-bit and got the error, once I installed 32-bit Python, it worked.


#11

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