I want to create a very simple .exe which runs another .exe that exist on a shared server. The reason for this is so I can update the .exe on the server without having the users having to update their app. I hope that makes sense..
Anyway, I can't seem to figure out how to get rid of the console that pops up.
The script that calls the program on the server is just:
import os
os.system('U:/.../Program.exe')
And I create both .exe by running:
pyinstaller -w -F -i image.ico name.py
(-w should remove console)
I've also tried:
pyinstaller -w -F -i image.ico --noconsole name.py
without success.
Any help is greatly appreciated!
Have you tried placing the --noconsole argument to the right of the target?
So it'd read pyinstaller -w -F -i image.ico name.py --noconsole?
Related
My script .py work perfectly, but .exe sadly doesn't work. Im running on newest PyInstaller.
Here is my script
I already tried everyting that i can think of here is options that i used:
Options used
-w : does't have .exe file
-- onefile -w and -F -w : The specified module could not be found.
--F , --onefile and no option used : Only shows this option for like half a second
Not all python code can be compiled into a .exe.
I was able to work around this issue by importing pywintypes into my script before win32print module.
for some reason i cant run a program that i have "compiled" using Pyinstaller.
I have used the following command to make the exe file:
pyinstaller -F logFileHandler.py
I have also tried:
pyinstaller -F --onefile --windowed logFileHandler.py
but that did not work either.
As i understand the -F and --onefile is more or less the same?
The error i get when i try to run the program is:
As far as i can see the problem is with Pandasgui
and it is looking for some weird theme..
I tried to convert my python gui application (.py ) to an executable file(.exe) using the pyinstaller module. I ran the following command in the terminal -
pyinstaller.exe --onefile -w sourcecode.py
The process was completed successfully and I got the .exe file(sourcecode.exe) along with the extra folders like pycache and sourcecode. But when I tried to run the .exe file/application by double clicking on it the app didn't start up and gave an error. Please help.
Try adding this --hidden-import to pyinstaller.exe --onefile -w sourcecode.py in case of hidden modules.
You can also try adding --debug to see what the error actually is.
I need to transform an .ui archive to a .py but I can't use the command pyuic4, it said command not found in the terminal.
I already try installing pyside, pyqt, use uic.py but nothing seems to work.
So, I finally solved it. I used pyuic5 -x Data.ui -o Data_ui.py in the terminal, but first I opened the folder where the executable pyuic5 was, paste Data.ui and then use the line pyuic5 -x Data.ui -o Data_ui .py. Remember to open the location of the executable in the terminal before using the command
When I have subprocess.check_output function in mycode and I generate an .exe file using pyinstaller with
python pyinstaller.py --noconsole -F myprogram.py
process stop to work, otherwise every thing is ok!
Do you know any solution with pyinstaller or replace subprocess library with some thing else?