-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Milestone
Description
Issue overview
The Run_RubyPythonPlugin test is failing. This is a codesigning issue, so mac only. It happens when you try to run the "PythonPlugin" feature of E+.
Current Behavior
Expected Behavior
It should work.
Possible Solution
Basically this is because E+ has codesigning on macOS, and it does not have a specific entitlement that allows to load unsigned (or differently signed) library at runtime (via dlopen).
The E+ exe is signed, the libpython is signed, all with the EnergyPlus codesigning certificate.
We pip install some dependencies that have a native extension, at least numpy and pandas. these are NOT signed. So it fails at runtime
Possible solutions:
- Rebuild an E+ package that adds an entitlements to allow this specific use case. I think it's the
com.apple.security.cs.disable-library-validationone based on some preliminary testing - Implement Codesign on macOS #5235 and override the signature with OpenStudio's
- Remove the E+ package signing altogether (via CmakeLists, after downloading it)
Details
Environment
Some additional details about your environment for this issue (if relevant):
- Platform (Operating system, version): macOS
- Version of OpenStudio (if using an intermediate build, include SHA): develop
Context
Originally posted by @jmarrec in #5242 (comment)
Found again in #5279