S
S
sad_name2022-04-14 08:23:29
Building projects
sad_name, 2022-04-14 08:23:29

The command in the exe file does not work?

I have a python script that runs a command in the console. Everything works fine in the IDE, but after compiling it to an exe with pyinstaller (pyinstaller -F -i "C:\xampp\htdocs\organaizer\1.ico" websockets.py) the command doesn't run.
VCRUNTIME140.dll' 14.12 is not compatible with this PHP build linked with 14.29 in Unknown on line 0 pops up. I notice that for a second the window appears and immediately disappears. I am using Python 3.7.
An example of a command that does not run in exe

import subprocess 
import os 
os.system('php artisan websockets:serve')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sigar49, 2022-04-14
@Sigar49

If there is a command in Windows, for example, copy, cls, then it should work.
You have a PHP command so the user must install PHP

K
Konstantin Tsvetkov, 2022-04-14
@tsklab

VCRUNTIME140.dll' 14.12 is not compatible with this PHP build linked with 14.29
Means that pyinstallerand os.systemuse an incompatible VCRUNTIME140.dll.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question