carla: RPC Error when trying to connect the Python API with the UE4 Editor

Hi everyone,

I build the newest version of Carla (0.9.5) from source on Ubuntu 18.04.2. After starting the Carla simulation in the UE4Editor and running the manual_control.py script, I get the following error:

Traceback (most recent call last): File "manual_control.py", line 861, in <module> main() File "manual_control.py", line 853, in main game_loop(args) File "manual_control.py", line 774, in game_loop world = World(client.get_world(), hud, args.filter, args.rolename) RuntimeError: rpc::rpc_error during call in function version

I also checked that the Ports 2000 and 2001 are free and only used by the UE4Editor.

Do you have a suggestion what might be causing this error?

Best Regards,

Paul

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 24

Most upvoted comments

The problem to me was that I was importing the wrong version of the API (I had several compiled ones). And it seems that the latest build method is no longer keeping the api on the path carla/PythonAPI/build/lib.linux-x86_64-3.6 which used to be standard. I am currently using the .egg file available when you create a package distribution and all seems to be working fine.

sorry I also have this problem now with latest version carla0.9.6 and I could not solve it 😦 so where do that keep api at the moment in new version? because it never connect to.py files even from carla examples and always get error for client.get_word(). I use python 2.7.15 as i always use this version for carla because it also has problem with python 3…

I have the same problem, but I am using Python2.7 in Ubuntu 16.04, I built Carla0.9.5 over UE4.22. Any suggestions? I also have the precompiled version installed, could that interfere somehow?