thonny-py5mode icon indicating copy to clipboard operation
thonny-py5mode copied to clipboard

Unable to install the v.0.4.7a thonny-py5mode plug-in on Windows.

Open villares opened this issue 2 months ago • 19 comments

This is disturbing, I think I need help. I have tried a clean install of Thonny 4.1.7. portable on Windows 10 Pro (I also checked for stuff at /AppData/Local/Programs/ and /AppData/Roaming/Thonny).

After installing the thonny-py5mode plugin version 0.4.7a (which installs py5 0.10.7a0) Thonny won't launch anymore (silently crashing on launch).

I'm guessing some of our dependencies updates or something on py5 0.10.7a0 is causing this problem, because my older zipped portable (available at https://github.com/villares/thonny-portable-with-py5/releases/download/2025-06-11/thonny-417-with-py5-0106a0-portable-r3.zip) still works.

I can also report that installing just py5 0.10.7a0 works, and when you install the plug-in, Thonny stops launching.

frontend

14:08:59.683 [MainThread] INFO    thonny: Thonny version: 4.1.7
14:08:59.683 [MainThread] INFO    thonny: cwd: C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable
14:08:59.683 [MainThread] INFO    thonny: original argv: []
14:08:59.683 [MainThread] INFO    thonny: sys.executable: C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\pythonw.exe
14:08:59.683 [MainThread] INFO    thonny: sys.argv: ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\thonny.exe']
14:08:59.683 [MainThread] INFO    thonny: sys.path: ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\python310.zip', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\DLLs', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages']
14:08:59.683 [MainThread] INFO    thonny: sys.flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=1, no_site=0, ignore_environment=1, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=1, dev_mode=False, utf8_mode=0, warn_default_encoding=0, int_max_str_digits=-1)
14:08:59.734 [MainThread] INFO    thonny.workbench: Starting Workbench
14:08:59.847 [MainThread] INFO    thonny.workbench: Creating runner
14:08:59.847 [MainThread] INFO    thonny.workbench: Start loading plugins

frontend_faults

Windows fatal exception: access violation

Thread 0x0000190c (most recent call first):
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\socket.py", line 293 in accept
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\workbench.py", line 552 in server_loop
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\threading.py", line 953 in run
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\threading.py", line 1016 in _bootstrap_inner
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\threading.py", line 973 in _bootstrap

Current thread 0x00005150 (most recent call first):
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1176 in create_module
  File "<frozen importlib._bootstrap>", line 571 in module_from_spec
  File "<frozen importlib._bootstrap>", line 674 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\user_data\plugins\Python310\site-packages\jpype\__init__.py", line 18 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 883 in exec_module
  File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 992 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\user_data\plugins\Python310\site-packages\thonnycontrib\thonny-py5mode\about_plugin.py", line 9 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 883 in exec_module
  File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\user_data\plugins\Python310\site-packages\thonnycontrib\thonny-py5mode\__init__.py", line 17 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 883 in exec_module
  File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1050 in _gcd_import
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\importlib\__init__.py", line 126 in import_module
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\workbench.py", line 415 in _load_plugins_from_path
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\workbench.py", line 403 in _load_plugins
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\workbench.py", line 172 in __init__
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\__init__.py", line 279 in launch
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\site-packages\thonny\__main__.py", line 4 in <module>
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\runpy.py", line 86 in _run_code
  File "C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\lib\runpy.py", line 227 in run_module
  File "<string>", line 3 in <module>

backend

14:07:59.833 [MainThread] INFO    thonny: Thonny version: 4.1.7
14:07:59.833 [MainThread] INFO    thonny: cwd: C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\user_data\leave_this_empty
14:07:59.833 [MainThread] INFO    thonny: original argv: ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\python.exe', '-u', '-B', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages\\thonny\\plugins\\cpython_backend\\cp_launcher.py', 'C:\\Users\\ETA', "{'run.warn_module_shadowing': True}"]
14:07:59.833 [MainThread] INFO    thonny: sys.executable: C:\Users\ETA\Downloads\thonny-4.1.7-windows-portable\python.exe
14:07:59.833 [MainThread] INFO    thonny: sys.argv: ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages\\thonny\\plugins\\cpython_backend\\cp_launcher.py', 'C:\\Users\\ETA', "{'run.warn_module_shadowing': True}"]
14:07:59.849 [MainThread] INFO    thonny: sys.path: ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages\\thonny\\plugins\\cpython_backend', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\python310.zip', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\DLLs', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages']
14:07:59.849 [MainThread] INFO    thonny: sys.flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=1, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0, warn_default_encoding=0, int_max_str_digits=-1)
14:07:59.849 [MainThread] INFO    thonny: TIME/MODS 0.031 Before constructing backend (+21 modules)
14:07:59.849 [MainThread] INFO    thonny: NEW MODS ['_heapq', '_queue', 'encodings.ascii', 'errno', 'faulthandler', 'fnmatch', 'heapq', 'importlib._abc', 'importlib.util', 'msvcrt', 'pathlib', 'posixpath', 'queue', 'signal', 'subprocess', 'thonny.backend', 'thonny.plugins', 'thonny.plugins.cpython_backend', 'thonny.plugins.cpython_backend.cp_back', 'urllib', 'urllib.parse']
14:07:59.849 [MainThread] INFO    thonny: TIME/MODS 0.000 Before MainBackend 
14:07:59.849 [MainThread] INFO    thonny: TIME/MODS 0.000 After MainBackend 
14:07:59.893 [MainThread] INFO    thonny.backend: Loading plugins
14:07:59.893 [MainThread] INFO    thonny: TIME/MODS 0.044 Before loading plugins (+4 modules)
14:07:59.893 [MainThread] INFO    thonny: NEW MODS ['pkgutil', 'platform', 'pydoc', 'sysconfig']
14:07:59.893 [MainThread] INFO    thonny.common: Using THONNY_FRONTEND_SYS_PATH ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\python310.zip', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\DLLs', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\user_data\\plugins\\Python310\\site-packages']
14:07:59.893 [MainThread] INFO    thonny.backend: Loading plugin 'thonny.plugins.backend.birdseye_backend'
14:07:59.909 [MainThread] INFO    thonny.backend: Loading plugin 'thonny.plugins.backend.dock_user_windows_backend'
14:07:59.924 [MainThread] INFO    thonny.backend: Loading plugin 'thonny.plugins.backend.flask_backend'
14:07:59.940 [MainThread] INFO    thonny.backend: Loading plugin 'thonny.plugins.backend.matplotlib_backend'
14:07:59.940 [MainThread] INFO    thonny.backend: Loading plugin 'thonny.plugins.backend.pgzero_backend'
14:07:59.940 [MainThread] INFO    thonny: TIME/MODS 0.047 After loading plugins (+6 modules)
14:07:59.940 [MainThread] INFO    thonny: NEW MODS ['thonny.plugins.backend', 'thonny.plugins.backend.birdseye_backend', 'thonny.plugins.backend.dock_user_windows_backend', 'thonny.plugins.backend.flask_backend', 'thonny.plugins.backend.matplotlib_backend', 'thonny.plugins.backend.pgzero_backend']
14:07:59.956 [MainThread] INFO    thonny: TIME/MODS 0.016 Beginning of mainloop 
14:07:59.956 [MainThread] INFO    thonny: TIME/MODS 0.000 Sending message ToplevelResponse 
14:07:59.956 [MainThread] INFO    thonny.backend: Loading Jedi
14:07:59.956 [MainThread] INFO    thonny: TIME/MODS 0.000 Before loading Jedi 
14:07:59.956 [MainThread] INFO    thonny.common: Using THONNY_FRONTEND_SYS_PATH ['C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\python310.zip', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\DLLs', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\lib\\site-packages', 'C:\\Users\\ETA\\Downloads\\thonny-4.1.7-windows-portable\\user_data\\plugins\\Python310\\site-packages']
14:08:01.224 [MainThread] INFO    thonny: TIME/MODS 1.269 After loading Jedi (+132 modules)
14:08:01.224 [MainThread] INFO    thonny: NEW MODS ['__future__', '_blake2', '_bz2', '_compat_pickle', '_compression', '_hashlib', '_json', '_lzma', '_pickle', '_socket', '_struct', 'binascii', 'bz2', 'difflib', 'filecmp', 'gc', 'hashlib', 'jedi', 'jedi._compatibility', 'jedi.api', 'jedi.api.classes', 'jedi.api.completion', 'jedi.api.completion_cache', 'jedi.api.environment', 'jedi.api.errors', 'jedi.api.exceptions', 'jedi.api.file_name', 'jedi.api.helpers', 'jedi.api.interpreter', 'jedi.api.keywords', 'jedi.api.project', 'jedi.api.refactoring', 'jedi.api.refactoring.extract', 'jedi.api.strings', 'jedi.cache', 'jedi.common', 'jedi.debug', 'jedi.file_io', 'jedi.inference', 'jedi.inference.analysis', 'jedi.inference.arguments', 'jedi.inference.base_value', 'jedi.inference.cache', 'jedi.inference.compiled', 'jedi.inference.compiled.access', 'jedi.inference.compiled.getattr_static', 'jedi.inference.compiled.mixed', 'jedi.inference.compiled.subprocess', 'jedi.inference.compiled.subprocess.functions', 'jedi.inference.compiled.value', 'jedi.inference.context', 'jedi.inference.docstring_utils', 'jedi.inference.docstrings', 'jedi.inference.filters', 'jedi.inference.flow_analysis', 'jedi.inference.gradual', 'jedi.inference.gradual.annotation', 'jedi.inference.gradual.base', 'jedi.inference.gradual.conversion', 'jedi.inference.gradual.generics', 'jedi.inference.gradual.stub_value', 'jedi.inference.gradual.type_var', 'jedi.inference.gradual.typeshed', 'jedi.inference.gradual.typing', 'jedi.inference.gradual.utils', 'jedi.inference.helpers', 'jedi.inference.imports', 'jedi.inference.lazy_value', 'jedi.inference.names', 'jedi.inference.param', 'jedi.inference.parser_cache', 'jedi.inference.recursion', 'jedi.inference.references', 'jedi.inference.signature', 'jedi.inference.syntax_tree', 'jedi.inference.sys_path', 'jedi.inference.utils', 'jedi.inference.value', 'jedi.inference.value.decorator', 'jedi.inference.value.dynamic_arrays', 'jedi.inference.value.function', 'jedi.inference.value.instance', 'jedi.inference.value.iterable', 'jedi.inference.value.klass', 'jedi.inference.value.module', 'jedi.inference.value.namespace', 'jedi.parser_utils', 'jedi.plugins', 'jedi.plugins.django', 'jedi.plugins.flask', 'jedi.plugins.pytest', 'jedi.plugins.registry', 'jedi.plugins.stdlib', 'jedi.settings', 'json', 'json.decoder', 'json.encoder', 'json.scanner', 'lzma', 'math', 'parso', 'parso._compatibility', 'parso.cache', 'parso.file_io', 'parso.grammar', 'parso.normalizer', 'parso.parser', 'parso.pgen2', 'parso.pgen2.generator', 'parso.pgen2.grammar_parser', 'parso.python', 'parso.python.diff', 'parso.python.errors', 'parso.python.parser', 'parso.python.pep8', 'parso.python.prefix', 'parso.python.token', 'parso.python.tokenize', 'parso.python.tree', 'parso.tree', 'parso.utils', 'pickle', 'pydoc_data', 'pydoc_data.topics', 'select', 'selectors', 'shutil', 'socket', 'struct', 'textwrap', 'zipfile', 'zlib']

villares avatar Sep 30 '25 17:09 villares

Can you try this with an older version of Thonny?

In another thread @GoToLoop said that there are a lot of places where the plugin overrides or monkey patches Thonny's code. It is possible that Thonny has changed in a way that is no longer compatible with the plugin. Perhaps? This is my first guess.

In any case, this is a problem and in particular we need to make sure we have a reliable way to do installs before the tutorial at Python Brasil.

hx2A avatar Sep 30 '25 20:09 hx2A

Can you try this with an older version of Thonny?

I will try. But my working portable is using the same Thonny 4.1.7 version...

In any case, this is a problem and in particular we need to make sure we have a reliable way to do installs before the tutorial at Python Brasil.

The portable with py5 0.10.6a0 still works on every machine I tested. I tried to upgrade py5 on the portable on this computer where I am right now (a different one from the reported issue) and was able to bring it to 0.10.7a0 (using the Thonny system shell feature, the GUI panel failed). I'll try moving this portable to another computer to see how it goes.

villares avatar Sep 30 '25 20:09 villares

I've already reported that problem here: https://github.com/py5coding/thonny-py5mode/discussions/77#discussioncomment-14466439

On Windows 10 using latest Thonny 4.1.7 installer, seems like upgrading from thonny-py5mode plugin 0.4.7a to 0.5.0rc5 fails if we don't clean up subfolder %AppData%\Thonny\plugins\Python310\site-packages 1st!

GoToLoop avatar Sep 30 '25 21:09 GoToLoop

I've already reported that problem here: https://github.com/py5coding/thonny-py5mode/discussions/77#discussioncomment-14466439

On Windows 10 using latest Thonny 4.1.7 installer, seems like upgrading from thonny-py5mode plugin 0.4.7a to 0.5.0rc5 fails if we don't clean up subfolder %AppData%\Thonny\plugins\Python310\site-packages 1st!

But this was me trying to install 0.4.7a on 4.1.7... so before any 0.5.0 modification.

Also there are two kinds of Windows 10 at the community center: desktops and laptops. It looks like on the desktop things work and on the laptop they fail.

I'll double check the subfolder thing (I'm pretty sure I have removed all remnants of earlier installs).

I had to leave, I'll try to investigate further tomorrow.

villares avatar Sep 30 '25 22:09 villares

So. I tried a bit more and I couldn't gather any more useful information 😢

Installing on older Thonny failed, I tried 4.1.4 and couldn't install the plug-in from GUI panel (possibly because of the PyPI search issue fixed on 4.1.7) and installing rc5 local file also failed (I think it also tried to find dependencies online and failed).

After many fruitless attempts, I'm giving up looking into this for now. I wonder if @aivarannamaa would have some insight on this issue.

My conclusions:

I couldn't discern the difference between the two types of Windows 10 Pro computers at the community center with the two different behaviours:

  • Thonny 4.17, with plug-in v0.4.7a and py5 v0.10.7a
    • classroom latptops - crashing on Thonny launch (older portable with py5 v0.10.6a still works).
    • office desktops - working

I think it is some interaction of newer py5 v0.10.7a with the plug-in (either 0.4.7 or rc5) under certain conditions (?) I can't understand or reproduce. I swear I deleted all older AppData stuff.

@hx2A, for our tutorial we have some options, I suppose:

  • Use the slightly older Thonny 4.1.7 portable with py5 0.10.6a and plug-in pre-installed.
  • Use Thonny 4.1.7 with py5 0.10.7a, install a JDK (possibly with install-jdk) and use it without the plug-in.
  • We could use conda and Jupyter Notebooks.

villares avatar Oct 03 '25 20:10 villares

I just tried Portable Thonny on my Windows 11 computer and it worked fine. I was able to install the latest plugin from pypi and everything ran correctly.

Is this just a Windows 10 thing? What kind of updates has Windows 10 been getting these days? I read that all Windows 10 support ends on the 14th. That's a problem for people who still need to use it. As time goes on, newer software will require resources from the computer that Windows 10 machines can't provide. More things will break.

The "Windows fatal exception: access violation" error I believe is like a segmentation fault in Linux. It seems more likely to be a DLL version issue than a problem with Python code.

I can also report that installing just py5 0.10.7a0 works

Can you install just py5 0.10.7a0 and run a Sketch? The access violation error you got suggests it failed when importing jpype. Can you just import jpype and start the JVM?

Thonny won't launch anymore (silently crashing on launch).

When Thonny launches, does it import py5 anywhere? If so, why? It really ought to run a Sketch by spawning a new process.

hx2A avatar Oct 04 '25 17:10 hx2A

It really ought to run a Sketch by spawning a new process.

I just tested this by running a Sketch that calls jpype.shutdownJVM(). If each Sketch was run in the same process as the editor, this command would prevent any future Sketch from running. That's not the case, thankfully.

hx2A avatar Oct 04 '25 17:10 hx2A

Can you install just py5 0.10.7a0 and run a Sketch? The access violation error you got suggests it failed when importing jpype. Can you just import jpype and start the JVM?

Yes I can run a module mode sketch, py5 0.10.7 works perfectly without the plug-in. The access violation only happens during the plug-in loading, which crashes Thonny on launch. So, py5 0.10.6a + plugin works, py5 0.10.7 + plugin doesn't.

villares avatar Oct 04 '25 18:10 villares

Yes I can run a module mode sketch, py5 0.10.7 works perfectly without the plug-in. The access violation only happens during the plug-in loading, which crashes Thonny on launch. So, py5 0.10.6a + plugin works, py5 0.10.7 + plugin doesn't.

This problem only exists on Windows 10, right?

hx2A avatar Oct 05 '25 18:10 hx2A

@hx2A, for our tutorial we have some options, I suppose:

* Use the slightly older Thonny 4.1.7 portable with py5 0.10.6a and plug-in pre-installed.

* Use Thonny 4.1.7 with py5 0.10.7a, install a JDK (possibly with `install-jdk`) and use it _without the plug-in_.

* We could use conda and Jupyter Notebooks.

Since this is an intermediate tutorial, we can assume that people are savvy enough to have Python already installed, right? Given the content I think that Jupyter Notebooks are the best format for me to use because I can include images and extensive written explanations for stuff.

BTW I have been working on preparing for the presentation and tutorials. For the tutorials I have worked out 2 out of 3 of the code examples I'll be working through. The first is Shapely only, the second is Trimesh only, and the third will build on top of the first two and tie things together in a way that should feel constructive. I know time is running short but I hope to have at least a rough draft ready by next weekend that I'll share with you.

hx2A avatar Oct 05 '25 18:10 hx2A

Yes I can run a module mode sketch, py5 0.10.7 works perfectly without the plug-in. The access violation only happens during the plug-in loading, which crashes Thonny on launch. So, py5 0.10.6a + plugin works, py5 0.10.7 + plugin doesn't.

This problem only exists on Windows 10, right?

@villares When you test "py5 0.10.6a + plugin" what version of jpype is installed? If it is 1.5.2, can you come up with a way to test "py5 0.10.7 + plugin" and force it to downgrade jpype from 1.6.0 (now min default version for latest version of py5) to the previous version 1.5.2?

hx2A avatar Oct 05 '25 18:10 hx2A

@villares When you test "py5 0.10.6a + plugin" what version of jpype is installed? If it is 1.5.2, can you come up with a way to test "py5 0.10.7 + plugin" and force it to downgrade jpype from 1.6.0 (now min default version for latest version of py5) to the previous version 1.5.2?

I'll see what I can do, I'll try it.

villares avatar Oct 05 '25 19:10 villares

This problem only exists on Windows 10, right?

I'm not 100% sure of that :(

villares avatar Oct 05 '25 19:10 villares

This problem only exists on Windows 10, right?

I'm not 100% sure of that :(

Ugh. :(

But I think we'd have a lot more people reporting problems if it was on Windows 11 also.

hx2A avatar Oct 05 '25 19:10 hx2A

If it is 1.5.2, can you come up with a way to test "py5 0.10.7 + plugin" and force it to downgrade jpype from 1.6.0 (now min default version for latest version of py5) to the previous version 1.5.2?

BINGO!

@hx2A, I managed to install the Thonny plug-in and before relaunching Thonny I downgraded jpype to 1.5.2 and it all worked.

So it is something to do with jpype1 1.6.0. Progress.

villares avatar Oct 15 '25 20:10 villares

If it is 1.5.2, can you come up with a way to test "py5 0.10.7 + plugin" and force it to downgrade jpype from 1.6.0 (now min default version for latest version of py5) to the previous version 1.5.2?

BINGO!

@hx2A, I managed to install the Thonny plug-in and before relaunching Thonny I downgraded jpype to 1.5.2 and it all worked.

So it is something to do with jpype1 1.6.0. Progress.

Oh, excellent. That must mean that jpype 1.6.0 can't run on Windows 10. Is it possible to test this without py5?

There is nothing in py5 0.10.7 that requires jpype 1.6.0. I remember we had issues with 1.5.1 and 1.5.0, but 1.5.2 works just fine, right??? It is possible for me to lower py5's min dependency to 1.5.2. Or is there a way for me to specify that py5's jpype dependency == 1.5.2 for Windows 10 only? we have a few options here.

But this isn't a long term solution. In time software on Windows 10 will continue to decay. There will be other problems. But this can alleviate this problem temporarily and give us time to figure out something more permanent.

hx2A avatar Oct 15 '25 20:10 hx2A

That must mean that jpype 1.6.0 can't run on Windows 10.

Not really, it is some interaction of jpype 1.6.0 and the plug-in (crashing Thonny during the plug-in loading phase). Without the plug-in, py5 + jpype 1.6.0 works.

villares avatar Oct 15 '25 21:10 villares

That must mean that jpype 1.6.0 can't run on Windows 10.

Not really, it is some interaction of jpype 1.6.0 and the plug-in (crashing Thonny during the plug-in loading phase). Without the plug-in, py5 + jpype 1.6.0 works.

Oh, I see. Then the plugin must be fixable.

hx2A avatar Oct 15 '25 21:10 hx2A

Not really, it is some interaction of jpype 1.6.0 and the plug-in (crashing Thonny during the plug-in loading phase). Without the plug-in, py5 + jpype 1.6.0 works.

Oh, I see. Then the plugin must be fixable.

I have to test more... I tried to uninstall the plug-in and upgrade jpype and now everything is crashing... but I think at another time I had everything working. I'll double check...

[I had to leave kind of in a hurry, I'll see if tomorrow I can test more]

villares avatar Oct 15 '25 21:10 villares