[SOLVED] [ISSUE] Unable to find remoteApi.so even if the file exists

After installing pypot 2.0 (also pyserial and numpy), while importing pypot.dynamixel or pypot.robot gives error “OSError : /usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/lib/linux/32Bit/remoteApi.so: cannot open shared object file: No such file or directory” After checking the given location the file and the directory exists but pypot is unable to recognize it.

Installed pypot 2.0 using pip. Current have installed python2.7, pyserial2.7 and numpy1.7.1.

I can import pypot but when I type import pypot.dynamixel or import pypot.robot it gives this error.

Since I am new to linux/python/pypot I might’ve done a simple mistake. Any help would be appreciated.

Thanks in advance.

Hi @shubham143,

I tried to reproduce the problem on a fresh Ubuntu 14.04 install without success. All I basically did was:

sudo apt-get install python-pip python-numpy
sudo pip install pypot

python -c "from pypot.vrep import from_vrep"

Can you give me some details:

  • How did you install python? Are you using the one from the system? A compiled one (if yes using pyenv…?)
  • How did you install pypot? Using pip?
  • Are you Linux distribution 32Bit?

Can you also execute the following command and post the result:

 file /usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/lib/linux/32Bit/remoteApi.so

Thanks in advance!

I have lubuntu running on an ARM board cubietruck. I installed python using apt-get also installed numpy and pip in similar way. I installed pyserial from pip and then installed pypot from pip.

As for the linux version, this is what I get from terminal when I type uname -a:
Linux cubietruck 3.4.79 #2 SMP PREEMPT Sat Feb 15 00:24:19 CST 2014 armv7l armv7l armv7l GNU/Linux
(I have set wrong date and time)
So I am running an arm cpu which has linux for arm.

This is the complete error message when i run “import pypot.dynamixel” :

root@cubietruck:/home/linaro# python -c "import pypot.dynamixel"
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/pypot/dynamixel/init.py”, line 4, in
from .io import DxlIO, DxlError
File “/usr/local/lib/python2.7/dist-packages/pypot/dynamixel/io.py”, line 12, in
from …robot.io import AbstractIO
File “/usr/local/lib/python2.7/dist-packages/pypot/robot/init.py”, line 10, in
from …vrep import from_vrep
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/init.py”, line 3, in
from .io import (VrepIO, close_all_connections,
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.py”, line 6, in
from remoteApiBindings import vrep as remote_api
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/vrep.py”, line 50, in
libsimx = CDLL(dyn_lib)
File “/usr/lib/python2.7/ctypes/init.py”, line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/lib/linux/32Bit/remoteApi.so: cannot open shared object file: No such file or directory

Also same error while running python -c “from pypot.vrep import from_vrep”

root@cubietruck:/home/linaro# python -c "from pypot.vrep import from_vrep"
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/init.py”, line 3, in
from .io import (VrepIO, close_all_connections,
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.py”, line 6, in
from remoteApiBindings import vrep as remote_api
File “/usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/vrep.py”, line 50, in
libsimx = CDLL(dyn_lib)
File “/usr/lib/python2.7/ctypes/init.py”, line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/lib/linux/32Bit/remoteApi.so: cannot open shared object file: No such file or directory

Also when I run the file command, it says :
root@cubietruck:/home/linaro# file /usr/local/lib/python2.7/dist-packages/pypot/vrep/remoteApiBindings/lib/linux/32Bit/remoteApi.so
bash: file: command not found

I have verified that this file and directory exist on my system. It is just invisible for the pypot installation.

Ok now I understand! There is no binary of V-REP for ARM. I’m not sure it could work on such architecture though.

The problem in this case is that it tries to import the vrep package in pypot where it shouldn’t. I’ve pushed an updated version.

Let me know if it fixes the problem!

BTW When you manage to make pypot work on your board, do not hesitate to bench it!

Thanks… Its importing the libraries now. Upgraded to 2.0.1