Closed dev3225 closed 8 months ago
I can be wrong, but a bind error could happen if the port is used from a different software. https://carla.readthedocs.io/en/latest/python_api/#commandsetautopilot
The documentation says that the default port is 8000 I would look if that port is free.
I checked the port usage and 8000 is free but it till throws the same error.
I can be wrong, but a bind error could happen if the port is used from a different software. https://carla.readthedocs.io/en/latest/python_api/#commandsetautopilot
The documentation says that the default port is 8000 I would look if that port is free.
It worked without issues when I commented out autopilot module in the python script.
The script starts -> then opens pygame window -> blank screen -> not responding message on titlebar - > finally crashes and throws runtime error as shown below
C:\carla\PythonAPI\examples>python manual_control.py pygame 2.4.0 (SDL 2.26.4, Python 3.9.0) Hello from the pygame community. https://www.pygame.org/contribute.html INFO: listening to server 127.0.0.1:2000
Welcome to CARLA manual control.
Use ARROWS or WASD keys for control.
INFO: Found the required file in cache! Carla/Maps/Nav/Town10HD_Opt.bin Traceback (most recent call last): File "C:\carla\PythonAPI\examples\manual_control.py", line 1383, in
main()
File "C:\carla\PythonAPI\examples\manual_control.py", line 1375, in main
game_loop(args)
File "C:\carla\PythonAPI\examples\manual_control.py", line 1273, in game_loop
controller = KeyboardControl(world, args.autopilot)
File "C:\carla\PythonAPI\examples\manual_control.py", line 385, in init
world.player.set_autopilot(self._autopilot_enabled)
RuntimeError: trying to create rpc server for traffic manager; but the system failed to create because of bind error.