Dobot integration with python 3.6.5


#1

Hello everyone,
Currently i am working on dobot magician to integrate with python, i am struggling to communicated python due to unavailability proper doc. or SOP (step by step ), i am getting continuous error like

File “C:\Users\SGK297689\AppData\Local\Continuum\anaconda3\lib\ctypes_init_.py”, line 348, in init
self._handle = _dlopen(self._name, mode)

OSError: [WinError 193] %1 is not a valid Win32 application

please help me how to solve this

  1. is dobot dll is comaptavle for python 3.6.5 (64 bit running on windows 7 )
  2. Where to add dlls file in python location.

we need urgent reply on this


#2

Hi ,
You can find the dll file for x64 windows in Dobot Demo v2.0 . https://www.dobot.cc/downloadcenter.html?sub_cat=72#sub-download

DobotDllType.py has a function written for loading the dll file.
See demo1.py inside DobotDemoForPython to see how to control dobot magician using python.
I am using python 3.6 in linux ubuntu 18.04 . So I am guessing it should work for windows too.


#3

hello,

thank you so much for your valuable reply, i fixed this issue by installing 32 bit python 3.5 in windows and its working fine. i think it may give problem for 64 bit OS as per my test results