-
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
TypeError: 'NoneType' object is not callable when initializing imagej #308
Comments
Hi @belenal, You shouldn't need to configure or start the JVM before initializing ImageJ. These things are handled internally as part of the initialization routine. See the PyImageJ initialization documentation here for more info. It looks like you're not using a |
Hello @elevans
I cannot use mamba or conda that is why I am trying via pip. |
@belenal Your first error The Maven error you are seeing—when running
This looks like a bug in Maven to me. I see you are running 3.9.8, which is a very new version. IIRC, there was a similar bug in Maven 3.9.7 which was supposedly fixed, but it seems 3.9.8 still has problems? Could you please try with version 3.9.6 and see if you can (I have plans in the near term to replace jgo's Maven dependency resolution with a pure-Python implementation, which will make these mvn bugs moot...) |
I downloaded 3.9.6 and the problem persists. I am getting this error:
Actually the file in Fiji.app/jars/ is imglib2-imglyb-2.0.0. I think this might be the problem? how can I indicate the version I want? |
@belenal The error is different now. Progress!
This error means it is having trouble downloading things securely over HTTPS due to disliking the certificate. It might be a problem with that version of Java. Could you please try with OpenJDK 11 rather than OpenJDK 8? |
This is my code:
and I am getting:
I am using python 3.7.9.
I also tried using Python 3.9 and downloading pyimagej from github, and I get:
I used doctor checkup and everything looks fine:
Any idea what might be the problem? I have tried all the possible initializations endpoints and I keep getting the same error.
Thank you
The text was updated successfully, but these errors were encountered: