From ronaldoussoren at mac.com Thu Oct 17 02:51:22 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 17 Oct 2019 08:51:22 +0200 Subject: [Pythonmac-SIG] ANN: PyObjC 5.3 Message-ID: Hi, I?ve uploaded PyObjC 5.3 to PyPI. This is a minor bug fix release and also ships with wheels for Python 3.8. Changes: * PR 21: Switch xcodebuild invocation to xcrun for sdk path Patch by Cl?ment Bouvier * #271: Fix crash when creating NSData objects on macOS 10.15 * Fix compile error on macOS 10.15 Ronald ? Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronaldoussoren at mac.com Thu Oct 17 12:54:32 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 17 Oct 2019 18:54:32 +0200 Subject: [Pythonmac-SIG] ANN: PyObjC 6.0 Message-ID: I've uploaded PyObjC 6.0 to PyPI. This is a major feature release, the two most important changes are the addition of support for frameworks and APIs introduced in macOS 10.15 (Catalina), and the removal of support for Python 2.7. PyPI has wheels for 64-bit builds of Python 3.6, 3.7 and 3.8. The source should still work with 32-bit builds of Python, but those are no longer tested. At the time of writing the source code is still in the branch "pyobjc-6-branch". The full list of changes: * Removed Python 2 support from the C extension in pyobjc-core * Reformatted code in pyobjc-core: - Use "black" for Python code - Use "clang-format" for Objective-C code As a side-effect of this all usage of "NS_DURING" and "PyObjC_DURING" has been replaced by the expansion of those macros, mostly because "clang-format" doesn't understand these kinds of blocks. Replacing PyObjC_DURING by its expansion also reduces the knowledge needed to understand what's going on w.r.t. the Python GIL. The macro PyObjC_DURING, and its siblings, have been removed as well. * Updated bindings for macOS 10.15 (Xcode 11.0) * The userspace driver frameworks introduced in macOS 10.15 (DriverKit and related frameworks) will not be exposed through PyObjC. Please let me know if you have a good use case for using these frameworks with Python. * Add new framework wrappers for all other new frameworks in macOS 10.15: - AuthenticationServices - CoreHaptics - CoreMotion - DeviceCheck - ExecutionPolicy - FileProvider - FileProviderUI - LinkPresentation - OSLog - PencilKit - PushKit - QuickLookThumbnailing - Speech - SoundAnalysis - SystemExtensions * Add new framework wrappers for a number of older frameworks: - MetalKit (new in macOS 10.11) * Issue #271: Fix crash when creating NSData objects on macOS 10.15 P.S. This release is later than I'd like for various reasons, but mostly because I've spent less time at my computer the last couple of weeks. ? Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronaldoussoren at mac.com Sun Oct 20 14:38:00 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 20 Oct 2019 20:38:00 +0200 Subject: [Pythonmac-SIG] ANN: PyObjC 6.0.1 Message-ID: <13602436-F13D-4BAA-8741-715F84018C3B@mac.com> Hi, I?ve uploaded PyObjC 6.0.1 to PyPI. This fixes the annoying lines of debug output in the 6.0 release. Ronald ? Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.bw at me.com Tue Oct 29 14:34:05 2019 From: ben.bw at me.com (Ben Byram-Wigfield) Date: Tue, 29 Oct 2019 18:34:05 +0000 Subject: [Pythonmac-SIG] Catalina issue Message-ID: <49224C62-4F25-4FC0-8205-F90D1E6825D9@me.com> 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. From ronaldoussoren at mac.com Tue Oct 29 16:45:15 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Tue, 29 Oct 2019 21:45:15 +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: <956BCFB5-FE2C-43B2-86B5-79E83C8B7B1F@mac.com> Hi, Thanks for the report. I can reproduce this in a VM running 10.15.1 (using a virtualenv environment). I?ve filed issue #282 about this, to help me remember to investigate this. /usr/bin/python on the same system works fine, but is using an ancient version of PyObjC. 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: