TortoiseHg Error since 6.2 on macOS M2: Python ImportError: python3.9/PyQt5/QtCore.abi3.so incompatible architecture (have (x86_64), need (arm64e))
When I try to run TortoiseHg version 6.2 on a new M2 (ARM64) MacBook Air running macOS Monterey 12.5 (21G72), I get the following error dialog:
In the console app, I see a bunch of sandbox errors about python 3.9 .so files. This error is a regression in TortoiseHg version 6.2. Version 6.1.3 works fine.
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/zlib.cpython-39-darwin.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_heapq.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_ctypes.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_struct.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_pickle.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_socket.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/math.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/select.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/array.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/grp.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_posixsubprocess.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_opcode.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/binascii.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_bisect.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_random.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_sha512.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_datetime.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_ssl.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_hashlib.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_blake2.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_bz2.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_lzma.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_scproxy.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_json.so
kernel Sandbox: logd_helper(2401) deny(1) file-read-data /Applications/TortoiseHg.app/Contents/Resources/lib/python3.9/lib-dynload/_queue.so
Edited by Chris Peterson