Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HANDS-ON BUG] unit5 - /bin/bash: line 1: mlagents-learn: command not found #591

Open
yjmini opened this issue Jan 31, 2025 · 2 comments
Open

Comments

@yjmini
Copy link

yjmini commented Jan 31, 2025

Describe the bug

I can solve the one problem in this issue list.

# Go inside the repository and install the package
%cd ml-agents
!pip3 install -e ./ml-agents-envs
!pip3 install -e ./ml-agents

This part is so annoying, but I solved. Just type "%%capture" top of that codes.

But I have one more problem.

!mlagents-learn ./config/ppo/SnowballTarget.yaml --env=./training-envs-executables/linux/SnowballTarget/SnowballTarget --run-id="SnowballTarget1" --no-graphics

This part's output is /bin/bash: line 1: mlagents-learn: command not found.
I can't solve this bug. I tried !pip install mlagents, etc. But all failed.
please help me.

Please share your notebook link so that we can reproduce the error
https://colab.research.google.com/drive/1-O4EOsFTz3odNsDfib2EvU-jM6ACBbn3#scrollTo=bS-Yh1UdHfzy

Material

  • Did you use Google Colab? Yes

If not:

  • Your Operating system (OS)
  • Version of your OS
@zhuruisy
Copy link

zhuruisy commented Feb 2, 2025

based on my research I think the current ML agent do not support the python version beyond 3.10
and i have add the following code in the beginning to down grade python version to 3.10
here is how I updated the version
!python --version
!sudo apt-get install python3.10
!sudo update-alternatives --config python3
!python --version
!sudo apt install python3-pip

it will ask you to select the version to use and you have to select the one with 3.10

@nnilayy
Copy link
Contributor

nnilayy commented Feb 2, 2025

Hey @yjmini, A PR has been submitted to resolve this issue for both bonus-unit-1 and unit-5. While the PR is under review, if you wish to, you can download the notebook from here in the meanwhile: PR #587

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants