-
Notifications
You must be signed in to change notification settings - Fork 8
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
jdk-install might be failing to make available a JDK on Apple Silicon Macs #55
Comments
Does the maintainer of install-jdk know about this issue? I recall he seemed pretty diligent about investigating problems. |
I saw a related issue at their repo, closed, not too long ago. The problem is I'm unable/unwilling to open a new issue there without being able to reproduce, or at least describe precisely, the problem :( |
That is the right thing to do. |
This doesn't happen on all M1,M2, and M3 machines, right? Just some of the time? |
I really don't know :( The only Macs I have access to are Intel. |
I think @tabreturn has one? He had one when he opened this issue. |
Please @tabreturn and @ericof and anyone with Apple Silicon, can we please check this? I'm trying to reach a student with a M1 today, let's see how it goes... |
Hi @ericof and @tabreturn, it would be great if we could check this JDK install thing and coordinate a fix or a warning in a new thonny-py5mode release soon. The numpy 2.0 update, and the ability to avoid it by using the newest py5 version, makes a new release kind of a pressing issue. |
@villares, @tabreturn, I tried to install everything from scratch on my M1 computer, but it did not have a positive outcome. The error message is the following:
Also, running the following code on the Thonny shell: >>> import jpype
>>> jpype.startJVM() The following error was raised:
Important points:
|
Hi @ericof ! If you set It happens I now have a M1 Mac and I will have some time next week to investigate this. |
@hx2A I just tested it, and it will not work either.
My working installation points to
Attention to the |
Additional information: if I set, on Thonny, JAVA_HOME to the other installation, it works |
Interesting. Is @vsquared's post here helpful to you? py5coding/py5generator#464 (comment) Recently I purchased a Apple Silicon M1 laptop. I installed Thonny and this plugin using the install steps. I didn't previously install Java or py5 anywhere else on the machine. Thonny was able to run py5 without any problems. The install steps worked perfectly. Which is unfortunate, because I was hoping to reproduce a M1 related problem. As I learn more about this machine and setup, I hope to experience some MacOS problems so I can find solutions to them. |
@hx2A and @ericof , can you both please clarify which version of the installing instructions you used?
If you haven't yet, could you please test these later versions? Or in case you did that, could you try not installing py5 beforehand to see what happens? |
I followed the instructions on the plugin github page: https://github.com/tabreturn/thonny-py5mode I did not install java or py5 before I installed the plugin. The plugin setup process did both of those for me. |
@hx2A, if you have the time, please check what happens if you install py5 (from the Thonny manage packages dialog) before the plug-in. Beware Thonny might be leaving behind a "sites-packages" somewhere in your user folder. |
Sure, I can do that. How do I get to a clean slate? Should I uninstall Thonny first? Is there another folder I must get rid of? |
Good question... There is no central "uninstall" on MacOS, I think, and on Windows I know it leaves behind things at |
I will remove Thonny (I have this old app called TrashMe that claims to scrub any installation) and try to install it again following the documentation. |
How are we going with this issue? I want to close this related discussion at the py5generator repo, so I'll mention it here ant close it there: py5coding/py5generator#464 |
I have a number of students with M1, M2 & M3 Macs telling me they had to manually install JDK-17 from download.oracle.com/java/17/archive/jdk-17.0.10_macos-aarch64_bin.dmg and then added the correct path to Thonny's environment variables options panel...
This has been a source of pain, I'd like to reproduce and fix this issue but I have no access to Apple Silicon CPU Macs...
cc @ericof
The text was updated successfully, but these errors were encountered: