Closed Prong4107 closed 6 months ago
Please ensure that your Java and Python are both using the same architecture. The jep library is built to match your python architecture so it appears you are mixing an x86_64 python with an arm64 Java which is not supported.
If you are having trouble installing compatible versions I recommend reviewing the previous discussion in #379, #389, #423, and #442.
Actually, it seems my problem was that I installed jep in x86_64 mode a first time, and pip cached the build, so when I installed jep in a venv a second time in arm64, it used the cached x86_64 binaries instead of rebuilding for arm64.
Running pip cache purge before pip install seems to have solved it.
Not entirely sure how the inconsistencies in architectures first happened though.
Thanks for the help.
Describe the problem When installing jep using a venv on a arm64 mac with pip, native libraries results are for the wrong CPU architecture, resulting in a crash when trying to load libjep.jnilib
**Environment
Python 3.11.5 installed with homebrew
Reproduction