When trying to export my Application using py2app as my exporter and Tkinter as my UI, It works perfectly fine on my device. Once i send it to someone else's computer however, it crashes, resulting in the following error message
This probably means that Tc1 wasn't installed properly.
I know tcl and tk are supposed to be installed themselves but the issue persists,
This is what I've done so far, but still at no luck
import sys
import os
from setuptools import setup
APP = ['main.py']
DATA_FILES = [
('assets', [
'assets/icon.icns',
'assets/documentation.pdf',
'assets/help.png',
'assets/tutorial.png',
'assets/logo.png',
]),
]
OPTIONS = {
'iconfile': 'assets/icon.icns',
'includes': [
'matplotlib',
'pandas',
'ldap3',
'tableauserverclient',
'json',
'os',
'tkinter',
'threading',
'charset_normalizer'
],
}
if sys.platform == 'darwin':
tcl_root = '/System/Library/Frameworks/Tcl.framework/Versions/8.5'
tk_root = '/System/Library/Frameworks/Tk.framework/Versions/8.5'
OPTIONS['frameworks'] = [
os.path.join(tcl_root, 'Tcl'),
os.path.join(tk_root, 'Tk'),
]
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
name='Material Assignment Viewer',
)
Any help would be greatly appreciated