Known pipe types: wglGraphicsPipe (all display modules loaded.) Traceback (most recent call last): File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\examples\drive_in_multi_agent_env.py", line 78, in <module> raise e File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\examples\drive_in_multi_agent_env.py", line 58, in <module> env.reset() File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\envs\base_env.py", line 371, in reset self.lazy_init() # it only works the first time when reset() is called to avoid the error when render File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\envs\base_env.py", line 258, in lazy_init engine = initialize_engine(self.config) File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\engine\engine_utils.py", line 12, in initialize_engine cls.singleton = cls(env_global_config) File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\engine\base_engine.py", line 29, in __init__ EngineCore.__init__(self, global_config) File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\engine\core\engine_core.py", line 189, in __init__ gltf.patch_loader(self.loader) AttributeError: module 'gltf' has no attribute 'patch_loader'
时间: 2023-07-09 14:56:04 浏览: 420
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
5星 · 资源好评率100%
这段代码看起来是 Python 的错误信息,可能是在调用某个模块或库的时候出现了问题。具体的错误是 "AttributeError: module 'gltf' has no attribute 'patch_loader'",意味着在 'gltf' 模块中没有名为 'patch_loader' 的属性。您可以检查一下代码中是否有对 'gltf' 模块的调用,并确认是否正确地导入了该模块。如果您无法解决问题,可以提供更多代码和上下文,以便更好地理解问题并提供帮助。
阅读全文