Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Ml-Agents-learn --help error.

Discussion in 'ML-Agents' started by Nanapp, Nov 11, 2022.

  1. Nanapp

    Nanapp

    Joined:
    Nov 11, 2022
    Posts:
    1
    (venv) C:\Users\peprah\My_project>mlagents-learn --help
    Traceback (most recent call last):
    File "C:\Users\peprah\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File "C:\Users\peprah\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
    File "C:\Users\peprah\My_project\venv\Scripts\mlagents-learn.exe\__main__.py", line 4, in <module>
    File "C:\Users\peprah\My_project\venv\lib\site-packages\mlagents\trainers\learn.py", line 2, in <module>
    from mlagents import torch_utils
    File "C:\Users\peprah\My_project\venv\lib\site-packages\mlagents\torch_utils\__init__.py", line 1, in <module>
    from mlagents.torch_utils.torch import torch as torch # noqa
    File "C:\Users\peprah\My_project\venv\lib\site-packages\mlagents\torch_utils\torch.py", line 6, in <module>
    from mlagents.trainers.settings import TorchSettings
    File "C:\Users\peprah\My_project\venv\lib\site-packages\mlagents\trainers\settings.py", line 644, in <module>
    class TrainerSettings(ExportableSettings):
    File "C:\Users\peprah\My_project\venv\lib\site-packages\mlagents\trainers\settings.py", line 667, in TrainerSettings

    cattr.register_structure_hook(
    File "C:\Users\peprah\My_project\venv\lib\site-packages\cattr\converters.py", line 207, in register_structure_hook
    self._structure_func.register_cls_list([(cl, func)])
    File "C:\Users\peprah\My_project\venv\lib\site-packages\cattr\dispatch.py", line 55, in register_cls_list
    self._single_dispatch.register(cls, handler)
    File "C:\Users\peprah\AppData\Local\Programs\Python\Python310\lib\functools.py", line 856, in register
    raise TypeError(
    TypeError: Invalid first argument to `register()`. typing.Dict[mlagents.trainers.settings.RewardSignalType, mlagents.trainers.settings.RewardSignalSettings] is not a class.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    8,895
    Please stop spamming the forums with this post. I'll remove all your other posts now.