Connecting and Controlling Dobot Magician Lite with Python


#1

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

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

(base) luke@Lukes-MBP-3 demo-magician-python-64-master % python3 DobotControl.py
Traceback (most recent call last):
File “DobotControl.py”, line 11, in
api = dType.load()
File “/Users/luke/Downloads/dobot_demo/demo-magician-python-64-master/DobotDllType.py”, line 593, in load
return CDLL("./libDobotDll.dylib", RTLD_GLOBAL)
File “/Users/luke/opt/anaconda3/lib/python3.8/ctypes/init.py”, 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


#2

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…

Cheers

Noel


#3

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