Page 1 of 1

Do not have remoteApi.so

Posted: 05 Jun 2020, 09:19
by yifanzhou
Hi,
I am trying to run the model /programming/remoteApiBindings/python/python/simpleTest.py
but failed. It reports :
----------------------------------------------------
The remoteApi library could not be loaded. Make sure
it is located in the same folder as "sim.py", or
appropriately adjust the file "sim.py"
----------------------------------------------------

--------------------------------------------------------------
"sim.py" could not be imported. This means very probably that
either "sim.py" or the remoteApi library could not be found.
Make sure both are in the same folder as this file,
or appropriately adjust the file "sim.py"
--------------------------------------------------------------

Program started
Traceback (most recent call last):
File "/home/yifanzhou/PycharmProjects/vrepper/remoteApiBindings/python/python/simpleTest.py", line 26, in <module>
sim.simxFinish(-1) # just in case, close all opened connections
NameError: name 'sim' is not defined

And I find I don't have remoteApi.so in this path. How can I get it?I don't know how to makefile.

Re: Do not have remoteApi.so

Posted: 05 Jun 2020, 11:00
by coppelia
Hello,

you can find that file in programming/remoteApiBindings/lib/lib/, or you can recompile it via the project file located in programming/remoteApiBindings/lib/. When compiling it yourself, make sure you also have the remote API repository in programming/

Cheers