MetaTrader5 python package issue with numpy v2.x

 

Hey everyone,

I'm running Python 3.12.5 and trying to get MQL5's MetaTrader5 installed and running. In an empty venv (I purged the cache just to be sure), I use 'pip install MetaTrader5' which installs the package and also installs it's one dependency -> numpy. So my virtual environment has just those two packages, and they are both the latest and greatest (verified via PyPI). When I do a simple 'import MetaTrader5', python throws an error stating that MetaTrader5 was compiled using numpy 1.x and is *not* compatible with numpy 2.x. The funny part is that MetaTrader5 package automatically installs a numpy>=1.7 via pip (v2.1.1 is latest). I did downgrade numpy to 1.26.4 (last v1.x release) and I'm able to use the MetaTrader5 package. Is MQL5 really compiling their package with an old numpy while installing a non-supported version of numpy? Perhaps I'm missing something here. Thanks in advance!

:-)