Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #652 conda install by auto-accepting license terms - #658

Open
invi-bhagyesh wants to merge 1 commit into
huggingface:mainfrom
invi-bhagyesh:patch-1
Open

Fix #652 conda install by auto-accepting license terms#658
invi-bhagyesh wants to merge 1 commit into
huggingface:mainfrom
invi-bhagyesh:patch-1

Conversation

@invi-bhagyesh

Copy link
Copy Markdown

Added explicit acceptance of Anaconda Terms of Service for main and R channels using:
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

Prevents installation errors caused by missing TOS acceptance in automated setups.

@kaleido-jean

Copy link
Copy Markdown

I ran into this exact issue (mlagents-learn: command not found / mlagents-push-to-hf: command not found) in Bonus Unit 1 today. Confirmed the root cause is the same as described in #652 — the conda install step silently fails because Anaconda now requires accepting the Terms of Service for the pkgs/main and pkgs/r channels before a non-interactive install can proceed, so the Python 3.10.12 virtual env never actually gets created.

I tested the fix from this PR (adding conda tos accept --override-channels --channel ... for both channels before the conda install line) and it resolved the problem for me — python --version correctly showed 3.10.12 afterward, and mlagents-learn / mlagents-push-to-hf worked as expected once the dependencies were reinstalled.

Thanks for the fix, would be great to get this merged!

@invi-bhagyesh

Copy link
Copy Markdown
Author

@kaleido-jean Thanks for testing the fix, but it seems like they stopped maintaining this repository, with the last commit being three months ago.

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

Successfully merging this pull request may close these issues.

[HANDS-ON BUG] Bonus Unit 1: Training Huggy the Dog

2 participants