I have made an app with py2app for MacOS (Mojave) with python 3.7.
For make the app I'm using this command python3 setup.py py2app -A
when I open the app, it closes and log me out of the account every time.
I tried using different version of py2app from 0.14 to 0.19 but I have the same issue.
0.13 version or less had problems on imports. I also tried with 0.12 version modifying the files of py2app library for avoiding issues, but I have the same problem
setup.py
from setuptools import setup
APP = ['MyApplication.py']
DATA_FILES = []
OPTIONS = {}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
Myapplication.py
import tkinter as tk
if __name__ == '__main__':
root = tk.Tk()
root.title("Sandwich")
tk.Button(root, text="My first App").pack()
tk.mainloop()