question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SHITIANYU-huecommented, Aug 18, 2020

I have the same error too

1reaction
Jidennacommented, Jul 6, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

py.test doesn't *seem* to run all tests - and doesn't fail
The first test can therefore only be found if the second doesn't exist. You can fix this by just changing the names of...
Read more >
Can't run tests with py.test · Issue #4878 · pypa/pip - GitHub
Yes, pytest doesn't work out of the box. This is a consequence of the fact that the project is structured with an src...
Read more >
Why does PyCharm not run pytest testing for my application?
I'm new to pytest and am trying to write testing modules for my application. My directory structure is: broker/ broker/tests...
Read more >
doctest — Test interactive Python examples — Python 3.11.1 ...
If you run example.py directly from the command line, doctest works its magic: ... M can't leave behind crumbs that accidentally allow another...
Read more >
Getting Started With Testing in Python
This is a command line entry point. It means that if you execute the script alone by running python test.py at the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found