Issue with Python client during initialization
Posted: 23 Dec 2024, 17:22
Hi. I'm currently trying to get the python client working with the latest coppeliasim. I can successfully run the coppeliasim.py example from here https://github.com/CoppeliaRobotics/cop ... eliaSim.py . However, I'm running into an issue with the various.py example from here https://github.com/CoppeliaRobotics/cop ... various.py . I get the following error:
I'm running into a similar issue when using the updated version of PyRep from here https://github.com/stepjam/PyRep/tree/4.6.0.beta . I run into a similar issue when the bridge tries loading. I'm working on getting the latest version of pyrep to work with the latest version of coppeliasim, I would appreciate any help you could give me.
Thanks in advance.
Wilbert.
Code: Select all
[CoppeliaSim:error] External call to simCallScriptFunction failed ('sim.getApiInfo@lua'): script does not exist.
Traceback (most recent call last):
File "/home/gregor/workspace/tools/CoppeliaSim_Edu_V4_8_0_rev0_Ubuntu24_04/various.py", line 44, in simThreadFunc
coppeliasim.bridge.load()
File "/home/gregor/workspace/tools/CoppeliaSim_Edu_V4_8_0_rev0_Ubuntu24_04/coppeliasim/bridge.py", line 22, in load
call('require', ('scriptClientBridge',))
File "/home/gregor/workspace/tools/CoppeliaSim_Edu_V4_8_0_rev0_Ubuntu24_04/coppeliasim/bridge.py", line 44, in call
typeHints = getTypeHints(func)
^^^^^^^^^^^^^^^^^^
File "/home/gregor/workspace/tools/CoppeliaSim_Edu_V4_8_0_rev0_Ubuntu24_04/coppeliasim/bridge.py", line 28, in getTypeHints
c = call('sim.getApiInfo', [-1, func], (('int', 'string'), ('string')))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gregor/workspace/tools/CoppeliaSim_Edu_V4_8_0_rev0_Ubuntu24_04/coppeliasim/bridge.py", line 62, in call
raise Exception(f'{what} returned -1')
Exception: simCallScriptFunctionEx returned -1
Thanks in advance.
Wilbert.