Dobot-Linux interfacing using Python 2.7


#1

Hey
I realised that the .so files are for 32 bit Linux so I set up 32 bit ubuntu 16.04 but I am getting the following error:

Traceback (most recent call last):
File “DobotControl.py”, line 10, in
api = dType.load()
File “/home/dobot/Desktop/DobotDemoV2.0/DobotDemoForPython/DobotDllType.py”, line 459, in load
return cdll.loadLibrary(“libDobotDll.so”)
File “/usr/lib/python2.7/ctypes/init.py”, line 432, in getattr
dll = self._dlltype(name)
File “/usr/lib/python2.7/ctypes/init.py”, line 362, in init
self._handle = _dlopen(self._name, mode)
OSError: loadLibrary: cannot open shared object file: No such file or directory

I have linked the .so files to the correct path but this error still remains.
Can someone please help me out
Thanks in advance


#2

Is your dobot generation 1 or Magician? Magician should use python3.5 32-bit.


#3

i am using Dobot magician. I tried to run the code using python3.5 i still get same error


#4

I get this error:
Traceback (most recent call last):
File “DobotControl.py”, line 10, in
api = dType.load()
File “/home/dobot/Desktop/DobotDemoV2.0/DobotDemoForPython/DobotDllType.py”, line 457, in load
lib_dl = CDLL(“libDobotDll.so”)
File “/usr/lib/python3.5/ctypes/init.py”, line 347, in init
self._handle = _dlopen(self.name, mode)
OSError: /home/dobot/Desktop/DobotDemoV2.0/DobotDll/Precompiled/Linux/libQt5Network.so.5: undefined symbol: z_deflateInit


#5

anybody sorted this issue ?
i am having the same issue, if anybody have accomplished this, please respond


#6

Hi
You can try it, but as i know the .so file is support 64bit not 32bit in Linux.


export LD_LIBRARY_PATH="/path/to/sdk/lib"


#7

Did you solve this problem?
I have the exact same problem trying to run Python scripts from Linux machine to control Dobot.

How did you solve it?


#8

Hi gioargyr

The problem was solved by 1. change ubuntu to 64bit or 2. get the .so file for 32bit from dobot.

thanks.