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

Testing and using UpkieWheelsEnv gym env #11

Closed
perrin-isir opened this issue Mar 3, 2023 · 3 comments
Closed

Testing and using UpkieWheelsEnv gym env #11

perrin-isir opened this issue Mar 3, 2023 · 3 comments

Comments

@perrin-isir
Copy link

Hi,
when I run ./tools/bazelisk run //agents/ppo_balancer:train, I get:
ModuleNotFoundError: No module named 'stable_baselines3'

I could install it, but I thought using bazel should prevent from having to do so.

Other question: if I want to develop my own python code that would import UpkieWheelsEnv, how do I do?
Can I use bazel to avoid having to install all the dependencies (gin-config, vulp, ...) manually?

@stephane-caron
Copy link
Member

stephane-caron commented Mar 6, 2023

Thanks for mentioning it, indeed I haven't put it in requirements.txt.

This is a good incentive to switch to the more recent pip_parse command from Bazel's rules_python, so that SB3 and its dependencies are only downloaded if needed (i.e. to run the PPO balancer, as other agents don't depend on it). I've started working on this in #12

@stephane-caron
Copy link
Member

stephane-caron commented Mar 6, 2023

Edit: moved to #15.

@stephane-caron
Copy link
Member

I could install it, but I thought using bazel should prevent from having to do so.

This should work now 👌

Spinning your follow-up question in #15.

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

No branches or pull requests

2 participants