jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Problems running and opening new windows #386

Open moncapiten opened 3 months ago

moncapiten commented 3 months ago

I've been programming a small project using processing in python mode and it appears to be unable to run any code in the draw loop, neither my code nor various examples( that have been tested have been moveEye and mixtureGrid which didn't work, while list2D example did). In addition, after closing and reopening the IDE and rebooting the system, i tried once again to open processing and it not only refuses to run any draw code without even giving error, but the whole IDE crashes as soon as I try to open any program using the "Open" menu, giving the attached error message and crashing completely. immagine_2024-03-28_152035822

moncapiten commented 3 months ago

I am running on win11 22h2 with python 3.10.4 already installed, if it's of any help

moncapiten commented 3 months ago

Tried removing and reinstalling python mode from the processing interface, now it doesn't hard crash anymore but still not draw loop is ever executed, neither in mine code nor in the examples, except for static ones( e.g. list2D) but if i try to loop them by removing the noLoop() command, it once again doesn't run, open the canvas and computes nothing, not even something like a print in the first line of the draw function

villares commented 3 months ago

Hi @moncapiten , Processing Python mode is not working on the Processing 4 IDE, people still use it on the Processing 3.5.4 IDE, but it is unfortunately an unmaintained tool at this time.

You mentioned Python 3.10, beware that Processing Python mode uses its own special Python interpreter: Jython 2.7.

If you want to try newer Python 3 + Processing integrations you might want to check out these 2 projects: