py2app icon indicating copy to clipboard operation
py2app copied to clipboard

Stdout not showing up in Console

Open brunns opened this issue 1 year ago • 2 comments

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 avatar Mar 15 '23 12:03 brunns

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

brunns avatar Mar 16 '23 10:03 brunns

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.

ronaldoussoren avatar Jun 03 '23 09:06 ronaldoussoren