Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

f54da

macrumors 6502a
Original poster
Dec 22, 2021
503
185
@startergo yes 1.10.8 is the last "official" version of golang to run on 10.9. I actually kind of like this version because I use go in a very unorthodox way (I patched out the compiler nagging, use relative imports liberally, and store 3rd party deps in GOROOT so don't use go modules at all. All of this makes it behave properly like C or python.). The networking stdlib is a bit out of date on go 1.10 though, you'll want to backport from newer versions.

You can get go 1.12 running without issue, perfectly natively without any linking nonsense, see https://av86743.github.io/.

Macports has go 1.17, it should actually be possible to get 1.18 and 1.19 as well by patching SecTrust function, see https://github.com/golang/go/issues/52112. It's also possible to avoid patching Go and instead patch legacysupport to poylfill this.

Go 1.20 is likely not feasible without more involved patching, probably have to revert this commit. Apparently it fixes a bug, but the bug was present in older versions as well and may not even be an issue with 10.9 since it's something particular about libc & threading. Maybe if you really want you could use the private-variant of that.

There are known certificate related issues if you're using go 1.10, see https://github.com/golang/go/issues/24652
 

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
I am like in a catch22 situation. Old project using python2 and Golang works fine as far as python is concerned on Mavericks, but Go doesn't work there. In Sonoma I get a crash using python2 but the Go part works fine.
Code:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [32305]
Path:                  /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               2.7.18 (2.7.18)
Code Type:             X86-64 (Native)
Parent Process:        bash [32249]
Responsible:           Terminal [2166]
User ID:               0

Date/Time:             2024-05-19 15:12:16.9282 -0400
OS Version:            macOS 14.4.1 (23E224)
Report Version:        12
Bridge OS Version:     8.4 (21P4222)
Anonymous UUID:        95941D1C-B79A-7E2B-6F89-AF18B17DC1E7

Sleep/Wake UUID:       336334CA-DE1E-4205-AB69-49676887DE75

Time Awake Since Boot: 230000 seconds
Time Since Wake:       148024 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00003b8b8181c478
Exception Codes:       0x0000000000000001, 0x00003b8b8181c478

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [32305]

VM Region Info: 0x3b8b8181c478 is not in any region.  Bytes after previous region: 65465817224313  Bytes before following region: 40082757008264
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file                 10cc8e000-10eb9f000    [ 31.1M] r--/r-x SM=ALI  Object_id=e70afa55
--->  GAP OF 0x5ffef1461000 BYTES
      MALLOC_NANO              600000000000-600020000000 [512.0M] rw-/rwx SM=PRV

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                       0x7ff8005b565d objc_msgSend + 29
1   _objc.so                                 0x10c2c9a02 -[OC_PythonData length] + 146
2   CoreFoundation                        0x7ff800a3465a _appendObject + 454
3   CoreFoundation                        0x7ff800a33bcc __CFBinaryPlistWriteOrPresize + 633
4   CoreFoundation                        0x7ff800a336de CFPropertyListWrite + 198
5   CoreFoundation                        0x7ff800a335a8 CFPropertyListWriteToStream + 99
6   Foundation                            0x7ff801aa9deb +[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] + 66
7   _objc.so                                 0x10c2ca987 ffi_call_unix64 + 79
8   _objc.so                                 0x10c2cb215 ffi_call + 901
9   _objc.so                                 0x10c2ae160 PyObjCFFI_Caller + 1904
10  _objc.so                                 0x10c28b985 objcsel_call + 597
11  Python                                   0x10c84c2a3 PyObject_Call + 99
12  Python                                   0x10c8ef820 PyEval_EvalFrameEx + 29392
13  Python                                   0x10c8e8242 PyEval_EvalCodeEx + 1538
14  Python                                   0x10c8f4a85 fast_function + 117
15  Python                                   0x10c8ef744 PyEval_EvalFrameEx + 29172
16  Python                                   0x10c8f4b22 fast_function + 274
17  Python                                   0x10c8ef744 PyEval_EvalFrameEx + 29172
18  Python                                   0x10c8e8242 PyEval_EvalCodeEx + 1538
19  Python                                   0x10c8e7c36 PyEval_EvalCode + 54
20  Python                                   0x10c917214 PyRun_FileExFlags + 164
21  Python                                   0x10c916d91 PyRun_SimpleFileExFlags + 769
22  Python                                   0x10c92c5b8 Py_Main + 3096
23  dyld                                  0x7ff8005f7366 start + 1942

Thread 1:
0   libsystem_pthread.dylib               0x7ff80097eac0 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000001  rbx: 0x00006000029c5b90  rcx: 0x00000000932437fb  rdx: 0x000000000000000b
  rdi: 0x00006000000ec460  rsi: 0x00007ff82092cf82  rbp: 0x00007ff7b3e60bd0  rsp: 0x00007ff7b3e60b98
   r8: 0x0000000000000091   r9: 0x000000009344380b  r10: 0x00003b8b8181c460  r11: 0x00007ff82092cf82
  r12: 0x00007ff8005b5640  r13: 0x00007f82761ea000  r14: 0x0000000000000001  r15: 0x00006000000ec460
  rip: 0x00007ff8005b565d  rfl: 0x0000000000010206  cr2: 0x00003b8b8181c478
 
Logical CPU:     0
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 0 instruction stream:
  01 76 17 49 83 c3 10 49-3b 33 75 f1 49 8b 43 08  .v.I...I;3u.I.C.
  48 83 f8 00 74 03 4c 31-d0 c3 eb 00 31 c0 c3 66  H...t.L1....1..f
  66 66 66 66 66 2e 0f 1f-84 00 00 00 00 00 66 66  fffff.........ff
  66 66 66 66 2e 0f 1f 84-00 00 00 00 00 66 0f 1f  ffff.........f..
  44 00 00 48 85 ff 2e 74-72 40 f6 c7 01 2e 75 76  D..H...tr@....uv
  49 ba f8 ff ff ff ff 7f-00 00 4c 23 17 49 89 f3  I.........L#.I..
 [45]23 5a 18 49 c1 e3 04-4d 03 5a 10 49 3b 33 75  E#Z.I...M.Z.I;3u    <==
  0a 4d 8b 5b 08 4d 31 d3-41 ff e3 49 83 3b 01 76  .M.[.M1.A..I.;.v
  13 49 83 c3 10 49 3b 33-75 f1 4d 8b 5b 08 4d 31  .I...I;3u.M.[.M1
  d3 41 ff e3 72 70 4d 8b-5b 08 eb 0a 49 83 3b 01  .A..rpM.[...I.;.
  76 13 49 83 c3 10 49 3b-33 75 f1 4d 8b 5b 08 4d  v.I...I;3u.M.[.M
  31 d3 41 ff e3 eb 4f 0f-1f 40 00 31 c0 31 d2 0f  1.A...O..@.1.1..

Binary Images:
       0x10c49f000 -        0x10c4a5fff _Foundation.so (*) <3bcb7702-93c5-3936-b94b-8b9f59ee028c> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Foundation/_Foundation.so
       0x10c24f000 -        0x10c250fff _inlines.so (*) <03750670-8531-325b-845c-d3686741812e> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Foundation/_inlines.so
       0x10c490000 -        0x10c497fff _CoreFoundation.so (*) <ef42b026-d8bc-3c87-8601-66668ec289f6> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CoreFoundation/_CoreFoundation.so
       0x10c14d000 -        0x10c14dfff _inlines.so (*) <6f07d3cc-787c-3481-a227-dc7d56046d58> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CoreFoundation/_inlines.so
       0x10c450000 -        0x10c478fff pyexpat.so (*) <9afe75e1-9329-3527-aa77-d350566fe45c> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/pyexpat.so
       0x10c3a2000 -        0x10c3a3fff fcntl.so (*) <001c3929-b604-3c4c-a03f-48c31b51e37a> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x10c32a000 -        0x10c32afff _scproxy.so (*) <4696782c-f605-3e7a-a51c-24c21c896655> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
       0x10c3f5000 -        0x10c3fffff _ssl.so (*) <161ed713-bb6c-3101-8afb-5a2845961434> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
       0x10c3dc000 -        0x10c3e4fff _socket.so (*) <15929c21-63b4-3bc7-991b-413bf32fc5ba> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
       0x10c3bf000 -        0x10c3cbfff datetime.so (*) <c5d6147c-dc67-3989-8eff-3a108d20b2ba> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x10c394000 -        0x10c397fff strop.so (*) <ae8f6b0b-a505-31c1-a21d-8f779dc6c7bb> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x10c345000 -        0x10c346fff cStringIO.so (*) <53a10144-084b-3151-8667-5f180536838c> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x10c238000 -        0x10c238fff grp.so (*) <5ba67707-cc8e-3b4e-8d14-a44132e6a388> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
       0x10c385000 -        0x10c389fff bz2.so (*) <ed2b2680-723c-3444-ac8d-f380f523da84> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/bz2.so
       0x10c337000 -        0x10c33afff zlib.so (*) <f6ef59f6-633b-3830-9266-a0e35ea99d2e> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
       0x10c243000 -        0x10c244fff time.so (*) <0e4a2a68-d7d5-3439-b7df-b54d421ca245> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x10c357000 -        0x10c368fff _io.so (*) <8125add5-94fb-3629-a37d-982182e054f4> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
       0x10c22f000 -        0x10c230fff _functools.so (*) <982254b7-6149-3eb6-be3f-1389556758ce> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
       0x10c256000 -        0x10c267fff _ctypes.so (*) <48eaa913-9ed7-3897-9c9d-849b67afc6c9> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
       0x10c157000 -        0x10c158fff _heapq.so (*) <5487aea5-e296-3090-80cd-a730698b2424> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x10c221000 -        0x10c224fff _collections.so (*) <6dd2e113-cafa-387a-88b8-0fb87c52dd18> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x10c285000 -        0x10c2d9fff _objc.so (*) <c8d62a05-dbd8-345f-9bd0-598b1b23e09a> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/objc/_objc.so
       0x10c1cc000 -        0x10c1d1fff itertools.so (*) <04a88833-1c98-368c-a605-b57c842fbcd4> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x10c13d000 -        0x10c140fff _struct.so (*) <b5aea8bd-4fad-3e52-856e-e9d3d256b8ca> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x10c12d000 -        0x10c130fff operator.so (*) <9d8076ec-1e0c-3593-b3fd-010bca9f1a6e> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x10c0ea000 -        0x10c0ebfff _random.so (*) <cfeef859-6c8f-30ef-a361-cc36dcc917d4> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x10c100000 -        0x10c102fff binascii.so (*) <173238fa-2632-35d8-b780-a3b731326057> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x10c10f000 -        0x10c113fff math.so (*) <c3c0d175-6689-333e-a3bf-650acd4345d1> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x10c0f5000 -        0x10c0f7fff _hashlib.so (*) <7f42eb2a-c886-3508-989b-6fa7fe642fe7> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x10c166000 -        0x10c1a9fff libssl.1.0.0.dylib (*) <a7870411-b1ba-3249-bf18-197443d07cde> /Library/Frameworks/Python.framework/Versions/2.7/lib/libssl.1.0.0.dylib
       0x10ca59000 -        0x10cc0cfff libcrypto.1.0.0.dylib (*) <6e9a8db7-964f-36c5-99f0-0f322e25c6bc> /Library/Frameworks/Python.framework/Versions/2.7/lib/libcrypto.1.0.0.dylib
       0x10c0e1000 -        0x10c0e2fff _locale.so (*) <5eb18263-938f-372f-b9c9-61f95d613013> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x10c83e000 -        0x10c96ffff org.python.python (2.7.18, (c) 2001-2019 Python Software Foundation.) <cb04d33f-fae0-3f8f-ae1a-4b13f2012cc9> /Library/Frameworks/Python.framework/Versions/2.7/Python
       0x10c09c000 -        0x10c09cfff org.python.python (2.7.18) <8a9f3db8-3768-3fd8-a11f-117705981dee> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
    0x7ff8005af000 -     0x7ff8005f0ffb libobjc.A.dylib (*) <d5807589-201a-32cf-9dfa-dbd41e855f4c> /usr/lib/libobjc.A.dylib
    0x7ff8009e4000 -     0x7ff800e7efec com.apple.CoreFoundation (6.9) <2780e326-c5fd-3a12-b906-b9449288005c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff8019b3000 -     0x7ff8025e9ff3 com.apple.Foundation (6.9) <2909ab97-ca3a-3424-bf8f-cd578c176777> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7ff8005f1000 -     0x7ff800681b5f dyld (*) <899f1e34-b624-3162-8003-04daa6829461> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff80097d000 -     0x7ff800988ff7 libsystem_pthread.dylib (*) <5a006814-83f4-3c80-ab1f-528cdd08c0ff> /usr/lib/system/libsystem_pthread.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=408.4M resident=0K(0%) swapped_out_or_unallocated=408.4M(100%)
Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)

                                VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Activity Tracing                   256K        1
Kernel Alloc Once                    8K        1
MALLOC                             1.6G       33
MALLOC guard page                   24K        6
STACK GUARD                       56.0M        2
Stack                             8712K        2
VM_ALLOCATE                        244K        2
__DATA                            16.4M      317
__DATA_CONST                      11.2M      177
__DATA_DIRTY                       457K       94
__FONT_DATA                        2352        1
__LINKEDIT                       182.0M       35
__OBJC_RO                         71.7M        1
__OBJC_RW                         2196K        2
__TEXT                           226.4M      334
dyld private memory                260K        2
mapped file                       31.1M        3
shared memory                       44K        5
===========                     =======  =======
TOTAL                              2.2G     1018



-----------
Full Report
-----------

{"app_name":"Python","timestamp":"2024-05-19 15:12:17.00 -0400","app_version":"2.7.18","slice_uuid":"8a9f3db8-3768-3fd8-a11f-117705981dee","build_version":"2.7.18","platform":1,"bundleID":"org.python.python","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.4.1 (23E224)","roots_installed":0,"name":"Python","incident_id":"FC2A0EE6-DA95-4EE7-8803-A29529C0D820"}
{
  "uptime" : 230000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 0,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro15,1",
  "coalitionID" : 159503,
  "osVersion" : {
    "train" : "macOS 14.4.1",
    "build" : "23E224",
    "releaseType" : "User"
  },
  "captureTime" : "2024-05-19 15:12:16.9282 -0400",
  "codeSigningMonitor" : 0,
  "incident" : "FC2A0EE6-DA95-4EE7-8803-A29529C0D820",
  "pid" : 32305,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-05-19 15:12:16.2305 -0400",
  "procStartAbsTime" : 234378575322359,
  "procExitAbsTime" : 234379272555811,
  "procName" : "Python",
  "procPath" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/Resources\/Python.app\/Contents\/MacOS\/Python",
  "bundleInfo" : {"CFBundleShortVersionString":"2.7.18","CFBundleVersion":"2.7.18","CFBundleIdentifier":"org.python.python"},
  "storeInfo" : {"deviceIdentifierForVendor":"49FC17E2-71DC-5081-A5F6-65C1CBF6601B","thirdParty":true},
  "parentProc" : "bash",
  "parentPid" : 32249,
  "coalitionName" : "com.apple.Terminal",
  "crashReporterKey" : "95941D1C-B79A-7E2B-6F89-AF18B17DC1E7",
  "responsiblePid" : 2166,
  "responsibleProc" : "Terminal",
  "codeSigningID" : "org.python.python",
  "codeSigningTeamID" : "DJ3H93M7VJ",
  "codeSigningFlags" : 570490881,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "wakeTime" : 148024,
  "bridgeVersion" : {"build":"21P4222","train":"8.4"},
  "sleepWakeUUID" : "336334CA-DE1E-4205-AB69-49676887DE75",
  "sip" : "enabled",
  "vmRegionInfo" : "0x3b8b8181c478 is not in any region.  Bytes after previous region: 65465817224313  Bytes before following region: 40082757008264\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      mapped file                 10cc8e000-10eb9f000    [ 31.1M] r--\/r-x SM=ALI  Object_id=e70afa55\n--->  GAP OF 0x5ffef1461000 BYTES\n      MALLOC_NANO              600000000000-600020000000 [512.0M] rw-\/rwx SM=PRV  ",
  "exception" : {"codes":"0x0000000000000001, 0x00003b8b8181c478","rawCodes":[1,65470359258232],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x00003b8b8181c478"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":32305},
  "vmregioninfo" : "0x3b8b8181c478 is not in any region.  Bytes after previous region: 65465817224313  Bytes before following region: 40082757008264\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      mapped file                 10cc8e000-10eb9f000    [ 31.1M] r--\/r-x SM=ALI  Object_id=e70afa55\n--->  GAP OF 0x5ffef1461000 BYTES\n      MALLOC_NANO              600000000000-600020000000 [512.0M] rw-\/rwx SM=PRV  ",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":4064932,"instructionState":{"instructionStream":{"bytes":[1,118,23,73,131,195,16,73,59,51,117,241,73,139,67,8,72,131,248,0,116,3,76,49,208,195,235,0,49,192,195,102,102,102,102,102,102,46,15,31,132,0,0,0,0,0,102,102,102,102,102,102,46,15,31,132,0,0,0,0,0,102,15,31,68,0,0,72,133,255,46,116,114,64,246,199,1,46,117,118,73,186,248,255,255,255,255,127,0,0,76,35,23,73,137,243,69,35,90,24,73,193,227,4,77,3,90,16,73,59,51,117,10,77,139,91,8,77,49,211,65,255,227,73,131,59,1,118,19,73,131,195,16,73,59,51,117,241,77,139,91,8,77,49,211,65,255,227,114,112,77,139,91,8,235,10,73,131,59,1,118,19,73,131,195,16,73,59,51,117,241,77,139,91,8,77,49,211,65,255,227,235,79,15,31,64,0,49,192,49,210,15],"offset":96}},"threadState":{"r13":{"value":140198304194560},"rax":{"value":1},"rflags":{"value":66054},"cpu":{"value":0},"r14":{"value":1},"rsi":{"value":140703675109250,"objc-selector":"length"},"r8":{"value":145},"cr2":{"value":65470359258232},"rdx":{"value":11},"r10":{"value":65470359258208},"r9":{"value":2470721547},"r15":{"value":105553117234272},"rbx":{"value":105553160067984},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":140703675109250,"objc-selector":"length"},"rip":{"value":140703134602845,"matchesCrashFrame":1},"rbp":{"value":140701851847632},"rsp":{"value":140701851847576},"r12":{"value":140703134602816,"symbolLocation":0,"symbol":"objc_msgSend"},"rcx":{"value":2468624379},"flavor":"x86_THREAD_STATE","rdi":{"value":105553117234272}},"queue":"com.apple.main-thread","frames":[{"imageOffset":26205,"symbol":"objc_msgSend","symbolLocation":29,"imageIndex":34},{"imageOffset":281090,"symbol":"-[OC_PythonData length]","symbolLocation":146,"imageIndex":21},{"imageOffset":329306,"symbol":"_appendObject","symbolLocation":454,"imageIndex":35},{"imageOffset":326604,"symbol":"__CFBinaryPlistWriteOrPresize","symbolLocation":633,"imageIndex":35},{"imageOffset":325342,"symbol":"CFPropertyListWrite","symbolLocation":198,"imageIndex":35},{"imageOffset":325032,"symbol":"CFPropertyListWriteToStream","symbolLocation":99,"imageIndex":35},{"imageOffset":1011179,"symbol":"+[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:]","symbolLocation":66,"imageIndex":36},{"imageOffset":285063,"symbol":"ffi_call_unix64","symbolLocation":79,"imageIndex":21},{"imageOffset":287253,"symbol":"ffi_call","symbolLocation":901,"imageIndex":21},{"imageOffset":168288,"symbol":"PyObjCFFI_Caller","symbolLocation":1904,"imageIndex":21},{"imageOffset":27013,"symbol":"objcsel_call","symbolLocation":597,"imageIndex":21},{"imageOffset":58019,"symbol":"PyObject_Call","symbolLocation":99,"imageIndex":32},{"imageOffset":727072,"symbol":"PyEval_EvalFrameEx","symbolLocation":29392,"imageIndex":32},{"imageOffset":696898,"symbol":"PyEval_EvalCodeEx","symbolLocation":1538,"imageIndex":32},{"imageOffset":748165,"symbol":"fast_function","symbolLocation":117,"imageIndex":32},{"imageOffset":726852,"symbol":"PyEval_EvalFrameEx","symbolLocation":29172,"imageIndex":32},{"imageOffset":748322,"symbol":"fast_function","symbolLocation":274,"imageIndex":32},{"imageOffset":726852,"symbol":"PyEval_EvalFrameEx","symbolLocation":29172,"imageIndex":32},{"imageOffset":696898,"symbol":"PyEval_EvalCodeEx","symbolLocation":1538,"imageIndex":32},{"imageOffset":695350,"symbol":"PyEval_EvalCode","symbolLocation":54,"imageIndex":32},{"imageOffset":889364,"symbol":"PyRun_FileExFlags","symbolLocation":164,"imageIndex":32},{"imageOffset":888209,"symbol":"PyRun_SimpleFileExFlags","symbolLocation":769,"imageIndex":32},{"imageOffset":976312,"symbol":"Py_Main","symbolLocation":3096,"imageIndex":32},{"imageOffset":25446,"symbol":"start","symbolLocation":1942,"imageIndex":37}]},{"id":4064933,"frames":[{"imageOffset":6848,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":39}],"threadState":{"r13":{"value":0},"rax":{"value":33554800},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":4099},"r8":{"value":409604},"cr2":{"value":0},"rdx":{"value":123145402634240},"r10":{"value":0},"r9":{"value":18446744073709551615},"r15":{"value":0},"rbx":{"value":123145403158528},"trap":{"value":133},"err":{"value":33554800},"r11":{"value":582},"rip":{"value":140703138572992},"rbp":{"value":0},"rsp":{"value":123145403158528},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":123145403158528}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4501139456,
    "size" : 28672,
    "uuid" : "3bcb7702-93c5-3936-b94b-8b9f59ee028c",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/site-packages\/Foundation\/_Foundation.so",
    "name" : "_Foundation.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498714624,
    "size" : 8192,
    "uuid" : "03750670-8531-325b-845c-d3686741812e",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/site-packages\/Foundation\/_inlines.so",
    "name" : "_inlines.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4501078016,
    "size" : 32768,
    "uuid" : "ef42b026-d8bc-3c87-8601-66668ec289f6",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/site-packages\/CoreFoundation\/_CoreFoundation.so",
    "name" : "_CoreFoundation.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497657856,
    "size" : 4096,
    "uuid" : "6f07d3cc-787c-3481-a227-dc7d56046d58",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/site-packages\/CoreFoundation\/_inlines.so",
    "name" : "_inlines.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500815872,
    "size" : 167936,
    "uuid" : "9afe75e1-9329-3527-aa77-d350566fe45c",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/pyexpat.so",
    "name" : "pyexpat.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500103168,
    "size" : 8192,
    "uuid" : "001c3929-b604-3c4c-a03f-48c31b51e37a",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/fcntl.so",
    "name" : "fcntl.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4499611648,
    "size" : 4096,
    "uuid" : "4696782c-f605-3e7a-a51c-24c21c896655",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_scproxy.so",
    "name" : "_scproxy.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500443136,
    "size" : 45056,
    "uuid" : "161ed713-bb6c-3101-8afb-5a2845961434",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_ssl.so",
    "name" : "_ssl.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500340736,
    "size" : 36864,
    "uuid" : "15929c21-63b4-3bc7-991b-413bf32fc5ba",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_socket.so",
    "name" : "_socket.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500221952,
    "size" : 53248,
    "uuid" : "c5d6147c-dc67-3989-8eff-3a108d20b2ba",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/datetime.so",
    "name" : "datetime.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4500045824,
    "size" : 16384,
    "uuid" : "ae8f6b0b-a505-31c1-a21d-8f779dc6c7bb",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/strop.so",
    "name" : "strop.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4499722240,
    "size" : 8192,
    "uuid" : "53a10144-084b-3151-8667-5f180536838c",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/cStringIO.so",
    "name" : "cStringIO.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498620416,
    "size" : 4096,
    "uuid" : "5ba67707-cc8e-3b4e-8d14-a44132e6a388",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/grp.so",
    "name" : "grp.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4499984384,
    "size" : 20480,
    "uuid" : "ed2b2680-723c-3444-ac8d-f380f523da84",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/bz2.so",
    "name" : "bz2.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4499664896,
    "size" : 16384,
    "uuid" : "f6ef59f6-633b-3830-9266-a0e35ea99d2e",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/zlib.so",
    "name" : "zlib.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498665472,
    "size" : 8192,
    "uuid" : "0e4a2a68-d7d5-3439-b7df-b54d421ca245",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/time.so",
    "name" : "time.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4499795968,
    "size" : 73728,
    "uuid" : "8125add5-94fb-3629-a37d-982182e054f4",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_io.so",
    "name" : "_io.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498583552,
    "size" : 8192,
    "uuid" : "982254b7-6149-3eb6-be3f-1389556758ce",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_functools.so",
    "name" : "_functools.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498743296,
    "size" : 73728,
    "uuid" : "48eaa913-9ed7-3897-9c9d-849b67afc6c9",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_ctypes.so",
    "name" : "_ctypes.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497698816,
    "size" : 8192,
    "uuid" : "5487aea5-e296-3090-80cd-a730698b2424",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_heapq.so",
    "name" : "_heapq.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498526208,
    "size" : 16384,
    "uuid" : "6dd2e113-cafa-387a-88b8-0fb87c52dd18",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_collections.so",
    "name" : "_collections.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498935808,
    "size" : 348160,
    "uuid" : "c8d62a05-dbd8-345f-9bd0-598b1b23e09a",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/site-packages\/objc\/_objc.so",
    "name" : "_objc.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4498178048,
    "size" : 24576,
    "uuid" : "04a88833-1c98-368c-a605-b57c842fbcd4",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/itertools.so",
    "name" : "itertools.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497592320,
    "size" : 16384,
    "uuid" : "b5aea8bd-4fad-3e52-856e-e9d3d256b8ca",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_struct.so",
    "name" : "_struct.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497526784,
    "size" : 16384,
    "uuid" : "9d8076ec-1e0c-3593-b3fd-010bca9f1a6e",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/operator.so",
    "name" : "operator.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497252352,
    "size" : 8192,
    "uuid" : "cfeef859-6c8f-30ef-a361-cc36dcc917d4",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_random.so",
    "name" : "_random.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497342464,
    "size" : 12288,
    "uuid" : "173238fa-2632-35d8-b780-a3b731326057",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/binascii.so",
    "name" : "binascii.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497403904,
    "size" : 20480,
    "uuid" : "c3c0d175-6689-333e-a3bf-650acd4345d1",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/math.so",
    "name" : "math.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497297408,
    "size" : 12288,
    "uuid" : "7f42eb2a-c886-3508-989b-6fa7fe642fe7",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_hashlib.so",
    "name" : "_hashlib.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497760256,
    "size" : 278528,
    "uuid" : "a7870411-b1ba-3249-bf18-197443d07cde",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/libssl.1.0.0.dylib",
    "name" : "libssl.1.0.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4507144192,
    "size" : 1785856,
    "uuid" : "6e9a8db7-964f-36c5-99f0-0f322e25c6bc",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/libcrypto.1.0.0.dylib",
    "name" : "libcrypto.1.0.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4497215488,
    "size" : 8192,
    "uuid" : "5eb18263-938f-372f-b9c9-61f95d613013",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/lib\/python2.7\/lib-dynload\/_locale.so",
    "name" : "_locale.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4504936448,
    "CFBundleShortVersionString" : "2.7.18, (c) 2001-2019 Python Software Foundation.",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 1253376,
    "uuid" : "cb04d33f-fae0-3f8f-ae1a-4b13f2012cc9",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/Python",
    "name" : "Python",
    "CFBundleVersion" : "2.7.18"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4496932864,
    "CFBundleShortVersionString" : "2.7.18",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 4096,
    "uuid" : "8a9f3db8-3768-3fd8-a11f-117705981dee",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/Resources\/Python.app\/Contents\/MacOS\/Python",
    "name" : "Python",
    "CFBundleVersion" : "2.7.18"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703134576640,
    "size" : 270332,
    "uuid" : "d5807589-201a-32cf-9dfa-dbd41e855f4c",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703138988032,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 4829165,
    "uuid" : "2780e326-c5fd-3a12-b906-b9449288005c",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "2420"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703155564544,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 12808180,
    "uuid" : "2909ab97-ca3a-3424-bf8f-cd578c176777",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "2420"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703134846976,
    "size" : 592736,
    "uuid" : "899f1e34-b624-3162-8003-04daa6829461",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703138566144,
    "size" : 49144,
    "uuid" : "5a006814-83f4-3c80-ab1f-528cdd08c0ff",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703134150656,
  "size" : 25769803776,
  "uuid" : "59b61d18-2d12-3a06-a536-f0b08e953ca2"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=408.4M resident=0K(0%) swapped_out_or_unallocated=408.4M(100%)\nWritable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                             1.6G       33 \nMALLOC guard page                   24K        6 \nSTACK GUARD                       56.0M        2 \nStack                             8712K        2 \nVM_ALLOCATE                        244K        2 \n__DATA                            16.4M      317 \n__DATA_CONST                      11.2M      177 \n__DATA_DIRTY                       457K       94 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       182.0M       35 \n__OBJC_RO                         71.7M        1 \n__OBJC_RW                         2196K        2 \n__TEXT                           226.4M      334 \ndyld private memory                260K        2 \nmapped file                       31.1M        3 \nshared memory                       44K        5 \n===========                     =======  ======= \nTOTAL                              2.2G     1018 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "fcd29f97535dc3f85a1b260bb28fa39a0527fd3c",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "648c94d4ebdf9e3e398fa708",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_NL_OVERRIDES" : "65a8104b6712a43e7922cab8"
      },
      "deploymentId" : 240000171
    },
    {
      "rolloutId" : "639124e81d92412bfb4880b3",
      "factorPackIds" : {

      },
      "deploymentId" : 240000012
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "2dffbe18-a39a-4f33-ada9-2cce30af39ca",
      "experimentId" : "6384d56b96e8d228551ec182",
      "deploymentId" : 400000032
    }
  ]
}
}

