Python startup script doesn't work

 

I tried to start MT5 with python script but it failed with errors:

2024.06.11 10:35:47.217    MQL5    unknown type, loading of initialize (EURUSD,M1) failed
2024.06.11 10:35:47.217    MQL5    cannot load script 'demo' from start config

Details:

# command to run mt5
wine terminal64.exe /portable /config:startup.ini

# content of `startup.ini`
[Login]
Login=$LOGIN

[StartUp]
Script=demo.py
Symbol=EURUSD
Period=M1

# content of `MQL5/Scripts/demo.py`
print("hi")

Is anyone able to run this?

If I try to run a mq5 script, it is ok.
If I attach demo.py manually after mt5 have started, it is ok.