-
Notifications
You must be signed in to change notification settings - Fork 82
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 guess the Java version/Failed to bootstrap the artifact. #267
Comments
Hi @BrandonUL 👋 Thanks for the report. There are a couple of different issues going on here. I'll try to comment on them one by one.
Be careful—this command returns the version of PyImageJ (Python piece), not the version of ImageJ2 (Java piece). As of this writing:
So, your Python environment has PyImageJ 1.4.1 successfully installed, but when it tries to download and initialize the ImageJ2 Java libraries, it runs into problems. As such, because version 1.4.1 was never a release version of
☝️ That error is bad news... it means that when PyImageJ attempted to invoke Similarly, from your PyImageJ doctor checkup:
Same error. Probably because
Agreed—that's a bug in the PyImageJ doctor. We should be catching/noticing that failure and reporting it as a problem with your installation, not ignoring it. I filed #268 to track this bug.
It's weird that you're seeing multiple copies of this output. There is only supposed to be one. I filed #269 to track this behavior. So then finally: the heart of the problem is the SIGKILL crashes from your openjdk installation. Are you running on Intel/x86-64 Mac? Or M1 Mac? If it's an M1, then maybe you're getting an x86-64 copy of Java and Rosetta2 is barfing on it? As a next step, could you try installing OpenJDK 11 via Homebrew, instead of using the conda-forge openjdk?
If you're not already using Homebrew, I consider it an essential tool for macOS system. See https://brew.sh for details. Then you just need to set your Once |
I was wrong about not having seen the SIGKILL error before... issue #237 reports the same problem. It's the OpenJDK from conda-forge on M1 Macs. @BrandonUL Please try with different OpenJDKs: v8, v11, and v17 from conda-forge, and v8, v11, and v17 from Homebrew, and report back which ones work, and which ones crash. I would do it myself, but I don't have an M1 Mac to test. (@hinerm if you feel like it, you could also try this) |
Hello, Thank you for the response! Your response is very helpful and v11 did work. It is now working and can proceed. |
@BrandonUL Awesome, glad to hear! Do you mean v11 from conda-forge worked? Or v11 from Homebrew? Just clarifying so that I know what to advise anyone else who has this issue in the future. Thanks! |
I changed openjdk=8 to openjdk=11 and it worked. Please update the installation instruction to both gitgub and readthedocs.io, thanks! |
And add notes about how version 8 is broken for M1 Macs. See #267.
Thanks @Dectective. With 5b8c695, I updated PyImageJ's recommended OpenJDK version from 8 to 11, and added warnings about the problem with openjdk=8 on M1 Macs. |
Hello! I am brand new to
pyimagej
and after about an hour or so of debugging I am reaching out for some help!Per the tutorial I first ran:
which returns:
I could not find a specific fix online besides updating
mvn
but when I attempted to anaconda told me mymvn
package was up to date, so I next ran:which returned
Knowing that it wasn't the up to date version I attempted to use the legacy version with the following code:
which returned the following:
I then tried:
I then tried debugging my self by executing:
which returns:
Which is a tad confusing since the output seems to have errors but also said
Great job! All looks good.
...I then ran:
Which returned nothing... and than ran:
which returned:
I am relatively new to coding and can't seem to pinpoint the exact issue. Any and all help would be greatly appreciated as I am excited to use this package for my summer research project!
-Brandon
The text was updated successfully, but these errors were encountered: