DLL load failed while importing _core

 

Hello,


On Windows Server 2022, I installed MetaTrader5 package for Python. But then, when I run a test code:

import MetaTrader5 as mt5
# affiche les données sur le package MetaTrader 5
print("Auteur du package MetaTrader5 : ",mt5.__author__)
print("Version du package MetaTrader5 : ",mt5.__version__)
 
# établit une connexion MetaTrader 5 à un compte de trading spécifié
if not mt5.initialize(login=25115284, server="MetaQuotes-Demo",password="4zatlbqx"):
 print("initialize () a échoué, code d'erreur =",mt5.last_error())
    quit()
 

I get

import Metatrader5 as mt5

File .....myenv\Lib\site-packages\MetaTrader5\__init__.py

from ._core import *

ImportError: DLL load failed while importing _core: The specified module could not be found



In the myenv\Lib\site-packages\MetaTrader5 directory there is a _core.cp38-win_amd64.pyd file, so I renamed it as _core.pyd, but still the same error...


Any idea how to solve this ?


Thanks a  lot

 

 

Hi buddy, how are u?


I have the same error, how did you solve it?

Could you help me?

Reason: