DReyeVR: Cannot open python operation file in PythonAPI/examples

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?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (17 by maintainers)

Most upvoted comments

start_recording

image Every time I tried to make PythonAPI and make package, This error occurs, but it seems the build is succeed.

I got this error when trying to build carla. 1.) Ensure that “wheel” is installed. You can do “pip install wheel” if it’s not installed. 2.) Check to ensure that the “wheel” installation path is added to PYTHONPATH in your environment variables. Check “wheel” installation path by running “pip show wheel”.

Hmm, try cleaning everything and removing the old .egg from the original PythonAPI build. Then you should be able to rebuild PythonAPI without errors. Can you upload a build log?