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

not able to run PPO in the LunarLander-v2 env #82

Open
jramak opened this issue Dec 22, 2018 · 4 comments
Open

not able to run PPO in the LunarLander-v2 env #82

jramak opened this issue Dec 22, 2018 · 4 comments

Comments

@jramak
Copy link

jramak commented Dec 22, 2018

I followed all the instructions here: https://spinningup.openai.com/en/latest/user/installation.html#check-your-install , but I have a problem with mpi4py. I tried the suggestion in stackoverflow (https://stackoverflow.com/questions/35370396/mpi4py-library-not-loaded-usr-local-lib-libmpi-1-dylib), but it does not work for me. Below is the error I'm seeing:

Traceback (most recent call last):
File "/Users/jramak1/miniconda3/envs/spinningup/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/jramak1/miniconda3/envs/spinningup/lib/python3.6/runpy.py", line 109, in _get_module_details
import(pkg_name)
File "/Users/jramak1/dev/spinningup/spinup/init.py", line 2, in
from spinup.algos.ddpg.ddpg import ddpg
File "/Users/jramak1/dev/spinningup/spinup/algos/ddpg/ddpg.py", line 7, in
from spinup.utils.logx import EpochLogger
File "/Users/jramak1/dev/spinningup/spinup/utils/logx.py", line 14, in
from spinup.utils.mpi_tools import proc_id, mpi_statistics_scalar
File "/Users/jramak1/dev/spinningup/spinup/utils/mpi_tools.py", line 1, in
from mpi4py import MPI
ImportError: dlopen(/Users/jramak1/miniconda3/envs/spinningup/lib/python3.6/site-packages/mpi4py/MPI.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libmpi.1.dylib
Referenced from: /Users/jramak1/miniconda3/envs/spinningup/lib/python3.6/site-packages/mpi4py/MPI.cpython-36m-darwin.so
Reason: image not found

@zhangbinxy
Copy link

Have you solved it ? I have the similar Error .

@jmichaux
Copy link

jmichaux commented Jan 16, 2019

Try running this on the command line first:

module load mpi/openmpi-x86_64

@jramak
Copy link
Author

jramak commented Jan 17, 2019

I have a macOS. I'm getting module command not found.

@k3KAW8Pnf7mkmdSMPHz27
Copy link

If you are out of other options, could you try installing both pip and mpi4py through anaconda?

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

4 participants