macOS VRep connection error (Python Jupyter Notebook)

Typically: "How do I... ", "How can I... " questions
Post Reply
Myg
Posts: 2
Joined: 08 May 2023, 21:49

macOS VRep connection error (Python Jupyter Notebook)

Post by Myg »

I am on macOS and trying to run the following python code:

Code: Select all

from pypot import vrep
vrep.close_all_connections()
poppy = PoppyTorso(simulator='vrep')
I get an error however, even though I have coppeliaSim (Edu version) up and running. After searching on the forum I found the following solution https://poppy.discourse.group/t/problem ... 2-mac/4778 (I have the exact problem).

However, this workaround doesn't work for me. When I run `simExtRemoteApiStart(19997)` in the Sandbox terminal I get the following error message:

Code: Select all

> simExtRemoteApiStart(19997)
[string "simExtRemoteApiStart(19997)"]:1: attempt to call a nil value (global 'simExtRemoteApiStart')
stack traceback:
    [string "simExtRemoteApiStart(19997)"]:1: in main chunk
If anyone has a solution it would be really helpful! Thank you.
coppelia
Site Admin
Posts: 10736
Joined: 14 Dec 2012, 00:25

Re: macOS VRep connection error (Python Jupyter Notebook)

Post by coppelia »

Hello,

what version of CoppeliaSim are you running? When you type simRemoteApi.start, what does it print?

Cheers
Myg
Posts: 2
Joined: 08 May 2023, 21:49

Re: macOS VRep connection error (Python Jupyter Notebook)

Post by Myg »

coppelia wrote: 15 May 2023, 10:11 Hello,

what version of CoppeliaSim are you running? When you type simRemoteApi.start, what does it print?

Cheers
I am using CoppeliaSim Edu Version 4.5.1 (13 April 2023). When I type simRemoteApi.start I get the same error I described in my initial post. i.e:

Code: Select all

[string "simRemoteApi.start"]:1: attempt to index a nil value (global 'simRemoteApi')
stack traceback:
    [string "simRemoteApi.start"]:1: in main chunk
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: macOS VRep connection error (Python Jupyter Notebook)

Post by fferri »

Hi Myg,

try downloading libsimExtRemoteApi.dylib and put it into coppeliaSim.app/Contents/MacOS/.
shahenoor29
Posts: 3
Joined: 19 Aug 2023, 21:51

Re: macOS VRep connection error (Python Jupyter Notebook)

Post by shahenoor29 »

Hello there, I am getting an error in macOS of 'remoteApi.dylib', it says that the 'remoteApi.dylib' is of x86 architecture and my system supports x64 architecture and I am using the 'remoteApi.dylib' from "Contents/Resources/programming/remoteApiBindings/lib/lib/MacOS/remoteApi.dylib" so from where should i find the x64 architecture file?
dogaanismail
Posts: 2
Joined: 22 Jun 2024, 22:59

Re: macOS VRep connection error (Python Jupyter Notebook)

Post by dogaanismail »

Hello @shahenoor29,

Have you fixed the issue that you were facing?

I am also having the same error.

(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')
Post Reply