Most likely is a missing (but commonly found) DLL on those machines that it 
doesn't run on - the most likely candidates being those in the MS Redistribable.

One trick that I have found to help is to build the application with a second 
target set as command line  rather than Windows - this results  in an 
executable with the annoying habit of opening a command prompt when running but 
prevents some of the error messages being shunted to NUL - it is worth a try at 
least. Another is to try, on one of the machines where your app doesn't run it 
to try installing python (with it added to the path) then see if your code 
runs, if it doesn't try pip installing the python packages one by one until it 
does.

Steve Barnes

From: [email protected] <[email protected]> On Behalf Of 
Stephen Parkes
Sent: 21 May 2021 13:41
To: PyInstaller <[email protected]>
Subject: [PyInstaller] Exe Not working on different PCs

Hi Guys,
I've successfully created an exe of my python program using pyinstaller. Its an 
application built using PyQt5 and I'm using Python 3.9. It works perfectly on 3 
PCs in my office, but when deployed to some PCs it doesn't run.
All PC's were running Win10, some had python installed, some didn't.

I've tried running it from command line on the PCs that don't work, and nothing 
is printed in the output. I also tried to compile it with debug switched on and 
exectly the same information is printed to the command line on all PCs. On PCs 
where the program runs successfully the UI loads, the others it just stops with 
no errors.

I've tried inserting print statements to see where it gets to but it doesn't 
get that far. As no errors can be found I'm really after a way to debug the 
problem as I'm stumped.
Any advice on how to source the problem or what could be the difference between 
the machines would be much appreciated.
Cheers
--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/8c1f2a5f-54a3-423e-aa17-5fb7f7d3f15cn%40googlegroups.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpyinstaller%2F8c1f2a5f-54a3-423e-aa17-5fb7f7d3f15cn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C61a0ad3003d342172d6f08d91c772135%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637572120241802063%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Xy9aK%2BnIW%2FWlTR7bNfYqtljGq8RkfymDGgv3IXjK4CU%3D&reserved=0>.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/VI1PR03MB6575149B5A8ADC19C33DDBD09B289%40VI1PR03MB6575.eurprd03.prod.outlook.com.

Reply via email to