Replies: 2 comments 10 replies
-
Thank you for looking in to this!
That warning seems to come from this code: Can you reproduce it with Processing 4 Java if you explicitly call Processing's I don't understand what this warning is about. I see that |
Beta Was this translation helpful? Give feedback.
-
This is what I've got using Python's REPL from my Garuda Linux terminal via a custom venv: python
Python 3.13.2 (main, Mar 6 2025, 06:42:22) [GCC 14.2.1 20250207] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import py5
>>> import py5_tools
>>> py5_tools.get_jvm_debug_info()
{
'JAVA_HOME environment variable': '/usr/lib/jvm/default',
'jvm version': (21, 0, 6),
'default jvm path': '/usr/lib/jvm/java-21-openjdk/lib/server/libjvm.so'
}
>>> from java.lang import System
>>> System.getProperty("java.version")
'21.0.6'
>>> System.getProperty("java.vendor")
'Arch Linux'
>>> System.getProperty("java.home")
'/usr/lib/jvm/java-21-openjdk'
>>> System.getenv("JAVA_HOME")
'/usr/lib/jvm/default' P.S.: I have the variable $JAVA_HOME globally defined in this system file "/etc/environment" btW:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like jpype 1.5.2 finally fixed the issue of starting a JVM on a non-ASCII path, yay!
I made a very naive test, updated jpype on my "Thonny portable with py5 distribution for Windows" with
pip install jpyp1 --upgrade
on Thonny's system shell, and it worked! Even after adding non-ASCII chars likeé
to Thonny folder's name, which contains the JVM.I also checked the JAVA_HOME path on Thonny's options panel, and it reflected the renamed folder (as my portable thonny-py5mode plug-in hack always refreshes the JAVA_HOME settings).
The small issue that I'd like to investigate is this warning:
Note that this warning doesn't appear without non-ASCII chars on Thonny's JVM path. I couldn't reproduce on Processing 4 Java (by trying to add non-ASCII chars to the sketchbook or Processing IDE paths)
The funny thing is that even with the warning, py5 sketches run OK and even
print(py5.sketch_path())
seems work alright... so I suppose this is not a big problem.Beta Was this translation helpful? Give feedback.
All reactions