I encounter the following error:
Traceback (most recent call last):
File "/tianshou/mytest/envpool_test_2.py", line 11, in
env = envpool.make("Ant-v4", env_type="gym", num_envs=100, xml_file="ant.xml")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/tianshou/lib/python3.11/site-packages/envpool/registration.py", line 65, in make
spec = self.make_spec(task_id, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/tianshou/lib/python3.11/site-packages/envpool/registration.py", line 99, in make_spec
config = spec_cls.gen_config(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Config.new() got an unexpected keyword argument 'xml_file'
An error occur using envpool 0.8.4 to run mujoco-gym tasks with the parameter xml_file (I referred to https://www.gymlibrary.dev/environments/mujoco/ant/ for this parameter).
The following code runs successfully:
However, when I run the following code (with the parameter xml_file):
I encounter the following error: Traceback (most recent call last): File "/tianshou/mytest/envpool_test_2.py", line 11, in
env = envpool.make("Ant-v4", env_type="gym", num_envs=100, xml_file="ant.xml")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/tianshou/lib/python3.11/site-packages/envpool/registration.py", line 65, in make
spec = self.make_spec(task_id, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/tianshou/lib/python3.11/site-packages/envpool/registration.py", line 99, in make_spec
config = spec_cls.gen_config(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Config.new() got an unexpected keyword argument 'xml_file'