: The `registry.env_specs` property along with `EnvSpecTree` is deprecated. Please use `registry` directly as a dictionary instead. logger.warn( Successfully registered the following environments: ['MetaDrive-validation-v0', 'MetaDrive-10env-v0', 'MetaDrive-100envs-v0', 'MetaDrive-1000envs-v0', 'SafeMetaDrive-validation-v0', 'SafeMetaDrive-10env-v0', 'SafeMetaDrive-100envs-v0', 'SafeMetaDrive-1000envs-v0', 'MARLTollgate-v0', 'MARLBottleneck-v0', 'MARLRoundabout-v0', 'MARLIntersection-v0', 'MARLParkingLot-v0', 'MARLMetaDrive-v0']. 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_single_agent_env.py", line 56, in <module> raise e File "C:\Users\cfmoto\AppData\Local\Programs\Python\Python39\lib\site-packages\metadrive\examples\drive_in_single_agent_env.py", line 36, in <module> o = 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 15:56:03 浏览: 80
这是一个错误提示,代码中使用了已经被弃用的 registry.env_specs 和 EnvSpecTree,应该直接使用 registry 字典。另外,还有一个 AttributeError 错误,可能是由于模块 gltf 中找不到 patch_loader 属性引起的。需要检查代码中是否正确导入了 gltf 模块,并且该模块是否包含 patch_loader 属性。
相关问题
代码中使用了已经被弃用的 registry.env_specs 和 EnvSpecTree,应该直接使用 registry 字典
是的,你理解得非常正确。如果代码中使用了 `registry.env_specs` 和 `EnvSpecTree`,就会出现被弃用的警告提示。这是因为最新的版本中,已经将 `registry.env_specs` 和 `EnvSpecTree` 替换为了 `registry` 字典。因此,在使用注册表时应该直接使用 `registry` 字典来注册和获取环境。如果你需要使用已经被弃用的 `registry.env_specs` 和 `EnvSpecTree`,可以在代码中使用 `DeprecationWarning` 来忽略警告提示。
can not get cluster name in registry config 'service.vgroupMapping.default_tx_group', please make sure registry config correct
回答: 在注册表配置中无法获取集群名称 'service.vgroupMapping.default_tx_group',请确保注册表配置正确。\[1\] \[2\] \[3\]
#### 引用[.reference_title]
- *1* [can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry](https://blog.csdn.net/Saintmm/article/details/121725763)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [can not get cluster name in registry config ‘service.vgroupMapping.xxx-seata-service-group](https://blog.csdn.net/zxy144/article/details/122560661)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [seata报错:can not get cluster name in registry config service.vgroupMapping.xxx](https://blog.csdn.net/virtual_users/article/details/130423120)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)