Project

General

Profile

Actions

Bug #6213

closed

Mac OS X 20181018 won't run (contains failed patch)

Added by M T over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/18/2018
Due date:
% Done:

0%

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

Description

Double-clicking the app won't launch it.

Running from the command line gives:

% ./chirp-daily-20181018.app/Contents/MacOS/chirp
./chirp-daily-20181018.app/Contents/MacOS/chirp: line 19: /opt/kk7ds/bin/python2.7: No such file or directory

Apparently there are a few patches that didn't take in that build:

% find ./chirp-daily-20181018.app -name \*.rej
./chirp-daily-20181018.app/Contents/MacOS/chirp.rej
./chirp-daily-20181018.app/Contents/Resources/chirp/chirpui/mainapp.py.rej
% cat ./chirp-daily-20181018.app/Contents/MacOS/chirp.rej
--- build/chirp.app/Contents/MacOS/chirp        Tue Apr 17 21:15:28 2012 -0700
+++ build/chirp.app/Contents/MacOS/chirp        Wed Apr 18 17:09:06 2012 -0700
@@ -2,4 +2,14 @@

 LOCATION=$(dirname ${BASH_SOURCE})

-exec /opt/kk7ds/bin/python2.7 ${LOCATION}/../Resources/chirp/chirpw
+PYTHON=/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
+
+if [ -x $PYTHON ]; then
+    ln -s $PYTHON ${LOCATION}/../CHIRP
+    PYTHON=${LOCATION}/../CHIRP
+    export PYTHONPATH="/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/"
+else
+    PYTHON=/opt/kk7ds/bin/python2.7
+fi
+
+exec $PYTHON ${LOCATION}/../Resources/chirp/chirpw
Actions

Also available in: Atom PDF