Hi everyone, I am setting up Coppeliasim for silicon chip mac and having these error:
The Python interpreter could not handle the wrapper script (or communication between the launched subprocess and CoppeliaSim could not be established via sockets). Make sure that the Python modules 'cbor2' and 'zmq' are properly installed, e.g. via: $ python3 -m pip install pyzmq cbor2. Additionally, you can try adjusting the value of startTimeout in lua/pythonWrapperV2.lua, at the top of the file
**I tried to run"python3 -m pip install pyzmq cbor2" on terminal and then restart but it's still the same
And when I ran a simulation, I got this error:
File was previously written with CoppeliaSim version 4.06.00 (rev 6)
[CoppeliaSim:info] Scene opened.
[/ResizableFloor_5_25@customizationScript:warning] module 'sim' was implicitly loaded.
[/ResizableFloor_5_25@customizationScript:warning] sim.getObjectHandle is deprecated. Use sim.getObject instead.
Hope you have a great day.
Setting up Coppeliasim for Mac
Re: Setting up Coppeliasim for Mac
Sorry for the late reply...
in a terminal type:
What does it say?
Then type:
Does any of that generate an error?
Cheers
in a terminal type:
Code: Select all
python3 --version
Then type:
Code: Select all
python3
import cbor2
import cbor
import zmq
Cheers
-
- Posts: 3
- Joined: 08 Dec 2023, 07:49
Re: Setting up Coppeliasim for Mac
The codes you provided return no error and the python version: Python 3.9.10.
Re: Setting up Coppeliasim for Mac
Strange. Maybe try with the last revision (V4.6 rev14)...
Cheers
Cheers
-
- Posts: 3
- Joined: 08 Dec 2023, 07:49
Re: Setting up Coppeliasim for Mac
I just fix the problem by open the app by terminal
I đon't know why I cannot open it without that error by just click the app
Code: Select all
open Downloads/coppeliaSim.app
Re: Setting up Coppeliasim for Mac
You can try this:
in a terminal, run:
it will tell you the full path to python3.
Copy that path, and paste it as the value for the setting 'defaultPython' in the user settings file (~/.CoppeliaSim/usrset.txt).
Next time you start CoppeliaSim, it should use the same python interpreter that you used in the terminal.
in a terminal, run:
Code: Select all
which python3
Copy that path, and paste it as the value for the setting 'defaultPython' in the user settings file (~/.CoppeliaSim/usrset.txt).
Next time you start CoppeliaSim, it should use the same python interpreter that you used in the terminal.