Skip to content
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

Python mode doesn't work. #387

Open
saltwater2015 opened this issue May 22, 2024 · 2 comments
Open

Python mode doesn't work. #387

saltwater2015 opened this issue May 22, 2024 · 2 comments

Comments

@saltwater2015
Copy link

Win 11 home.
Processing 4.3.

I just tried a very simple code:

def setup():
    size(640, 360, P3D)
    fill(204)


def draw():
    lights()
    background(0)

But I got the following output:
java.lang.NullPointerException at jycessing.Runner.runSketchBlocking(Unknown Source) at jycessing.mode.run.SketchRunner.lambda$startSketch$3(Unknown Source) at java.base/java.lang.Thread.run(Thread.java:833)
But I am in the java mode. All things goes all right.
I cant run all types of Examples in the python mode. I got the same output as the above.

@saltwater2015
Copy link
Author

I installed python mode for processing 4. in "modes"-"contribution manager". But I got another error report:

RemoteException occurred in server thread; nested exception is: 
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.io.InvalidClassException: jycessing.mode.run.PdeSketch; local class incompatible: stream classdesc serialVersionUID = 3931972619109913057, local class serialVersionUID = 4088556615327966884

Does processing 4 still support python?

@villares
Copy link

Does processing 4 still support python?

Hi @saltwater2015, I'm afraid Processing Python mode is an unmaintained project, not supported on Processing 4.

I recommend you check https://py5coding.org as the new (and better!) way of getting the Processing 4 graphics infrastructure with Python (now integrated into the modern Python 3 ecosystem!).

If you'd like to get an experience close to the one with the Processing IDE (to make things easier for beginners) you could have a look at Thonny IDE (thonny.org) with the thonny-py5mode plug-in: https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants