-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to successfully run a demo #1015
Comments
Please use source code installation, i.e. pip install -e . |
FYI: Release of the wheel in next version is planned for late January or early February |
If you clone the repo, the surest say to install is with poetry, e.g. using |
My system is:
|
Thank you a lot for going through the installation and looking into this! I will check the atari example in particular and address the installation details, such that everything is installed at once with the extras. Could you please also try mujoco or one of the other environments? Atari is a particularly complicated one, the problems might be due to gymnasium (on mac) and not due to tianshou |
Yes. I'll try it on a different environment. Regarding |
It should be configured properly as if it doesn't find a successful envpool import, it would fall back to gymnasium implementation in tianshou's atari example. |
I was able to run on macOS the example under I tried also to run
|
On a Ubuntu-based machine I was more successful. OS
Python
I successfully ran After having followed the steps in the Contributions section, I had to additionally do:
|
As I suspected, the problem lies mainly in gymnasium and not in tianshou. I'll extend the readme and the pyproject to better deal with macos. Weirdly, the tests in CI on macos run through without envpool problems. Maybe we should extend them as well |
We need to improve the developer docs in general and provide instructions that enable an installation of an environment that supports the full range of tasks. For instance, in order to be able to install a Python env that supports Atari, one may need to install system-level depenendencies cmake and zlib1g prior to the Poetry install (on Ubuntu, |
Checking in on the macOS related issues |
Addresses part of #1015 ### Dependencies - move jsonargparse and docstring-parser to dependencies to run hl examples without dev - create mujoco-py extra for legacy mujoco envs - updated atari extra - removed atari-py and gym dependencies - added ALE-py, autorom, and shimmy - created robotics extra for HER-DDPG ### Mac specific - only install envpool when not on mac - mujoco-py not working on macOS newer than Monterey (openai/mujoco-py#777) - D4RL also fails due to dependency on mujoco-py (Farama-Foundation/D4RL#232) ### Other - reduced training-num/test-num in example files to a number ≤ 20 (examples with 100 led to too many open files) - rendering for Mujoco envs needs to be fixed on gymnasium side (Farama-Foundation/Gymnasium#749) --------- Co-authored-by: Maximilian Huettenrauch <[email protected]> Co-authored-by: Michael Panchenko <[email protected]>
Hello, i have following problems.
First of all, i want to try demo to see the process of the whole infrastructure. But in the example part, it seems that the documentation is not clear. I don't know how to run demo successfully after installing tianshou with pip.
Please give detailed documentation about using example demo so that i can see how to run successfully.
The text was updated successfully, but these errors were encountered: