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

Stdout not showing up in Console #484

Open brunns opened 1 year ago

brunns commented 1 year ago

The Tutorial says:

When run normally, your application's stdout and stderr output will go to the Console logs.

But, I'm not seeing anything there. Am I doing something wrong, or is this no longer true?

brunns commented 1 year ago

Possibly due to https://github.com/python/cpython/issues/91070?

ronaldoussoren commented 1 year ago

The tutorial needs some love... Py2app tries to arrange for stdout to be send to Console.app, but on recentish versions of macOS (and anything that runs on hardware that you can buy from Apple) changed in a way that makes it impossible to do this.

The easiest way to look at message on stdout is to run the application directly from terminal, e.g. run "./dist/MyApp.app/Contents/MacOS/MyApp" (changing "MyApp" by the actual application name). That's not 100% the same as double clicking the app bundle, but is useful to find most problems with code.