Model: MacBookPro15,1, BootROM 2022.100.22.0.0 (iBridge: 21.16.4222.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 32 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Graphics: Radeon Pro 560X, Radeon Pro 560X, PCIe, 4 GB
Display: Color LCD, 2880 x 1800 Retina, Main, MirrorOff, Online
Display: SMS24A450/460, 1920 x 1080 (1080p FHD - Full High Definition), MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 16 GB, DDR4, 2400 MHz, Micron, 16ATS2G64HZ-2G6B1
Memory Module: BANK 2/ChannelB-DIMM0, 16 GB, DDR4, 2400 MHz, Micron, 16ATS2G64HZ-2G6B1
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 10 2023 12:30:19 version 9.30.503.0.32.5.92 FWID 01-88a8883
AirPort:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Thunderbolt Bridge, Ethernet, bridge0
Network Service: Wi-Fi, AirPort, en0
Network Service: Tailscale Tunnel, VPN (io.tailscale.ipn.macos), utun4
PCI Card: ethernet, Ethernet Controller, Thunderbolt@195,0,0
PCI Card: pci1b73,1100, USB eXtensible Host Controller, Thunderbolt@196,0,0
USB Device: USB31Bus
USB Device: USB30Bus
USB Device: USB audio CODEC
USB Device: T2Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5
Thunderbolt Device: SD5200T, Kensington Computer Products Group, 3, 23.1
Here is the project:
But there is more catch22's. I have modified the python2 code to python 3 and I get to:
Code:
sudo prepare_iso/prepare_iso.sh "/Applications/Install OS X Mavericks.app" out -u admin -p 123 -i prepare_iso/support/vagrant.jpg
-- Attaching input OS X installer image with shadow file..
expected   CRC32 $B65198C1
/dev/disk9              Apple_partition_scheme         
/dev/disk9s1            Apple_partition_map           
/dev/disk9s2            Apple_HFS                          /private/tmp/veewee-osx-esd.gmCS
-- Mounting BaseSystem..
Checksumming Driver Descriptor Map (DDM : 0)…
     Driver Descriptor Map (DDM : 0): verified   CRC32 $C156524D
Checksumming  (Apple_Free : 1)…
                    (Apple_Free : 1): verified   CRC32 $00000000
Checksumming Apple (Apple_partition_map : 2)…
     Apple (Apple_partition_map : 2): verified   CRC32 $91289632
Checksumming disk image (Apple_HFS : 3)…
...........................................................................................................................................................................................................
          disk image (Apple_HFS : 3): verified   CRC32 $B1441639
Checksumming  (Apple_Free : 4)…
                    (Apple_Free : 4): verified   CRC32 $00000000
verified   CRC32 $FDDE11E4
/dev/disk11             Apple_partition_scheme         
/dev/disk11s1           Apple_partition_map           
/dev/disk11s2           Apple_HFS                          /private/tmp/veewee-osx-basesystem.Nr8b
-- OS X version detected: 10.9.5, build 13F34
-- Making firstboot installer pkg..
/Users/mbp151/osx-vm-templates/prepare_iso/create_firstboot_pkg.sh: /Users/mbp151/osx-vm-templates/prepare_iso/support/generate_shadowhash: /usr/bin/php: bad interpreter: No such file or directory

Attached are the python3 conversions.
 

Attachments

  • support.zip
    16.1 KB · Views: 29
Last edited:

f54da

macrumors 6502a
Original poster
Dec 22, 2021
503
185
Go does work fine on mavericks though, up to 1.19 if you really push it? See my above post. Also the crash on Sonoma seems like a bug in PyObjC perhaps, you should report to them.
 
  • Like
Reactions: startergo

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
Go does work fine on mavericks though, up to 1.19 if you really push it? See my above post. Also the crash on Sonoma seems like a bug in PyObjC perhaps, you should report to them.
Thanks. It looks like that because it works with the integrated Python 2 in Maverics which comes with pyObjC integrated. I had to install it in Sonoma to the Python 2.7 from the Python website with pip install pyobjc. Half a year ago I tried reporting a bug in Python2.7 to python. Guess what happened...

Code:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Is there a better way to install pyObjC in python 2.7?
 

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
There you go for PyobjC:

Supported platforms​

PyObjC supports Python 3.7 or later and does not support Python 2. PyObjC does not support other python implementation such as PyPy and Jython.

PyObjC is regularly tested on macOS 10.14 and should work on macOS 10.9 or later for the i386 and x86_64 architectures.

PyObjC only supports macOS, and is not supported on other platforms (iOS, Linux, ...).
And PHP is no more...
 
Last edited:

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
It looks like this project should still work in macOS 10.13 High Sierra or 10.14 Mojave and 10.15 Catalina fine as a whole:

macOS (née OS X, aka Darwin)

macOS Sierra 10.12 or higher requires Go 1.7.1 or above.

macOS Monterey 12 or higher requires Go 1.11 or above.

Go 1.15 and later only support macOS Sierra 10.12 or newer; see https://go.dev/doc/go1.15#darwin.

Go 1.17 and later only support macOS High Sierra 10.13 or newer; see https://go.dev/doc/go1.17#darwin.

Go 1.21 and later will support macOS Catalina 10.15 or newer; see https://go.dev/doc/go1.20#darwin.

We have builders for macOS 10.14 through macOS 13 as of 2023-05-31.

Darwin and iOS​

Go 1.20 is the last release that will run on macOS 10.13 High Sierra or 10.14 Mojave. Go 1.21 will require macOS 10.15 Catalina or later.
 
Last edited:

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
Got this error with suggested solution:
Code:
go mavericks$ ( cd /Users/mavericks/go/src/github.com/av86743/go && cd src && configure_ldflags='-L/usr/local/lib -lMacportsLegacySupport' && env GOROOT_BOOTSTRAP=/Users/mavericks/go/src/github.com/av86743/go GO_EXTLINK_ENABLED=1 GO_LDFLAGS='"-extldflags='"${configure_ldflags}"'"' BOOT_GO_LDFLAGS='-extldflags='"${configure_ldflags}"'' ./make.bash )
Building Go cmd/dist using /usr/local/go.
# github.com/av86743/go/src/cmd/dist
loadinternal: cannot find runtime/cgo
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x41636dd, 0x21)
    /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7fff5fbff8f8 sp=0x7fff5fbff8d8 pc=0x4027ed1
runtime.goenvs()
    /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7fff5fbff928 sp=0x7fff5fbff8f8 pc=0x4025a53
runtime.schedinit()
    /usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7fff5fbff990 sp=0x7fff5fbff928 pc=0x402a7c6
runtime.rt0_go(0x7fff5fbff9d0, 0x3, 0x7fff5fbff9d0, 0x0, 0x7fff89b0b5fd, 0x0, 0x3, 0x7fff5fbffb00, 0x7fff5fbffb10, 0x7fff5fbffb14, ...)
    /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7fff5fbff998 sp=0x7fff5fbff990 pc=0x404f0e4
 
Last edited:

Wowfunhappy

macrumors 68000
Mar 12, 2019
1,745
2,087
PyObjC is regularly tested on macOS 10.14 and should work on macOS 10.9 or later for the i386 and x86_64 architectures.
Fwiw, the latest versions do not work in practice. PyObjC 10.1 is the last version to work on Mavericks.

(By "work", I mean without changes; I did not dig into the source code or anything.)
 
Last edited:
  • Like
Reactions: startergo

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
Fwiw, the latest versions do not work in practice. PyObjC 10.1 is the last version to work on Mavericks.

(By which I mean, work without changes; I did not dig into the source code or anything.)
I got this and my program works:
Code:
python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import objc
>>> objc.__version__
'2.3.2a0'
 mavericks$ pip list | grep pyobjc-core
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality
pyobjc-core                            2.3.2a0

How did you install PyObjC 10.1?

pip install pyobjc-core==10.1
Requires: Python >=3.8

In Sonoma:
Code:
pip list | grep pyobjc-core
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
pyobjc-core                             5.3
 
Last edited:

f54da

macrumors 6502a
Original poster
Dec 22, 2021
503
185
>Got this error with suggested solution:

You're using the wrong fork I think? Skip down to "Parte 4" which has the final working version.
 
  • Like
Reactions: startergo

Wowfunhappy

macrumors 68000
Mar 12, 2019
1,745
2,087
If there's any interest, here's the copy of Python 3.10 I built for myself for use with Mavericks. It comes with a lot of common python libraries included (because finding the right versions is annoying, and because I dislike having to make virtual environments for everything). It'll actually work back to Snow Leopard, but some of the included libraries need Mavericks.


I'm not clear that this is useful to startergo, however, since he seems to specifically need Python 2?
 
  • Like
Reactions: startergo

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
If there's any interest, here's the copy of Python 3.10 I built for myself for use with Mavericks. It comes with a lot of common python libraries included. It'll actually work back to Snow Leopard, but some of the included libraries need Mavericks.


I'm not clear that this is useful to startergo, however, since he seems to specifically need Python 2?
I will try python3 on Mavericks for that project. As php is still there it should work I guess. As long as I can get the Golang go.
 

f54da

macrumors 6502a
Original poster
Dec 22, 2021
503
185
>here's the copy of Python 3.10 I built for myself for use with Mavericks

Did you have to do anything special here? I.e. is result be any different from just building 3.10 source directly?
 

Wowfunhappy

macrumors 68000
Mar 12, 2019
1,745
2,087
>here's the copy of Python 3.10 I built for myself for use with Mavericks

Did you have to do anything special here? I.e. is result be any different from just building 3.10 source directly?

For the most part, no, which is why I've never shared this before. At the same time, this ended up taking a solid day of work to put together. Some very messy build instructions are here: https://github.com/Wowfunhappy/Mavericks-Python-3

Getting SSL to work was a pain, and I believe I had some trouble with sqlite—I don't remember the details, but you can see in the link above I had to mess with install_name_tool.

Then, I had a lot of trouble building many of the common Python libraries. In a lot of cases, this was just a matter of finding the last compatible version, since they either didn't provide compatibility information or that information was wrong. Pillow wouldn't build properly until I removed the MacOSX10.10 sdk from my system (which is easy once you know to do that, and maddening up until that point), and Pyinstaller needed actual source code patches.

I'm not aware of any other way to install Python 3 without a package manager in a non-intrusive way. The official builds do work on Mavericks (although not Snow Leopard), but they clutter your Applications folder with mostly-useless apps.
 
Last edited:

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
In Sonoma I get a crash using python2 but the Go part works fine.
So, I just tried
Code:
pip install pyobjc-core==4.2.2
and it did not crash, but I got the same result as on python3:
Code:
sudo prepare_iso/prepare_iso.sh "/Applications/Install OS X Mavericks.app" out -u admin -p 123 -i prepare_iso/support/vagrant.jpg
Password:
-- Attaching input OS X installer image with shadow file..
expected   CRC32 $B65198C1
/dev/disk9              Apple_partition_scheme           
/dev/disk9s1            Apple_partition_map             
/dev/disk9s2            Apple_HFS                          /private/tmp/veewee-osx-esd.tjx0
-- Mounting BaseSystem..
Checksumming Driver Descriptor Map (DDM : 0)…
     Driver Descriptor Map (DDM : 0): verified   CRC32 $C156524D
Checksumming  (Apple_Free : 1)…
                    (Apple_Free : 1): verified   CRC32 $00000000
Checksumming Apple (Apple_partition_map : 2)…
     Apple (Apple_partition_map : 2): verified   CRC32 $91289632
Checksumming disk image (Apple_HFS : 3)…
...........................................................................................................................................................................................................
          disk image (Apple_HFS : 3): verified   CRC32 $B1441639
Checksumming  (Apple_Free : 4)…
                    (Apple_Free : 4): verified   CRC32 $00000000
verified   CRC32 $FDDE11E4
/dev/disk11             Apple_partition_scheme           
/dev/disk11s1           Apple_partition_map             
/dev/disk11s2           Apple_HFS                          /private/tmp/veewee-osx-basesystem.kcWy
-- OS X version detected: 10.9.5, build 13F34
-- Making firstboot installer pkg..
/Users/mbp151/osx-vm-templates/prepare_iso/create_firstboot_pkg.sh: /Users/mbp151/osx-vm-templates/prepare_iso/support/generate_shadowhash: /usr/bin/php: bad interpreter: No such file or directory


Also @startergo why can't you install php on modern osx (sonoma)?
I did but as you can see the generate_shadowhash looks for the /usr/bin/php which is not there...
 

f54da

macrumors 6502a
Original poster
Dec 22, 2021
503
185
>generate_shadowhash
It should be using /usr/env to look though, since there's no guarantee things would be installed in /usr/bin. I don't know where `generate_shadowhash` comes from, but I suppose it's not possible to modify it? (Worst case you could disable SIP then symlink something).

@Wowfunhappy
Doesn't official python still support 10.9 though? https://www.python.org/downloads/release/python-3123/ claims it works all the way down to 10.9. (And at the very least I know the official python 3.10 installer works, because that's what yt-dlp uses to build its legacy version).

