Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Donkeycar模拟器连接-macOS错误(loggerinfo)_Python_Macos - Fatal编程技术网

Python Donkeycar模拟器连接-macOS错误(loggerinfo)

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

我试图将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()
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"