Connecting and Controlling Dobot Magician Lite with Python


I am trying to control my Dobot Magician Lite using Python.

I downloaded demo-magician-python-64-master and ran but recieved the following error:

(base) luke@Lukes-MBP-3 demo-magician-python-64-master % python3
Traceback (most recent call last):
File “”, line 11, in
api = dType.load()
File “/Users/luke/Downloads/dobot_demo/demo-magician-python-64-master/”, line 593, in load
return CDLL("./libDobotDll.dylib", RTLD_GLOBAL)
File “/Users/luke/opt/anaconda3/lib/python3.8/ctypes/”, line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(./libDobotDll.dylib, 10): image not found

Does anyone know how to fix the above error? Thanks


Hi I have yet to use python, but the two bits of info in your code are line the mention of line 593 and the error is image not found…

so the question you need to ask your self is what image is it looking for at line 593 and why can’t it find it?

You may find the image is not in the location it should be or the name is wrong.

Sorry I cannot be more helpful…




oh and sometimes those kind of errors could be in the line before or the line after…