Bug 1192 - Bad link to python3.6 in MacOS nightly builds
Summary: Bad link to python3.6 in MacOS nightly builds
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: UI (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Mac OS X
: Normal critical
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-09 15:12 CEST by jolan78
Modified: 2018-05-14 10:48 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jolan78 2018-05-09 15:12:57 CEST
the nightly build is self contained and includes python 3.6 framework.

PulseView.app/Contents/Frameworks/libsigrokdecode.4.dylib is incorrectly linked to the homebrew-provided python framework instead of the included one.

this prevent pulseview from launching if python3 is not installed with homebrew, jenkins logs the error at the bottom of its log:
https://sigrok.org/jenkins/job/sigrok-native-macosx/platform=native-macosx/lastSuccessfulBuild/console
ERROR: no file at "/usr/local/opt/python/lib/Python.framework/Versions/3.6/Python"


You can verify the bad linking by typing :
$otool -L PulseView.app/Contents/Frameworks/libsigrokdecode.4.dylib

	@executable_path/../Frameworks/libsigrokdecode.4.dylib (compatibility version 5.0.0, current version 5.0.0)
	@executable_path/../Frameworks/libglib-2.0.0.dylib (compatibility version 5201.0.0, current version 5201.3.0)
	@executable_path/../Frameworks/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)
	/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python (compatibility version 3.6.0, current version 3.6.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1259.20.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)

as a workaround you can manually correct it :
$install_name_tool -change /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python @executable_path/../Frameworks/Python.framework/Versions/3.6/Python PulseView.app/Contents/Frameworks/libsigrokdecode.4.dylib
Comment 1 Uwe Hermann 2018-05-12 01:13:29 CEST
Fixed in d65031560a7a073a2e2df86d1537a27570b33a80 in sigrok-util, thanks!

It appears a Python path changed during a recent Homebrew upgrade.

The nightly DMG is regenerated, please give it a try and feel free to reopen should the issue persist.
Comment 2 jolan78 2018-05-14 10:48:33 CEST
I confirm that the issue is fixed. Tank you.