-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove local build workaround for non-portable macOS wheels #80
Comments
@devinrsmith I get this error when I use the wheel package on MacOS. Is this similar to this issue
I was able to build from source and didn't see the problem. |
Are you seeing this for the macOS jpy==0.11.1.dev0 with the pre-built wheels? If so, I think this is expected for the pre-built wheels. The proper fix depends on the environment, but essentially it's up to the caller to ensure that I think it makes sense to remove this special-case for local builds in the future for |
@devinrsmith No I am using this one jpy-0.11.0-cp310-cp310-macosx_10_15_universal2.whl |
Okay. There may be a case to be made that locally-built wheels should retain the specific libjvm.dylib paths hardcoded. Advantages of hardcoded:
Disadvantages of hardcoded:
I'm going to create a specific issue to create better canonical documentation for expected patterns around preloading libjvm. In the meantime, it may be worth trying to use the published wheel with a pattern that looks like: import jpyutil
# This needs to happen before `import jpy`
jpyutil.preload_jvm_dll()
import jpy or import jpyutil
# This needs to happen before `import jpy`
jpyutil.init_jvm()
import jpy This hopefully should work if |
This is based on the comment in jpy-consortium/jpy#80 (comment)
To maintain the existing behavior with 0.11.x releases, locally built macOS wheels still have hard-coded rpaths to libjvm.dylib.
We should prefer to remove this workaround when applicable (should wait at least for a minor release, not a patch release).
The text was updated successfully, but these errors were encountered: