Skip to content

Cannot open python operation file in PythonAPI/examples #19

@sunchongren

Description

@sunchongren

I encountered another question after I start the application from the path E:\carla\Build\UE4Carla\0.9.13-1-g8854804f4-dirty\WindowsNoEditor

  ./CarlaUE4.exe -vr

The error occurs when I want to run any python operation file such as DReyeVR_AI.py or dynamic_weather.py, it failed. The error code is:

File "DReyeVR_AI.py", line 140, in main
ego_vehicle.set_autopilot(False, traffic_manager.get_port())
UnboundLocalError: local variable 'ego_vehicle' referenced before assignment

Any possible reason for this?

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