Python Donkeycar模拟器连接-macOS错误(loggerinfo)
我试图将donkeycar gym链接到驴子sim,但当我使用cd命令进入目录并执行python manage.py drive时,它返回以下错误:Python Donkeycar模拟器连接-macOS错误(loggerinfo),python,macos,Python,Macos,我试图将donkeycar gym链接到驴子sim,但当我使用cd命令进入目录并执行python manage.py drive时,它返回以下错误: File "manage.py", line 48 logger.info(f'PID: {os.getpid()}') 我没有接触manage.py文件,如何修复它 下面是manage.py的代码。(第32行之前:它们是导入和注释。) 我用水蟒做的 logger = logging.getLogger() l
File "manage.py", line 48
logger.info(f'PID: {os.getpid()}')
我没有接触manage.py文件,如何修复它
- 下面是manage.py的代码。(第32行之前:它们是导入和注释。)
我用水蟒做的
logger = logging.getLogger()
logging.basicConfig(level=logging.INFO)
def drive(cfg, model_path=None, use_joystick=False, model_type=None,
camera_type='single', meta=[]):
"""
Construct a working robotic vehicle from many parts. Each part runs as a
job in the Vehicle loop, calling either it's run or run_threaded method
depending on the constructor flag `threaded`. All parts are updated one
after another at the framerate given in cfg.DRIVE_LOOP_HZ assuming each
part finishes processing in a timely manner. Parts may have named outputs
and inputs. The framework handles passing named outputs to parts
requesting the same named input.
"""
logger.info(f'PID: {os.getpid()}')
if cfg.DONKEY_GYM:
#the simulator will use cuda and then we usually run out of resources
#if we also try to use cuda. so disable for donkey_gym.
os.environ["CUDA_VISIBLE_DEVICES"]="-1"