Im kinda new to Unity so I may have done something wrong. But I did follow the installation guide from start to finish. My guess is I did something wrong in the part python package install, although I did follow that aswell.
However when I try to run the mlagents-learn command mlagents-learn config/ppo/3DBall.yaml --run-id=first3DBallRun
in cmd I get the following error.
Traceback (most recent call last):
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File “c:\users\emiln\appdata\local\programs\python\python37\lib\imp.py”, line 242, in load_module
return load_dynamic(name, filename, file)
File “c:\users\emiln\appdata\local\programs\python\python37\lib\imp.py”, line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: Cannot find the assigned module.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\EmilN\AppData\Local\Programs\Python\Python37\Scripts\mlagents-learn-script.py”, line 11, in
load_entry_point(‘mlagents’, ‘console_scripts’, ‘mlagents-learn’)()
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init_.py”, line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init_.py”, line 2852, in load_entry_point
return ep.load()
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init_.py”, line 2443, in load
return self.resolve()
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init_.py”, line 2449, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “d:\unity stuff\ml-agents-master\ml-agents-master\ml-agents\mlagents\trainers\learn.py”, line 13, in
from mlagents import tf_utils
File “d:\unity stuff\ml-agents-master\ml-agents-master\ml-agents\mlagents\tf_utils_init_.py”, line 1, in
from mlagents.tf_utils.tf import tf as tf # noqa
File “d:\unity stuff\ml-agents-master\ml-agents-master\ml-agents\mlagents\tf_utils\tf.py”, line 3, in
import tensorflow as tf # noqa I201
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_init_.py”, line 101, in
from tensorflow_core import *
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core_init_.py”, line 40, in
from tensorflow.python.tools import module_util as module_util
File "c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\emiln\appdata\local\programs\python\python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “c:\users\emiln\appdata\local\programs\python\python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File “c:\users\emiln\appdata\local\programs\python\python37\lib\imp.py”, line 242, in load_module
return load_dynamic(name, filename, file)
File “c:\users\emiln\appdata\local\programs\python\python37\lib\imp.py”, line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: Cannot find the assigned module.
Given the error messages I am assuming the issue is with Python. Quick notes aswell, im not in a virtual environment, not sure if this matters. I just wanted to do some simple tests for a thesis project. Also is there a way to pull graphs out from the training session?