metachris / metachris.com-comments

Comments for metachris.com
https://www.metachris.com
0 stars 0 forks source link

Creating standalone Mac OS X applications with Python and py2app #4

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Creating standalone Mac OS X applications with Python and py2app · Chris Hager

In this tutorial we’ll be using py2app to create a standalone OSX application from a Python 2 or 3 source code with a simple Tkinter user interface. "py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. py2app is similar in purpose and design to py2exe for Windows." Relevant links about py2app: Documentation Source on BitBucket (last commit 2015-05-05) Issue Tracker, Mailing List This guide is loosely based on the official tutorial.

https://www.metachris.com/2015/11/create-standalone-mac-os-x-applications-with-python-and-py2app/

Ray0716 commented 3 years ago

hi so i followed the documentation above and it didnt work. It just opened a window with the name "Make me a sandwhich". Also, when i typed the commands with the $ sign into the terminal, it just said syntax error. Could someone please exlplain? Thx !

metachris commented 3 years ago

Which command specifically gave you the error? Please also post the traceback information.

Ray0716 commented 3 years ago

here is the error: bash: $: command not found

metachris commented 3 years ago

You have to enter the command without the leading $, just everything after the dollar sign.

ikus060 commented 3 years ago

After creating an "app", what is missing is how to redistribute it as a dmg

mvpotapova commented 2 years ago

Hi! I created alias, when I open app from shell command it works just fine. But if I open it through Finder it gives me 'Launch error'. Du you know what may be an issue?

Clydrex commented 2 years ago

Try setting 'argv_emulation' to False