Course: Learning Agents (5.5)

Hello, I updated my my tutorial from 5.4 to 5.5 and adapted the blueprints to match the 5.5 tutorial. When I try to launch, I have the following error:

LogLearning: Display: PPOTrainer_0: Sending config...
LogLearning: Display: Sending config signal...
LogLearning: Display: PPOTrainer_0: Sending initial policy...
LogLearning: Display: Subprocess: Traceback (most recent call last):
LogLearning: Display: Subprocess:   File "D:\Unreal\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Content\Python\train.py", line 32, in <module>
LogLearning: Display: Subprocess:     module = import_module(trainer_module_name)
LogLearning: Display: Subprocess:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LogLearning: Display: Subprocess:   File "D:\Unreal\UE_5.4\Engine\Binaries\ThirdParty\Python3\Win64\Lib\importlib\__init__.py", line 126, in import_module
LogLearning: Display: Subprocess:     return _bootstrap._gcd_import(name[level:], package, level)
LogLearning: Display: Subprocess:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
LogLearning: Display: Subprocess:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
LogLearning: Display: Subprocess:   File "D:\Unreal\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Content\Python\train_ppo.py", line 9, in <module>
LogLearning: Display: Subprocess:     import torch
LogLearning: Display: Subprocess:   File "D:\Unreal Projects\RLAgent1\Intermediate\PipInstall\Lib\site-packages\torch\__init__.py", line 148, in <module>
LogLearning: Display: Subprocess:     raise err
LogLearning: Display: Subprocess: OSError: [WinError 126] The specified module could not be found. Error loading "D:\Unreal Projects\RLAgent1\Intermediate\PipInstall\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
LogLearning: Error: PPOTrainer_0: Error sending policy to trainer: Unexpected communication received. Check log for additional errors.
LogLearning: Error: PPOTrainer_0: Training has failed. Check log for errors.

Is this error linked to my setup of learning agent or is it an error because I didn’t follow the tutorial properly. Looking at the message I feel the problem is my setup, but I wouldn’t know how to force install of torch.

1 Like