#error when trying to start a learning session PLEASE HELP IVE BEEN STUCK FOR HOURS

1 messages · Page 1 of 1 (latest)

hoary matrix
#

for refrence learning has worked before and ive reimported MLagents reinstalled pytorch mlagents through cmd and checking for pip updates none worked

C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\torch_init_.py:955: UserWarning: torch.set_default_tensor_type() is deprecated as of PyTorch 2.1, please use torch.set_default_dtype() and torch.set_default_device() as alternatives. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\tensor\python_tensor.cpp:434.)
_C._set_default_tensor_type(t)
Traceback (most recent call last):
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\mlagents\trainers\cli_utils.py", line 306, in load_config
with open(config_path) as data_file:
FileNotFoundError: [Errno 2] No such file or directory: 'bettermovment1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\makan\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\makan\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\Scripts\mlagents-learn.exe_main
.py", line 7, in <module>
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\mlagents\trainers\learn.py", line 264, in main
run_cli(parse_command_line())
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\mlagents\trainers\learn.py", line 56, in parse_command_line
return RunOptions.from_argparse(args)
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\mlagents\trainers\settings.py", line 899, in from_argparse
configured_dict.update(load_config(config_path))
File "C:\Users\makan\AppData\Local\Programs\Python\Python39\lib\site-packages\mlagents\trainers\cli_utils.py", line 310, in load_config
raise TrainerConfigError(f"Config file could not be found at {abs_path}.")
mlagents.trainers.exception.TrainerConfigError: Config file could not be found at C:\Users\makan\aiwork1\bettermovment1.

(venv) C:\Users\makan\aiwork1>

tidal pawn
#

You need pytorch < 2.1

hoary matrix
tidal pawn
#

You need a lower version, not higher. And I don't know how to install a different version, as I don't normally use python. You'll need to google that.

One more important thing: looking at the documentation, the latest ml agents version doesn't have that limitation.
Are you trying to install an older version for some reason?

#

Are you even following the docs? What package version are you trying to install?

#

Also, if you're a beginner, I'd recommend starting with a simpler project, not ml.

hoary matrix
hoary matrix
#

ither way ty so much for your help

tidal pawn
tidal pawn
hoary matrix
#

never b4 that