From ronaldoussoren at mac.com Sun Nov 3 16:39:33 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 3 Nov 2019 22:39:33 +0100 Subject: [Pythonmac-SIG] Catalina issue In-Reply-To: <49224C62-4F25-4FC0-8205-F90D1E6825D9@me.com> References: <49224C62-4F25-4FC0-8205-F90D1E6825D9@me.com> Message-ID: Hi, This is a change in behaviour in macOS. The workaround is to create an NSApplication instance, for example by calling Cocoa.NSApplication.sharedApplication(). Ronald ? Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ > On 29 Oct 2019, at 19:34, Ben Byram-Wigfield via Pythonmac-SIG wrote: > > The following two lines work in Mojave, but flag an error in Catalina: > >>>> from AppKit import NSSavePanel >>>> panel = NSSavePanel.savePanel() > > The error is: > > 2019-10-29 18:24:22.275 Python[6577:255233] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140 > 2019-10-29 18:24:22.275 Python[6577:255233] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140 > 2019-10-29 18:24:22.342 Python[6577:255347] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted > > This is with PyObjC 5.2. I get the same error (or not) in python 2.7 and python 3.7. > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- An HTML attachment was scrubbed... URL: