notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

optimize.py error #65

Closed bradley-pearson6597 closed 5 years ago

bradley-pearson6597 commented 5 years ago

Attempting to run optimize.py but receving this error: from mpi4py import MPI ImportError: DLL load failed: The specified module could not be found. The error seems to be stemming from tehe baselines package. Any help would be greatly appreciated.

Connah-rs commented 5 years ago

I had the same issue, fixed it with a system-wide installation of MPI

bradley-pearson6597 commented 5 years ago

I had the same issue, fixed it with a system-wide installation of MPI

Worked out what you meant and managed to resolve the issue. Thanks my friend!

bradley-pearson6597 commented 5 years ago

I had the same issue, fixed it with a system-wide installation of MPI

bradley-pearson6597 commented 5 years ago

Solved by downloading MSI from Microsoft webiste

Ruben-E commented 5 years ago

Had the same issue this morning on my windows machine. Had a system wide installation of MPI, but apparently version 9 which doesn't work. When I installed version 10 it worked.

Do the following:

  1. Download both installers here: msmpisdk.msi and msmpisetup.exe.
  2. Install both.
  3. Add the following paths to Path environment variable:
    • C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64
    • C:\Program Files (x86)\Microsoft SDKs\MPI (not sure if they are both needed. Just to be sure)
    • C:\Program Files\Microsoft MPI\Bin
bradley-pearson6597 commented 5 years ago

Had the same issue this morning on my windows machine. Apparently I had MPI version 9 installed. When I installed version 10 it worked.

Do the following:

  1. Download both installers here: msmpisdk.msi and msmpisetup.exe.
  2. Install both.
  3. Add the following paths to Path environment variable:
  • C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64
  • C:\Program Files (x86)\Microsoft SDKs\MPI (not sure if they are both needed. Just to be sure)
  • C:\Program Files\Microsoft MPI\Bin

I only needed the msmpisetup.exe in the end and that seemed to resolve the issue!

Ruben-E commented 5 years ago

Nice! Good to know only one is needed.

jaggars commented 4 years ago

same that fixed it for me as well