ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
340 stars 36 forks source link

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

Open donolsch opened 11 months ago

donolsch commented 11 months ago

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,