AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Lost python files when call python API

Open AlexanderZ3 opened this issue 5 years ago • 3 comments

Question

What's your question?

Could anyone tell me where to get the lost files: character_control.py, DQNdrone.py?

When I call the python API in VS2019, it pops up below errors:

image

Furthermore, I found the "DQNdrone.py" is also lost in the multirotor file. I follow the tutorial https://airsim-fork.readthedocs.io/en/docs/apis.html#python-quickstart
Actually, DQNcar.py and legacy_hello_car.py are also missed in the car file. So could anyone know why this problem happens and how to solve it? Thanks a lot! image

Include context on what you are trying to achieve

Context details

win10, Airsim 1.4, UE 2.5, Python 3.6.12

Include details of what you already did to find answers

AlexanderZ3 avatar Mar 04 '21 11:03 AlexanderZ3

Hi @AlexanderZ3 , try following the updated docs. The easiest way to run the demo python scripts is (as mentioned in the docs) to run python scriptName in your terminal (with python installed and the airsim and msgpack-rpc-python packages installed ofcourse) like: python hello_car.py for example.

Nonetheless, the inclusion of outdated scripts that no longer exist will probably need to be corrected for in PythonClient.pyproj (although this currently doesnt affect the scripts if you run them externally)

ahmed-elsaharti avatar Mar 04 '21 16:03 ahmed-elsaharti

Hi @ahmed-elsaharti , thanks for your reply! Problems are solved! This issue can be closed.

AlexanderZ3 avatar Mar 05 '21 13:03 AlexanderZ3

Hi @AlexanderZ3 , I'm facing the same issue, can you help me with this?

ashu1069 avatar Oct 18 '21 02:10 ashu1069