-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failed to find class org/cellprofiler/runnablequeue/RunnableQueue #195
Comments
Hi Neil,
Sorry for your difficulties. I don't have a Mac, so I can't recreate this
error. Are /Library/Java/JavaVirtualMachines/zulu-11.
jdk/Contents/Home/lib/server/libjvm.dylib and /Library/Java/
JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/jli/libjli.dylib present
on your computer?
- Lee
(he, him, his)
…On Mon, Oct 11, 2021 at 11:12 AM Neil Hansen ***@***.***> wrote:
I'm having trouble running javabridge on my MacOS Big Sur (M1) with Azul
Zulu OpenJDK. pip install works correctly, though I have to set CFLAGS
before running:
I'm running:
javabridge.start_vm(
run_headless=True, class_path=classpath_args
)
where classpath_args is:
['src',
'resources',
'/Users/neil/.m2/repository/cider/cider-nrepl/0.25.5/cider-nrepl-0.25.5.jar',
'/Users/neil/.m2/repository/clj-python/libpython-clj/2.000/libpython-clj-2.000.jar',
'/Users/neil/.m2/repository/funcool/cuerdas/2021.05.29-0/cuerdas-2021.05.29-0.jar',
'/Users/neil/.m2/repository/http-kit/http-kit/2.5.3/http-kit-2.5.3.jar',
'/Users/neil/.m2/repository/nrepl/nrepl/0.8.3/nrepl-0.8.3.jar',
'/Users/neil/.m2/repository/org/clojure/clojure/1.10.1/clojure-1.10.1.jar',
'/Users/neil/.m2/repository/org/clojure/clojurescript/1.10.879/clojurescript-1.10.879.jar',
'/Users/neil/.m2/repository/org/clojure/core.async/1.3.618/core.async-1.3.618.jar',
'/Users/neil/.m2/repository/org/clojure/data.json/2.4.0/data.json-2.4.0.jar',
'/Users/neil/.m2/repository/refactor-nrepl/refactor-nrepl/2.5.1/refactor-nrepl-2.5.1.jar',
'/Users/neil/.m2/repository/cnuernber/dtype-next/8.024/dtype-next-8.024.jar',
'/Users/neil/.m2/repository/net/java/dev/jna/jna/5.7.0/jna-5.7.0.jar',
'/Users/neil/.m2/repository/org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar',
'/Users/neil/.m2/repository/org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar',
'/Users/neil/.m2/repository/com/cognitect/transit-clj/0.8.309/transit-clj-0.8.309.jar',
'/Users/neil/.m2/repository/com/google/javascript/closure-compiler-unshaded/v20210505/closure-compiler-unshaded-v20210505.jar',
'/Users/neil/.m2/repository/org/clojure/google-closure-library/0.0-20201211-3e6c510d/google-closure-library-0.0-20201211-3e6c510d.jar',
'/Users/neil/.m2/repository/org/clojure/tools.reader/1.3.3/tools.reader-1.3.3.jar',
'/Users/neil/.m2/repository/org/clojure/tools.analyzer.jvm/1.1.0/tools.analyzer.jvm-1.1.0.jar',
'/Users/neil/.m2/repository/camel-snake-kebab/camel-snake-kebab/0.4.2/camel-snake-kebab-0.4.2.jar',
'/Users/neil/.m2/repository/com/github/wendykierp/JTransforms/3.1/JTransforms-3.1.jar',
'/Users/neil/.m2/repository/insn/insn/0.5.2/insn-0.5.2.jar',
'/Users/neil/.m2/repository/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar',
'/Users/neil/.m2/repository/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar',
'/Users/neil/.m2/repository/org/ow2/asm/asm/9.0/asm-9.0.jar',
'/Users/neil/.m2/repository/org/roaringbitmap/RoaringBitmap/0.9.0/RoaringBitmap-0.9.0.jar',
'/Users/neil/.m2/repository/org/xerial/larray/larray-mmap/0.4.1/larray-mmap-0.4.1.jar',
'/Users/neil/.m2/repository/primitive-math/primitive-math/0.1.6/primitive-math-0.1.6.jar',
'/Users/neil/.m2/repository/techascent/tech.resource/5.04/tech.resource-5.04.jar',
'/Users/neil/.m2/repository/com/cognitect/transit-java/0.8.332/transit-java-0.8.332.jar',
'/Users/neil/.m2/repository/org/clojure/google-closure-library-third-party/0.0-20201211-3e6c510d/google-closure-library-third-party-0.0-20201211-3e6c510d.jar',
'/Users/neil/.m2/repository/org/clojure/core.memoize/1.0.236/core.memoize-1.0.236.jar',
'/Users/neil/.m2/repository/org/clojure/tools.analyzer/1.0.0/tools.analyzer-1.0.0.jar',
'/Users/neil/.m2/repository/pl/edu/icm/JLargeArrays/1.5/JLargeArrays-1.5.jar',
'/Users/neil/.m2/repository/org/roaringbitmap/shims/0.9.0/shims-0.9.0.jar',
'/Users/neil/.m2/repository/org/xerial/larray/larray-buffer/0.4.1/larray-buffer-0.4.1.jar',
'/Users/neil/.m2/repository/org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar',
'/Users/neil/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.7/jackson-core-2.8.7.jar',
'/Users/neil/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar',
'/Users/neil/.m2/repository/org/msgpack/msgpack/0.6.12/msgpack-0.6.12.jar',
'/Users/neil/.m2/repository/org/clojure/core.cache/1.0.207/core.cache-1.0.207.jar',
'/Users/neil/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar',
'/Users/neil/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar',
'/Users/neil/.m2/repository/org/clojure/data.priority-map/1.0.0/data.priority-map-1.0.0.jar']
And I'm getting the following output.
Failed to find class org/cellprofiler/runnablequeue/RunnableQueue
Traceback (most recent call last):
File "/Users/neil/Library/Caches/pypoetry/virtualenvs/blisp-97-MdyRi-py3.9/lib/python3.9/site-packages/javabridge/jutil.py", line 327, in start_thread
vm.create_mac(args, RQCLS, library_path, libjli_path)
File "_javabridge.pyx", line 709, in _javabridge.JB_VM.create_mac
RuntimeError: Failed to create Java VM. Return code = -1
Failed to create Java VM
A couple print() statements in javabridge/jutil.py showed me that the
start_thread() function is finding library_path and libjli_path, each at:
/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/server/libjvm.dylib
/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/jli/libjli.dylib
start_thread() is failing at the next line after that, which is vm.create_mac(args,
RQCLS, library_path, libjli_path).
Hoping it's something simple I'm doing wrong!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#195>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFBH5LU36FINE5QJ5DSH43UGL5EXANCNFSM5FYO62YQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi Lee, thanks for your reply. I've done some logging inside 321 library_path = _find_mac_lib("libjvm")
322 libjli_path = _find_mac_lib("libjli")
323 print("library_path =", library_path)
324 print("libjli_path =", libjli_path) On Eclispe Temurin OpenJDK 8, I get: library_path = /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/jre/lib/server/libjvm.dylib
libjli_path = /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib On Zulu Azul 11 JDK, I get: library_path = /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/server/libjvm.dylib
libjli_path = /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/jli/libjli.dylib On Microsoft OpenJDK 17, I get: library_path = /Library/Java/JavaVirtualMachines/microsoft-17.jdk/Contents/Home/lib/server/libjvm.dylib
libjli_path = /Library/Java/JavaVirtualMachines/microsoft-17.jdk/Contents/Home/lib/libjli.dylib Same error for all three. I've verified in my file browser that all files exist. |
I'm having the same problem. My computer is an M1 Mac with MacOS Big Sur 11.6.
When I run this code:
I get this error:
I don't know why it failed to open |
I was using a conda environment, and I installed |
@JKelle That's really helpful, thanks! Could you provide some details about your new conda-based installation? Do you know where |
@neilyio When I run When I run the code in |
Thanks for checking on that. I wonder what it is about conda's OpenJDK that makes it suddenly work. |
Thanks for looking into this guys. |
I'm having trouble running
javabridge
on my MacOS Big Sur (M1) with Azul Zulu OpenJDK.pip install
works correctly, though I have to setCFLAGS
to make thenumpy
dependency compile in my virtualenv:I'm running:
where
classpath_args
is:And I'm getting the following output.
A couple
print()
statements injavabridge/jutil.py
showed me that thestart_thread()
function is findinglibrary_path
andlibjli_path
, each at:start_thread()
is failing at the next line after that, which isvm.create_mac(args, RQCLS, library_path, libjli_path)
.Hoping it's something simple I'm doing wrong!
The text was updated successfully, but these errors were encountered: