Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running any sample test cases or tests #52

Open
roboserg opened this issue Aug 17, 2021 · 1 comment
Open

Problems running any sample test cases or tests #52

roboserg opened this issue Aug 17, 2021 · 1 comment

Comments

@roboserg
Copy link

roboserg commented Aug 17, 2021

Every script under \examples\SampleTestCases throws an error NameError: name 'env' is not defined

Is it supposed to be like that and not including the following two lines?

from environs import Env
env = Env()

Secondly, even if I add above two lines, the map loads, I see the car spawning and then the simulation abruptly dies with

Status: Error
Bridge socket was unexpectedly disconnected

No to mention I fail every test case with python -m unittest discover -v -c

@hadiTab
Copy link
Contributor

hadiTab commented Aug 29, 2021

@roboserg you are right. Those two lines are missing from those examples. Thanks for pointing it out!

As for the bridge connection error, that would occur if there is no bridge running. These examples are all trying to make a bridge connection to cyber bridge in the Apollo repo. If you do not have that running (or the address is different) you will receive a fatal bridge error.

EDIT: A more correct fix would be to use os.environ.get(....) to get the scene name to be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants