I am also having the same issue. No errors during the compilation, but when I tried to attach to the chart I see the same message above.
primehaxor #:
I am also having the same issue. No errors during the compilation, but when I tried to attach to the chart I see the same message above.
Make the script in some python ide such as spyder. Then it gives proper error messages.I am also having the same issue. No errors during the compilation, but when I tried to attach to the chart I see the same message above.
Switching to spyder helped me get it working as all errors are clearly given in spyder.
The Mql5 IDE does not give python errors.
I just solved it, basically what I was doing wrong was providing the Python.exe inside the compiler option, just leave the basedir and it is enough, btw I'm using Python 3.8.0, working like a charm now!
primehaxor #:
I just solved it, basically what I was doing wrong was providing the Python.exe inside the compiler option, just leave the basedir and it is enough, btw I'm using Python 3.8.0, working like a charm now!
Hi. I'm on python 3.10. My scripts are not running on MT5 once I've dragged them onto the chart. The steps I took are - 1. Create new document.I just solved it, basically what I was doing wrong was providing the Python.exe inside the compiler option, just leave the basedir and it is enough, btw I'm using Python 3.8.0, working like a charm now!
2. Python script
3.name it
4.tick MetaTrader5 library
5. Finish - I attached the scripts from the mql5 website and when I drag the script to the chart it doesn't work. "Python process thread create error".( system could not find the file specified. (2)) What am I doing wrong?
@The Messiah #:
Hi. I'm on python 3.10. My scripts are not running on MT5 once I've dragged them onto the chart. The steps I took are - 1. Create new document.
You can't run Python scripts on a MetaTrader chart. It runs externally and "calls" MetaTrader (like a library or service) to have it process the requests. It does not run on the MetaTrader terminal. That is reserved only for MQL programs.
Hi. I'm on python 3.10. My scripts are not running on MT5 once I've dragged them onto the chart. The steps I took are - 1. Create new document.
2. Python script
3.name it
4.tick MetaTrader5 library
5. Finish - I attached the scripts from the mql5 website and when I drag the script to the chart it doesn't work. "Python process thread create error".( system could not find the file specified. (2)) What am I doing wrong?
Hi. Please check this: Fixing MT5 Python Wrong Version Issue. We hope it can help in solving the issue. Best
MQL5/Troubleshooting/Fixing_MT5_Python_Wrong_Version_Issue.md at main · barmenteros/MQL5
- barmenteros
- github.com
You're trying to use Python scripts in MetaTrader 5 (MT5), but you’re encountering issues where the wrong version of Python is being used (e.g., Python 3.12 instead of Python 3.9) or Python isn’t initializing correctly. You might see errors like "python process thread create error" or "ModuleNotFoundError" when running Python scripts in MT5...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to integrate Python into MetaEditor5 following the exact same steps from the documentation https://www.mql5.com/en/docs/integration/python_metatrader5.
I've tried with Python v3.9 and v3.7.
All the pip install commands execute successfully.
However, when i try to execute the following script from the documentation, within a New Python Script option in MetaEditor5, it fails.
I've integrated the compiler in the MetaEditor5 options by copying the address of the python executable file.
On compilation it doesn't give any errors, However it prints the following in the journals tab
Python "C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7\python.exe" -u "C:\Users\username\AppData\Roaming\MetaQuotes\Terminal\terminalnumber\MQL5\Scripts\Python Script.py" EURUSD 5 failed
But still creates a .py file.
Running this script in MT5 gives the following message in Journals Tab
"python process thread create error [The system cannot find the file specified. (2)]"
and i have to forcible terminate the execution of the script.
Any help on what could be causing the error!