When I run the exe built from Pyinstaller the program exits early with no error code. The code below is being imported to my main runtime right away.
import os
from gtts import gTTS
from playsound import playsound
import pygame
print("Alive")
class InputBox:
#bunch of code for pygame
print("WhatAboutNow?")
class pygameSTD:
#more code for pygame
print("check for life")
class config:
#Code for other things
then once I run the build, this is all I get in my console output
C:\Users\zacke_000\AppData\Local\Programs\Python\Python36\Scripts\dist>mainRunTime
Alive
C:\Users\zacke_000\AppData\Local\Programs\Python\Python36\Scripts\dist>
However, if I comment out both of the classes that use pygame, the code runs fine up until I try and use one of the classes I commented out. I have tried to leave just one of the classes running, and both of them halt the program as soon it reaches that point. If you need any more info, I'll be more than happy to share and thanks for any help in getting the build to work as expected.