gym-carla icon indicating copy to clipboard operation
gym-carla copied to clipboard

I can't seem to run the test.py.

Open Jidenna opened this issue 4 years ago • 5 comments

Every time I run it I get the error below. P.S. I am also running the carla server with the command ./CarlaUE4.sh -windowed -carla-port=2000 before running the test script

(driving) joshua@joshua:~/gym-carla$ python test.py 
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
connecting to Carla server...
Traceback (most recent call last):
  File "test.py", line 55, in <module>
    main()
  File "test.py", line 43, in main
    env = gym.make('carla-v0', params=params)
  File "/home/joshua/anaconda/envs/driving/lib/python3.6/site-packages/gym/envs/registration.py", line 156, in make
    return registry.make(id, **kwargs)
  File "/home/joshua/anaconda/envs/driving/lib/python3.6/site-packages/gym/envs/registration.py", line 101, in make
    env = spec.make(**kwargs)
  File "/home/joshua/anaconda/envs/driving/lib/python3.6/site-packages/gym/envs/registration.py", line 73, in make
    env = cls(**_kwargs)
  File "/home/joshua/gym-carla/gym_carla/envs/carla_env.py", line 90, in __init__
    self.world = client.load_world(params['town'])
RuntimeError: rpc::rpc_error during call in function version

Jidenna avatar Jul 03 '20 03:07 Jidenna

We haven't seen this problem before, what OS and carla version are you using?

cjy1992 avatar Jul 05 '20 04:07 cjy1992

I am running Linux Ubuntu with CARLA 0.8.4. Could the carla version be the reason behind the problem. Thanks for the response

Jidenna avatar Jul 05 '20 08:07 Jidenna

Yes please use 0.9.6 as stated in the readme.

cjy1992 avatar Jul 05 '20 23:07 cjy1992

I am actually using CARLA_0.9.6 but still getting the same error message

Jidenna avatar Jul 06 '20 03:07 Jidenna

I have the same error too

SHITIANYU-hue avatar Aug 18 '20 21:08 SHITIANYU-hue