I've used Py2App to create a Mac App for my TKinter GUI.
It works perfectly fine on my Mac but when I compress it (zip it) as explained in your documentation and then distribute it to a different Mac, the application throws a launching error.
When opening the program on another Mac through the terminal I get this error in the console:
The Info.plist file must have a PyRuntimeLocations array containing string values for preferred Python runtime locations. These strings should be "otool -L" style mach ids; "@executable_stub" and "~" prefixes will be translated accordingly.
This is my setup.py
`from setuptools import setup
APP = ['main.py']
DATA_FILES = [
('.', ['licensing.py', 'validation.py', 'MyApp.icns']), # Include the .icns file here
]
OPTIONS = {
'packages': ['keyring', 'keyring.backends'],
'iconfile': 'WrangleMate.icns',
'plist': {
'CFBundleName': 'My App', # Replace with your desired app name
'CFBundleDisplayName': 'My App', # Replace with your desired display name
},
}
Specify the third-party libraries in the 'install_requires' list
Hi there,
I've used Py2App to create a Mac App for my TKinter GUI. It works perfectly fine on my Mac but when I compress it (zip it) as explained in your documentation and then distribute it to a different Mac, the application throws a launching error.
When opening the program on another Mac through the terminal I get this error in the console: The Info.plist file must have a PyRuntimeLocations array containing string values for preferred Python runtime locations. These strings should be "otool -L" style mach ids; "@executable_stub" and "~" prefixes will be translated accordingly.
This is my setup.py
`from setuptools import setup
APP = ['main.py'] DATA_FILES = [ ('.', ['licensing.py', 'validation.py', 'MyApp.icns']), # Include the .icns file here ]
OPTIONS = { 'packages': ['keyring', 'keyring.backends'], 'iconfile': 'WrangleMate.icns', 'plist': { 'CFBundleName': 'My App', # Replace with your desired app name 'CFBundleDisplayName': 'My App', # Replace with your desired display name }, }
Specify the third-party libraries in the 'install_requires' list
INSTALL_REQUIRES = [ 'ttkthemes', 'requests', 'py-machineid', 'keyring' ]
setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], install_requires=INSTALL_REQUIRES, )`
Any guidance in the right direction would be much appreciated.
Thank you,