Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAJOR: Program does not run scripts after compiling #9

Open
rian-kh opened this issue May 9, 2023 · 0 comments
Open

MAJOR: Program does not run scripts after compiling #9

rian-kh opened this issue May 9, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@rian-kh
Copy link
Owner

rian-kh commented May 9, 2023

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:

  1. Pressing "Start training" starts a thread that runs the process of running trainGPT2.py through exec(). (Works)
  2. Pressing "Save and end training" sends a SIGINT signal to the process, forcing it to save. (Doesn't work)
@rian-kh rian-kh added bug Something isn't working help wanted Extra attention is needed labels May 9, 2023
@rian-kh rian-kh changed the title MAJOR: Program doesn't work when compiling MAJOR: Program doesn't work after compiling May 9, 2023
@rian-kh rian-kh pinned this issue May 10, 2023
@rian-kh rian-kh changed the title MAJOR: Program doesn't work after compiling MAJOR: Program does not run scripts after compiling May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant