microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.52k stars 4.6k forks source link

TypeError: __init__() takes 1 positional argument but 2 were given #4953

Open Chen1DONG opened 6 months ago

Chen1DONG commented 6 months ago

D:\Anaconda\envs\DL\python.exe D:/uav/airsim_rl/SAC.py Traceback (most recent call last): File "D:\uav\airsim_rl\SAC.py", line 676, in sac(device=device) File "D:\uav\airsim_rl\SAC.py", line 401, in sac env = AirSimEnv(need_render=False) File "D:\uav\airsim_rl\gym_airsim\envs\AirGym.py", line 41, in init self.airgym = AirLearningClient() File "D:\uav\airsim_rl\gym_airsim\envs\airlearningclient.py", line 21, in init self.client = airsim.MultirotorClient(settings.ip) TypeError: init() takes 1 positional argument but 2 were given

进程已结束,退出代码1