Need help running python script on linux (arch 64 bit)


#1

I copied libDobotDll.so* into /usr/lib (and also to directory with python files), but still getting failure during library load:

File “DobotControl.py”, line 11, in
api = dType.load()
File “/home/asyrov/dobot/sdk/DobotDemoForPython/DobotDemoForPython/DobotDllType.py”, line 462, in load
return cdll.loadLibrary(“libDobotDll.so”)
File “/usr/lib/python3.6/ctypes/init.py”, line 418, in getattr
dll = self._dlltype(name)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: loadLibrary: cannot open shared object file: No such file or directory

Can anyone please help me how to resolve?

Thanks a lot in advance,


#2

Still waiting for customer support to resolve the issue. Promised source files are missing!

Here is what company declares:
https://www.dobot.cc/downloadcenter/dobot-magician.html?sub_cat=72#sub-download
“This package includes Dobot Dll files(win 32&64), Dll source code, precompiled Dll for Linux and several kinds of Demo”

Now, “Dll source code” is missing, while included in the price of the device (for me).

Please fix the issue and include files you promised!
Thanks you very much in advance,


#3

I received requested sources. Thank you dobot team for the great product and prompt support!


#4

Hi @asyrov and dobot team,

I have a couple of follow-ups. I’m trying to run DobotControl.py from my 64-bit Ubuntu:

  1. How were you able to get the 64-bit version of libDobotDll.so?? We you able to run DobotControl.py?
  2. The source code seems to be provided with the latest version of the DobotDemoV2.0.zip, but how do we compile it? What do we get as the output? There is no documentation provided with the zip file

Thanks a lot!

Best regards,
Adithya


#5

My system is Arch Linux 64 bit. It should be similar to Ubuntu 64, except that Arch has usually more up-to-date packages (for instance my gcc is now 7.2.1 and yours is probably lower). I think this may be important because Dobot library has dependency on QT which may also be of different versions.

To your question: (1) Yes I was able to run DobotControl.py from 64 bit version of python 3.6 on my Arch.

(2) DobotDemoV2.0.zip does not contain sources for library (it has prebuild libraries, but not sources, at least I could not find them). I would recommend if you cannot run provided libraries contact support through e-mail and ask them to send you sources, so that you can build them locally on your specific system.

Hope it helps.


#6

Hi,
I have exactly the same problem and I cannot continue with my application.
In windows the script works without any problems.
How can I solve the problem?
Thanks in advance.