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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Error with Installation?

Discussion in 'ML-Agents' started by Jozzuph, Mar 26, 2023.

  1. Jozzuph

    Jozzuph

    Joined:
    Sep 12, 2019
    Posts:
    32
    I'm having this error when I try mlagents-learn, any ideas?


    Microsoft Windows [Version 10.0.19044.2728] (c) Microsoft Corporation. All rights reserved. C:\Users\jwsta>cd C:\Users\jwsta\OneDrive\Desktop\ML Agents Test C:\Users\jwsta\OneDrive\Desktop\ML Agents Test>venv\Scripts\activate (venv) C:\Users\jwsta\OneDrive\Desktop\ML Agents Test>mlagents -learn 'mlagents' is not recognized as an internal or external command, operable program or batch file. (venv) C:\Users\jwsta\OneDrive\Desktop\ML Agents Test>mlagents-learn c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\torch\cuda\__init__.py:52: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 ┐ ╖ ╓╖╬│╡ ││╬╖╖ ╓╖╬│││││┘ ╬│││││╬╖ ╖╬│││││╬╜ ╙╬│││││╖╖ ╗╗╗ ╬╬╬╬╖││╦╖ ╖╬││╗╣╣╣╬ ╟╣╣╬ ╟╣╣╣ ╜╜╜ ╟╣╣ ╬╬╬╬╬╬╬╬╖│╬╖╖╓╬╪│╓╣╣╣╣╣╣╣╬ ╟╣╣╬ ╟╣╣╣ ╒╣╣╖╗╣╣╣╗ ╣╣╣ ╣╣╣╣╣╣ ╟╣╣╖ ╣╣╣ ╬╬╬╬┐ ╙╬╬╬╬│╓╣╣╣╝╜ ╫╣╣╣╬ ╟╣╣╬ ╟╣╣╣ ╟╣╣╣╙ ╙╣╣╣ ╣╣╣ ╙╟╣╣╜╙ ╫╣╣ ╟╣╣ ╬╬╬╬┐ ╙╬╬╣╣ ╫╣╣╣╬ ╟╣╣╬ ╟╣╣╣ ╟╣╣╬ ╣╣╣ ╣╣╣ ╟╣╣ ╣╣╣┌╣╣╜ ╬╬╬╜ ╬╬╣╣ ╙╝╣╣╬ ╙╣╣╣╗╖╓╗╣╣╣╜ ╟╣╣╬ ╣╣╣ ╣╣╣ ╟╣╣╦╓ ╣╣╣╣╣ ╙ ╓╦╖ ╬╬╣╣ ╓╗╗╖ ╙╝╣╣╣╣╝╜ ╘╝╝╜ ╝╝╝ ╝╝╝ ╙╣╣╣ ╟╣╣╣ ╩╬╬╬╬╬╬╦╦╬╬╣╣╗╣╣╣╣╣╣╣╝ ╫╣╣╣╣ ╙╬╬╬╬╬╬╬╣╣╣╣╣╣╝╜ ╙╬╬╬╣╣╣╜ ╙ Version information: ml-agents: 0.29.0, ml-agents-envs: 0.29.0, Communicator API: 1.5.0, PyTorch: 1.7.1+cu110 Traceback (most recent call last): File "C:\Users\jwsta\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\jwsta\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\jwsta\OneDrive\Desktop\ML Agents Test\venv\Scripts\mlagents-learn.exe\__main__.py", line 7, in <module> File "c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\mlagents\trainers\learn.py", line 260, in main run_cli(parse_command_line()) File "c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\mlagents\trainers\learn.py", line 256, in run_cli run_training(run_seed, options, num_areas) File "c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\mlagents\trainers\learn.py", line 89, in run_training stats_writers = register_stats_writer_plugins(options) File "c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\mlagents\plugins\stats_writer.py", line 47, in register_stats_writer_plugins if ML_AGENTS_STATS_WRITER not in importlib_metadata.entry_points(): File "c:\users\jwsta\onedrive\desktop\ml agents test\venv\lib\site-packages\importlib_metadata\__init__.py", line 262, in __eq__ return self._key() == other._key() AttributeError: 'str' object has no attribute '_key'
     
  2. BroccoliTaart

    BroccoliTaart

    Joined:
    May 15, 2018
    Posts:
    2
    Version information:
    ml-agents: 0.26.0,
    ml-agents-envs: 0.26.0,
    Communicator API: 1.5.0,
    PyTorch: 1.7.1+cu110
    Traceback (most recent call last):
    File "D:\src\envs\ml-agents-r17\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
    File "D:\src\envs\ml-agents-r17\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "D:\src\envs\ml-agents-r17\Scripts\mlagents-learn.exe\__main__.py", line 7, in <module>
    File "D:\src\envs\ml-agents-r17\lib\site-packages\mlagents\trainers\learn.py", line 250, in main
    run_cli(parse_command_line())
    File "D:\src\envs\ml-agents-r17\lib\site-packages\mlagents\trainers\learn.py", line 246, in run_cli
    run_training(run_seed, options)
    File "D:\src\envs\ml-agents-r17\lib\site-packages\mlagents\trainers\learn.py", line 83, in run_training
    stats_writers = register_stats_writer_plugins(options)
    File "D:\src\envs\ml-agents-r17\lib\site-packages\mlagents\plugins\stats_writer.py", line 47, in register_stats_writer_plugins
    if ML_AGENTS_STATS_WRITER not in importlib_metadata.entry_points():
    File "D:\src\envs\ml-agents-r17\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 239, in __eq__
    return self._key() == other._key()
    AttributeError: 'str' object has no attribute '_key'