Getting error in version 4

<!- Getting this error message - any thoughts?
Hmm. Can’t load native code to bring window to front using the absolute path: /Users/montyjones/Library/CloudStorage/GoogleDrive-joneswm2@vcu.edu/My Drive/Processing.py/modes/PythonMode/mode/libjniosx.dylib.
Hmm. Can’t load native code to bring window to front.

Cheers @givetosurfrider !

Processing Python mode does not work on Processing 4, it is kind of dead.
If you need to run a Processing Python mode sketch, you can still do it, but only using Processing 3.5.4.

If you are starting something new, I’d recommend having a look at py5, an active project that combines Processing and the modern Python 3 ecosystem (here at the forum you can ask about it at the py5 category).

Now a rant you can safely ignore: I feel like the Processing Foundation has never put the necessary effort on communicating stuff about Processing Python mode, neither when it was alive, nor now that it is dead, with the https://py.processing.org/ site being an unsightly zombie now.

Thank you so much for the quick response. I have been using version 3 with my non-cs college students for a few years in a creative coding class, but for some reason, I am getting an error message now in version 3 when we try to add the python module. It says something like i am not connected to the internet, and it wont download the python module. So I downloaded version 4, and was able to add the python module. It is generally working, but i am just getting this weird error, which while it doesnt see to mess up anything, it is going to be confusing for students. I am getting ready to move into a K-12 project, and again i think this error message is going to confuse students. I looked briefly at py5, but I am not sure it is appropriate for total novices to programming. It just seems like it takes some additional set up. I also need an environment that students dont need to log into for security reasons. We also have a lot of lesson plans and resources built around processing. Thanks again for any advice.

I’ll give py5 another look though

I feel your pain @givetosurfrider, I teached Processing Python mode for years and years. I don’t know about you, but I felt completely devastated by seeing it being abandoned, as it started falling apart (I had projects using the Serial library + Arduino that stopped working).

Since py5 was born in 2020, and I had the luck of finding it, I started trying it out and eventually converted all my teaching materials to it.

With the help of Tristan Bunn (tabreturn) a plug-in to make the experience of using py5 with the Thonny IDE as close as possible to the simplicity of the Processing IDE was developed. Now the plug-in is maintained by the py5 community.

Please check out this page about the plug-in and a bundle I made of portable Thonny + py5mode plug-in + py5 for Windows

Also I invite you to join our community. We also discuss issues at py5coding/py5generator · Discussions · GitHub

The bundle page contains a brief explanation about “py5 imported mode” vs. “py5 module mode”, the former being what I use with total novices.

OK, I got this to work. One issue, the link to the thonny package you gave doesnt work. But I got thonny and followed the other steps and it is working. Seems to work great, I just wonder if I can get the IT department in the K-12 school and my university to agree to this. Plus I think I would need to walk all the students through these steps which might be a challenge. I’ll continue to mess with it. Again, thank you so much for your help