my code is very simple python, it stores a "Hello World" in a variable, and then calls by my email GMAIL and sends the data stored within the variable, until and all right
then I turned it into .exe (with cx_Freeze), and both the .py and .exe files were running perfectly on my computer, and sending me the message via email!
however, after I tried to run the .exe file on another computer (I exported the entire executable folder and installed python on the other computer as a precaution), it simply stops running when it comes to sending the email, and closes the console by itself. ; -;
it stops executing when calling by smtplib:
import smtplib
How can I solve this problem, I want to run my files on other machines!
The two machines may have different OS or CPUS, this could be an issue. Have you tried to transfer the source (python) code, and compile it on the other machine? That should fix the issue, and if you want to run it on many different machines, consider compiling it on the machine you would like to run it on, and then upload that file. Cheers!
Error executing specific lines of a python library on another computer as exe file