I managed to use JEP on Ubuntu:
https://github.com/dportabella/scala-python-example/tree/fix
but I fail to make it work on OSX 10.12.
First I install the JEP library for OSX as follows:
pip install jep
# http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html
sudo cp /Users/david/.virtualenvs/py3-data/lib/python3.6/site-packages/jep/libjep.jnilib /Library/Java/Extensions/
And then I try to run a simple test, Test.java:
public class Test {
public static void main(String[] args) throws Exception {
System.loadLibrary("jep"); // just for testing that it is being loaded
System.out.println("+++ jep library loaded!");
new jep.Jep();
}
}
as follows:
$ javac -cp /Users/david/.virtualenvs/py3-data/lib/python3.6/site-packages/jep/jep-3.6.3.jar Test.java
$ java -cp .:/Users/david/.virtualenvs/py3-data/lib/python3.6/site-packages/jep/jep-3.6.3.jar Test
+++ jep library loaded!
Exception in thread "main" jep.JepException: <class 'ModuleNotFoundError'>: No module named 'jep'
at <string>.<module>(<string>:1)
So, it loads the library, but then it fails with No module named 'jep'.
Any idea?
I managed to use JEP on Ubuntu:
https://github.com/dportabella/scala-python-example/tree/fix
but I fail to make it work on OSX 10.12.
First I install the JEP library for OSX as follows:
And then I try to run a simple test, Test.java:
as follows:
So, it loads the library, but then it fails with
No module named 'jep'.Any idea?