You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiled program using PyInstaller can't use the subprocess.Popen("python script.py") because the python interpreter isn't included. It can however use exec() but this leads to issues with how to save/terminate it, and subprocess doesn't seem to be usuable to call only functions like exec() (..?).
Tried switching from using subprocess to multiprocessing (branch: multiprocess):
Program can run the script, but there's no way to terminate it because the process variable (p) can't be referenced outside of runTraining() (p is not defined)
What should happen:
Pressing "Start training" starts a thread that runs the process of running trainGPT2.py through exec(). (Works)
Pressing "Save and end training" sends a SIGINT signal to the process, forcing it to save. (Doesn't work)
The text was updated successfully, but these errors were encountered:
The compiled program using PyInstaller can't use the subprocess.Popen("python script.py") because the python interpreter isn't included. It can however use exec() but this leads to issues with how to save/terminate it, and subprocess doesn't seem to be usuable to call only functions like exec() (..?).
Tried switching from using subprocess to multiprocessing (branch: multiprocess):
What should happen:
The text was updated successfully, but these errors were encountered: