Project

General

Profile

Actions

Bug #9787

closed

Python 2.7 is no longer available in macOS 12.3. CHIRP needs to update Python to 3.0 or macOS will not work.

Added by JC Broskey almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
Start date:
03/15/2022
Due date:
03/31/2022
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
MacOS
Debug Log:
I read the instructions above:

Description

This release is coming very soon and CHIRP needs to update Python support to 3.0 or it will stop working. I logged a developer bug to Apple and they stated exactly that. Below is the crash logs from current beta being released any day.

Library not loaded, tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file): Python.framework needed by CHIRP.app

Process: CHIRP [1473]
Path: /Applications/CHIRP.app/Contents/MacOS/chirp
Identifier: CHIRP
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-03-10 12:17:27.9960 +0000
OS Version:

Report Version: 12
Anonymous UUID: 117BDE15-9A18-CE96-5FFC-AF8F0082BC9E

Time Awake Since Boot: 3400 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/CHIRP.app/Contents/CHIRP
Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file)

(terminated at launch; ignore backtrace)

Application Specific Information:
dyld: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/CHIRP.app/Contents/CHIRP
Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file)

Thread 0 Crashed ↩::

0 dyld 0x1107e00de __abort_with_payload + 10
1 dyld 0x1107f6212 abort_with_payload_wrapper_internal + 80 (/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/Libsyscall/libsyscall/wrappers/terminate_with_reason.c:102)
2 dyld 0x1107f6244 abort_with_payload + 8 (/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/Libsyscall/libsyscall/wrappers/terminate_with_reason.c:124)
3 dyld 0x1107a476e dyld4::halt(char const*) + 374 (/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/dyld/dyld/DyldProcessConfig.cpp:2067)
4 dyld 0x1107a05a4 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3994 (/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/dyld/dyld/dyldMain.cpp:0)
5 dyld 0x11079f4d4 start + 388 (/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/dyld/dyld/dyldMain.cpp:864)

Thread State
cpu : 0x0000000000000000 cr2 : 0x00000001107a6e74 err : 0x02000209

r10 : 0x000000000000007b r11 : 0x0000000000000246 r12 : 0x000000000000007b
r13 : 0x00007ff7b4f22900 r14 : 0x0000000000000001 r15 : 0x0000000000000006
r8 : 0x00007ff7b4f22500 r9 : 0x0000000000000000 rax : 0x0000000002000209
rbp : 0x00007ff7b4f224e0 rbx : 0x0000000000000000 rcx : 0x00007ff7b4f22498
rdi : 0x0000000000000006 rdx : 0x00007ff7b4f22900 rflags: 0x0000000000000246
rip : 0x00000001107e00de rsi : 0x0000000000000001 rsp : 0x00007ff7b4f22498
trap : 0x0000000000000085
Binary Images: ↩
0x11079a000 - 0x110806000 dyld /usr/lib/dyld
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=648K resident=0K(0%) swapped_out_or_unallocated=648K(100%)
Writable regions: Total=9220K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9220K(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 12K 3
__DATA 20K 2
__DATA_CONST 80K 1
__LINKEDIT 220K 3
__TEXT 440K 2
dyld private memory 1024K 1
=========== ======= =======
TOTAL 65.8M 14

Actions #1

Updated by Frederik Bonde almost 3 years ago

I have the same problem on 12.3

Actions #2

Updated by Michael Zablocky almost 3 years ago

I downloaded and installed the old version and CHIRP opens and seems to be running fine. Hope this helps.

https://www.python.org/downloads/release/python-2718/

Actions #3

Updated by Frederik Bonde almost 3 years ago

Thanks. Are you also running 12.3?

Actions #4

Updated by Michael Zablocky almost 3 years ago

Frederik Bonde wrote:

Thanks. Are you also running 12.3?

Yes I am.

Actions #5

Updated by Frederik Bonde almost 3 years ago

That's weird. I uninstalled and installed it again. got the same error that phyton 2.7 not working. I really hope that they update it to work with 3.0.

Actions #6

Updated by Tony Fuller over 2 years ago

Hi All,

I think our wiki instructions may be out of date for macOS.

Would someone be able to try the following:

  1. Install the official python 2.7 version from
    https://www.python.org/downloads/release/python-2718/
    
  2. Install the future and suds packages from a terminal window using
    pip install future suds
    
  3. Sign the app each time you download a new version, also in a terminal window.
    xattr -c /Applications/CHIRP.app
    xattr -c /Applications/CHIRP.app/Contents
    codesign --force --deep --sign - /Applications/CHIRP.app
    

From what I can tell, using the official python 2.7 installer should resolve the problem with missing library at /System/Library/Frameworks/Python.framework/Versions/2.7/Python and step 2 will fix issues with not seeing all of the drivers and the last step will resolve another problem related to "signing"

Thanks,
Tony

Actions #7

Updated by Alan Blumer over 2 years ago

Tony Fuller wrote:

Hi All,

I think our wiki instructions may be out of date for macOS.

Would someone be able to try the following:

  1. Install the official python 2.7 version from [...]
  2. Install the future and suds packages from a terminal window using [...]
  3. Sign the app each time you download a new version, also in a terminal window. [...]

From what I can tell, using the official python 2.7 installer should resolve the problem with missing library at /System/Library/Frameworks/Python.framework/Versions/2.7/Python and step 2 will fix issues with not seeing all of the drivers and the last step will resolve another problem related to "signing"

Thanks,
Tony

Tony,

These instructions did enable me to run the daily-20220402 build on an M1 Pro CPU. However, Apple has stopped including any version of Python in the base operating system. See

https://developer.apple.com/documentation/macos-release-notes/macos-catalina-10_15-release-notes#Scripting-Language-Runtimes

which recommends bundling the required scripting language runtime with the application.

Alan

Actions #8

Updated by Dan Smith about 2 years ago

  • Status changed from New to Closed
  • Target version changed from chirp-py3 to chirp-legacy
Actions

Also available in: Atom PDF