https://bugs.winehq.org/show_bug.cgi?id=44960
--- Comment #7 from Hans Leidekker hans@meelstraat.net --- (In reply to Harry Small from comment #6)
I am using Python 2.7 and pywin32 installed via PIP. Pyinstaller should have bundled the python interpreter for you, not sure why it did not work. The command is as you said: wine python.exe test.py
It appears to use to bundled interpreter for the initial invocation of test.py, but when the script itself invokes 'python test.py' the interpreter cannot be found.
Can you try running it from the python installation directory like I did? Copy test.py there and cd into that directory. If that still fails, please add +process to the trace flags and attach a new trace:
$ WINEDEBUG=+process,+wbemprox wine python.exe test.py &> trace.txt