Do not have remoteApi.so

Report crashes, strange behaviour, or apparent bugs
Post Reply
yifanzhou
Posts: 4
Joined: 03 Jun 2020, 06:17

Do not have remoteApi.so

Post 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.

coppelia
Site Admin
Posts: 8604
Joined: 14 Dec 2012, 00:25

Re: Do not have remoteApi.so

Post 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

Post Reply