Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mac installer incorrectly points to homebrew python #8228

Closed
3 tasks
jmarrec opened this issue Aug 24, 2020 · 1 comment
Closed
3 tasks

Mac installer incorrectly points to homebrew python #8228

jmarrec opened this issue Aug 24, 2020 · 1 comment

Comments

@jmarrec
Copy link
Contributor

jmarrec commented Aug 24, 2020

Issue overview

jenkins@~$ mkdir temp-debug-eplusv940
jenkins@~$ cd temp-debug-eplusv940/
jenkins@temp-debug-eplusv940$ wget https://github.com/NREL/EnergyPlus/releases/download/v9.4.0-IOFreeze/EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64.tar.gz
jenkins@temp-debug-eplusv940$ tar xfz EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64.tar.gz 
jenkins@temp-debug-eplusv940$ ./EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64/energyplus --help
**FATAL:DLL problem cause program termination
libc++abi.dylib: terminating with uncaught exception of type EnergyPlus::FatalError: DLL problem cause program termination
Abort trap: 6

jenkins@temp-debug-eplusv940$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G2022

The installed libs are looking for a homebrew python3.8 (which I do not have): /usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/Python (compatibility version 3.8.0, current version 3.8.0)

Details

Some additional details for this issue (if relevant):

  • Platform (Operating system, version): macOS
  • Version of EnergyPlus (if using an intermediate build, include SHA): 9.3.0, 9/.4.0-IOFreeze

Seems the output of otool -L for both.

E+ v9.3.0:

jenkins-unused@EnergyPlus-9.3.0-baff08990c-Darwin-x86_64$ otool -L ./energyplus
./energyplus:
	@executable_path/libenergyplusapi.9.3.0.dylib (compatibility version 0.0.0, current version 9.3.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 22.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1455.12.0)
	/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
	@executable_path/Python (compatibility version 3.7.0, current version 3.7.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
jenkins-unused@EnergyPlus-9.3.0-baff08990c-Darwin-x86_64$ otool -L ./Python
./Python:
	/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python (compatibility version 3.7.0, current version 3.7.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1560.12.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)

E+ v9.4.0-IOFreeze:

jenkins-unused@EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64$ otool -L ./energyplus
./energyplus:
	@executable_path/libenergyplusapi.9.4.0.dylib (compatibility version 0.0.0, current version 9.4.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1673.126.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 800.7.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
jenkins-unused@EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64$ otool -L ./Python
./Python:
	/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/Python (compatibility version 3.8.0, current version 3.8.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1675.129.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
jenkins-unused@EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64$ otool -L ./lib
libenergyplusapi.9.4.0.dylib  libenergyplusapi.dylib        libgcc_s.1.dylib              libgfortran.5.dylib           libpythonwrapper.dylib        libquadmath.0.dylib
jenkins-unused@EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64$ otool -L ./libenergyplusapi.dylib 
./libenergyplusapi.dylib:
	@executable_path/libenergyplusapi.9.4.0.dylib (compatibility version 0.0.0, current version 9.4.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1673.126.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 800.7.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1894.10.126)
	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 1348.12.4)
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1069.11.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1673.126.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
jenkins-unused@EnergyPlus-9.4.0-908c5cedf5-Darwin-x86_64$ otool -L ./libpythonwrapper.dylib 
./libpythonwrapper.dylib:
	@rpath/libpythonwrapper.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/Python (compatibility version 3.8.0, current version 3.8.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 800.7.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)

Checklist

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Defect file added (list location of defect file here)
  • Ticket added to Pivotal for defect (development team task)
  • Pull request created (the pull request will have additional tasks related to reviewing changes that fix this defect)
@jmarrec
Copy link
Contributor Author

jmarrec commented Aug 24, 2020

Rebuilding manually on the machine, as you can see it found my homebrew python which is 3.7:


jenkins@Products (develop=)$ otool -L libpythonwrapper.dylib 
libpythonwrapper.dylib:
        @rpath/libpythonwrapper.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python (compatibility version 3.7.0, current version 3.7.0)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)

Myoldmopar added a commit that referenced this issue Sep 3, 2020
Preliminarily fixes #8228 -- better fixup of executables on mac
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant