Problem with new ZMQ Remote API for Python

Report crashes, strange behaviour, or apparent bugs
Post Reply
Andres
Posts: 18
Joined: 06 Oct 2023, 09:06

Problem with new ZMQ Remote API for Python

Post by Andres »

Hi, when I try to run

sim = client.require('sim')

from simpleTest.py, I always get the following message:

Exception: No such function: zmqRemoteApi.require

I do not know if I am missing a library or a special configuration.

IMPORTANT NOTE: I am using the previous Python client, the one that used

sim = client.getObject('sim')

and this works perfectly for me, but I do not know why the new client with require() is not working.


Operating System: Windows 11
CoppeliaSim Version: 4.5.1 rev4
coppeliasim_zmqremoteapi_client: 0.0.5

Thanks :)

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: Problem with new ZMQ Remote API for Python

Post by fferri »

coppeliasim_zmqremoteapi_client 0.0.5 only works with this version of the ZMQ Remote API server addon.

Otherwise use version 0.0.4 with CoppeliaSim v4.5.1rev4.

Or version 0.1.0 with CoppeliaSim v4.6.0.

Andres
Posts: 18
Joined: 06 Oct 2023, 09:06

Re: Problem with new ZMQ Remote API for Python

Post by Andres »

How do I get version 0.1.0?

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: Problem with new ZMQ Remote API for Python

Post by fferri »

In the same way, via pip, e.g.:

Code: Select all

python3 -m pip install -U coppeliasim-zmqremoteapi-client

Post Reply