GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Processing 4 in Python mode Sound Library not working · Issue #1588 · processing/processing4

Processing 4 in Python mode Sound Library not working #1588

New issue
Copy link
New issue
Copy link
Open
Open
Processing 4 in Python mode Sound Library not working#1588
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@jcarlis1
jcarlis1
opened on Oct 23, 2026
Issue body actions

Most appropriate sub-area of Processing 4?

I'm not sure

Processing version

4.5.7 (but really every version since 4 came out)

Operating system

MacOS Tahoe 26.7.1

Bug description

I get the following error when starting a project that uses the Sound Library:

java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at jycessing.LibraryImporter.addJarToClassLoader(LibraryImporter.java:315)
at jycessing.LibraryImporter.recursivelyAddJarsToClasspath(LibraryImporter.java:164)
at jycessing.LibraryImporter.addLibrary(LibraryImporter.java:140)
at jycessing.LibraryImporter$1.call(LibraryImporter.java:82)
at org.python.core.PyObject.call(PyObject.java:480)
at org.python.core.PyObject.call(PyObject.java:484)
at org.python.pycode._pyx11.f$0(MicCheck.pyde:1)
at org.python.pycode._pyx11.call_function(MicCheck.pyde)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.Py.exec(Py.java:1658)
at org.python.pycode._pyx10.f$0(/Users/Joey/Desktop/MicCheck/MicCheck.pyde:96)
at org.python.pycode._pyx10.call_function(/Users/Joey/Desktop/MicCheck/MicCheck.pyde)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.Py.exec(Py.java:1658)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)
at jycessing.PAppletJythonDriver.processSketch(PAppletJythonDriver.java:233)
at jycessing.PAppletJythonDriver.findSketchMethods(PAppletJythonDriver.java:613)
at jycessing.Runner.runSketchBlocking(Runner.java:399)
at jycessing.mode.run.SketchRunner.lambda$2(SketchRunner.java:112)
at java.base/java.lang.Thread.run(Thread.java:840)

Hmm. Can't load native code to bring window to front using the absolute path: /Users/Joey/Documents/Processing/modes/PythonMode/mode/libjniosx.dylib.
Hmm. Can't load native code to bring window to front.

Steps to reproduce this

  1. Open the MicCheck project (zip file provided in snippet section)

  2. Run the code

  3. I get the error message listed in the Bug Description section.

snippet

MicCheck.zip

Additional context

The Sound Library using Python mode has never work in any version of Processing 4.

Would you like to work on the issue?

No, I’m just reporting the issue

Activity

  1. jcarlis1
    added
    bugSomething isn't workingSomething isn't working
    on Oct 23, 2026
  2. SableRaf commented on Oct 23, 2026

    @SableRaf
    SableRaf
    on Oct 23, 2026
    Collaborator
    More actions

    Hi @jcarlis1, and thanks for reporting this!

    Although a version of Python Mode was released for Processing 4, development stopped before it was fully functional, and the project is no longer maintained.

    An alternative is being developed, but in the meantime, we recommend using py5.

    You can find more information here: Status of Python Mode for Processing

    cc @catilac

    Reacted by Jim
  3. hx2A commented on Oct 23, 2026

    @hx2A
    hx2A
    on Oct 23, 2026
    Contributor
    More actions

    py5 uses CPython and connects Python to Java using the library JPype. py5 has nice features for making it easy to work with Processing's Java extension libraries. You'd be able to download the library using the download_library() function:

    https://py5coding.org/reference/py5tools_processing_download_library.html

    And then after importing py5 you can import the Sound library classes just as you would import a Python class.

    If you want to try py5 I can make a simple sound example for you if you like; let me know how much assistance you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.