question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MPI not working with python3.6 in mac

See original GitHub issue
 ~/t/b/b/ppo1   master ±  python run_atari.py                                                    (ppo_cont_check)
Traceback (most recent call last):
  File "run_atari.py", line 57, in <module>
    main()
  File "run_atari.py", line 54, in main
    train(args.env, num_frames=40e6, seed=args.seed)
  File "run_atari.py", line 17, in train
    from baselines.ppo1 import pposgd_simple, cnn_policy
  File "/Users/abhishek/test/baselines/baselines/ppo1/pposgd_simple.py", line 6, in <module>
    from baselines.common.mpi_adam import MpiAdam
  File "/Users/abhishek/test/baselines/baselines/common/mpi_adam.py", line 1, in <module>
    from mpi4py import MPI
ImportError: dlopen(/anaconda/envs/ppo_cont_check/lib/python3.6/site-packages/mpi4py/MPI.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libmpi.1.dylib
  Referenced from: /anaconda/envs/ppo_cont_check/lib/python3.6/site-packages/mpi4py/MPI.cpython-36m-darwin.so
  Reason: image not found
 ~/t/b/b/ppo1   master ±  conda list | grep mpi                                                  (ppo_cont_check)
mpi4py                    2.0.0                     <pip>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
phamvanvungcommented, May 22, 2019

For me, I install mpich with this command conda install mpich, then it will work.

5reactions
stevenschmatzcommented, Sep 28, 2017

+1 to this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build on macOs with Python bindings and MPI - GitLab
I tested with mpich + python3.6 and python3.7 without success. The problem is that the build does not provide any useful information in...
Read more >
Error when installing mpi4py - python - Stack Overflow
I got the error message that mpi.h was missing during the installation. The path was set correctly, but only for my user, not...
Read more >
Release with OpenMPI 3.0 support - mpi4py - Bitbucket
My big concern is that my software (which uses MPI4PY) stops working as soon someone updates OpenMPI. For Mac users using homebrew, ...
Read more >
Setting up Mac OSX to program in MPI and Python ... - YouTube
Using macports, we can set our computers up to be high-performance machines. Ok, they won't be able to really be high-performance without ...
Read more >
Mac mpi4py installation issue - Google Groups
to mpi...@googlegroups.com. I am using Python 2.7.5 and have installed openmpi-1.8.4. ... Unfortunately the installation of mpi4py still isn't working.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found