Skip to content

Problems running any sample test cases or tests #52

Open

Description

@roboserg

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

Activity

  1. hadiTab commented on Aug 29, 2021

    @hadiTab
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions