Dobot magician is not working with raspberry pi


We have a Raspberry 3 and we downloaded the precompiled DLL for Linux on Dobot’s website (Dobot Demo v2.0 and unfortunately, we cannot load the DLL for Linux (file .so) with the function dlopen or cdll.LoadLibrary() on Python. The error is :

OSError: cannot open shared object file: No such file or directory


Obvious first question. Does the .so (shared object) file reside in a directory on your path and have you looked at the permissions and compared them to other object files?


I didn’t manage to get the precompiled DLL working on my raspberry pi either. From what I remember I had a similar error. Instead I used this python library:


I have the same problem, but pydobot does not provide enough functionality for me.

I compiled the .so file on my Raspberry 3, it has the same permissions as other .so files and its directories are added to LD_LIBRARY_PATH and, but still the OSError occurs.

Has anyone some suggestions?


A colleague found a solution:

  • For Raspberry Pi 3, copy your files with preserved linkage into /usr/local/lib/ and make sure that /usr/local/lib/ is part of /etc/ or any included files
  • Run ‘sudo ldconfig -v’ and check if is included in the cache
  • with ‘ldd -d /usr/local/lib/’ you can check if there are any libraries missing
  • load you library with CDLL(“”) instead of cdll.LoadLibrary(“”)

If you wish to run the python demo script, you have to change in the LoadLibrary function as mentioned above.

LD_LIBRARY_PATH is completely unneccesary. We tested this solution on two Raspberry Pis with RaspbianOS and python 3.5.


Raspbian is 32bit system, while the precompiled linux so files are 64bit. How can you make it work?


You have to compile it yourself on the system you will be using it with.