Can't find gir directories on Homebrew managed packages
Mostly an issue to raise awareness and document it.
I install my packages with homebrew so gir directories are under /opt/homebrew
(also known as HOMEBREW_PREFIX
).
The only "weird" thing about my set up is that I specify the Python version I want to use with brew install python@<version>
for example brew install python@3.11
.
Now comes the guessing part of my afternoon, installing Python this way, requires to add it to the PATH, /opt/homebrew/opt/python@3.11/bin:/opt/homebrew/opt/python@3.11/libexec/bin:
which I guess (I didn't investigate), makes sys.prefix
❯ python -c 'import sys; print(sys.prefix)'
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11
Compilation is kind of successful after the related merge request, until you stumble onto #8055 and you get a big native Apple exception screen with
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: A8406481-EFCE-4561-8CEE-E6579E8E1035
CrashReporter Key: D5C66B93-74DE-BB5F-D279-CB13C27C167A
Hardware Model: MacBookPro18,2
Process: tryton [10842]
Path: /Volumes/*/Tryton.app/Contents/MacOS/tryton
Identifier: Tryton
Version: ???
Code Type: ARM-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: Tryton [31455]
Date/Time: 2023-05-31 21:52:48.1432 +0200
Launch Time: 2023-05-31 21:52:48.1062 +0200
OS Version: macOS 13.3.1 (22E772610a)
Release Type: User
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Subtype: UNKNOWN_0x32 at 0x0000000102f48000
Exception Codes: 0x0000000000000032, 0x0000000102f48000
And theres when I give up.