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

App works fine on my Mac but not on other Mac #509

Open
donolsch opened this issue Sep 28, 2023 · 0 comments
Open

App works fine on my Mac but not on other Mac #509

donolsch opened this issue Sep 28, 2023 · 0 comments

Comments

@donolsch
Copy link

donolsch commented Sep 28, 2023

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant