Search Unity

Linux Setup

Discussion in 'ML-Agents' started by James_Initus, Jul 5, 2020.

  1. James_Initus

    James_Initus

    Joined:
    May 26, 2015
    Posts:
    75
    Any documentation on setting up MLAGENTS on Linux?

    I don't need Unity as I will build from a PC with Unity and have a Linux Box do the training.

    I attempted pip3 install mlagents but I get some number of errors.

    Still trying...
     
  2. James_Initus

    James_Initus

    Joined:
    May 26, 2015
    Posts:
    75
    So I was able to install it without errors. I had to follow the detail to install pip-py as outline in virtual environments (i think).

    I now have the mlagents files in my bin folder. However, if I attempt to execute mlagents-learn I get Illegal Instruction (core dumped)

    python3 mlagents-learn

    Any ideas?

    thanks
     
  3. James_Initus

    James_Initus

    Joined:
    May 26, 2015
    Posts:
    75
    Any successfully run mlagents on linux?
     
  4. Gr8VAK

    Gr8VAK

    Joined:
    Sep 21, 2015
    Posts:
    2
    the same requires, the same issue...
    i've installed python3.7.9, walk through instruction here to create vevn. Installed torch, installed mlagents without any failures

    pip3 show says

    (venv) root@gr8tools:/opt/ml-agents/#pip3 show mlagents
    Name: mlagents
    Version: 0.27.0
    Summary: Unity Machine Learning Agents
    Home-page: https://github.com/Unity-Technologies/ml-agents
    Author: Unity Technologies
    Author-email: ML-Agents@unity3d.com
    License: UNKNOWN
    Location: /opt/ml-agents/warplane-online/venv/lib/python3.7/site-packages
    Requires: attrs, cattrs, grpcio, h5py, importlib-metadata, mlagents-envs, numpy, Pillow, protobuf, pyyaml, tensorboard, torch
    Required-by:


    any command with mlagents-learn failing with "Illegal instruction".

    installed here, f.e, tensorboard says

    (venv) root@gr8tools:/opt/ml-agents/# tensorboard --version
    TensorFlow installation not found - running with reduced feature set.
    2.7.0
    (venv) root@gr8tools:/opt/ml-agents/# pip3 show tensorboard
    Name: tensorboard
    Version: 2.7.0
    Summary: TensorBoard lets you watch Tensors Flow
    Home-page: https://github.com/tensorflow/tensorboard
    Author: Google Inc.
    Author-email: packages@tensorflow.org
    License: Apache 2.0
    Location: /opt/ml-agents/warplane-online/venv/lib/python3.7/site-packages
    Requires: absl-py, google-auth, google-auth-oauthlib, grpcio, markdown, numpy, protobuf, requests, setuptools, tensorboard-data-server, tensorboard-plugin-wit, werkzeug, wheel
    Required-by: mlagents


    earlier, I had this issue, and resolved it with the answer given there: use apt get-install libtinfo5
     
  5. Gr8VAK

    Gr8VAK

    Joined:
    Sep 21, 2015
    Posts:
    2
    also, I've read this issue, and make sure, that've used the correct version of python, pip and others ****ing tools. Every command called I've checked, that everything marked with python3.7 (for some reasons, i've preinstall python3.8 and decided not to remove it)

    bun the failure is the same

    **UPD**:
    found, python3.8 installs with python3-envs
     
    Last edited: Jan 16, 2022