Edit: I missed your note that you wanted snow leopard compatibility.
 

Wowfunhappy

macrumors 68000
Mar 12, 2019
1,745
2,087
@startergo

Are you running this on 10.9? `/usr/bin/php` definitely exists on 10.9 so that error is strange.

Mind, you could also search the source code for `/usr/bin/php` and change it to some other path. Or as f54da said, on modern macOS, disable SIP and create a php symlink in `/usr/bin`. (I wouldn't advocate leaving your system like this, but it's fine temporarily.)

What are you actually trying to do with this python code anyway?

Doesn't official python still support 10.9 though? https://www.python.org/downloads/release/python-3123/ claims it works all the way down to 10.9. (And at the very least I know the official python 3.10 installer works, because that's what yt-dlp uses to build its legacy version).
Yes it does, but:
  1. I don't like the official Python installer packages because they pollute my Applications folder with stuff I don't want.
  2. Although the base cypthon interpreter works on Mavericks, many common third party modules don't work unless you rebuild them from source and/or bisect to find the last working version. Some won't install; others will install but fail at runtime.
    1. I also wanted to include the most common modules in my Python installation, so that I didn't need to create a virtual environment—and reinstall modules—every time I wanted to do anything with Python! I do still use virtual environments, but it's nice to have a more filled-out base installation.
  3. The version of Python I built works on 10.6 (although many of the aforementioned modules do not).
 

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
Same error with go:
Code:
go version
( cd /Users/mavericks/go/src/github.com/av86743/go && cd src && env GOROOT_BOOTSTRAP=/Users/mavericks/go/src/github.com/av86743/go ./all.bash )
Building Go cmd/dist using /Users/mavericks/go/src/github.com/av86743/go.
ERROR: $GOROOT_BOOTSTRAP must not be set to $GOROOT
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
go version go1.10.8 darwin/amd64
make dev
package golang.org/x/tools/cmd/goimports: unrecognized import path "golang.org/x/tools/cmd/goimports" (https fetch: Get https://golang.org/x/tools/cmd/goimports?go-get=1: x509: certificate signed by unknown authority)

Edit: I got an error in the command:
Code:
( cd /Users/mavericks/go/src/github.com/av86743/go && cd src && env GOROOT_BOOTSTRAP=/Users/mavericks/go/src/github.com/av86743/go1.10.8 ./all.bash )
 
Last edited:

startergo

macrumors 603
Sep 20, 2018
5,019
2,282
Ok. I made it work in Sonoma. generate_shadowhash is editable in text editor. So I just set the PHP environment. It works now in both python2 and python3. The only caveat for python2 is that it only works with pip install pyobjc-core==4.2.2. Thank you all.
Go in Mavericks exited with status 1 during build.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.