Known macOS 15.4 Issue with KNIME’s Bundled Python Environments

Dear KNIME Community,

If you are running KNIME Analytics Platform on macOS 15.4 and have installed any extension that relies on Python—whether or not you ever touch a Python Script node—you may encounter library‑loading errors. The issue affects the bundled Python environments shipped with KNIME and any standalone Conda environments.

Who is affected?

You are affected if your KNIME installation contains any of the following extensions:

  • KNIME Python Integration
  • KNIME AI Extension
  • KNIME Giskard Extension
  • KNIME Presidio Extension
  • KNIME Web Interaction (Labs)
  • KNIME Nodes for Google Ads (Labs)
  • KNIME Timeseries (Labs)
  • KNIME Nodes for Scikit‑Learn (sklearn) Algorithms

Typical symptoms include:

  • The Python Script node failing immediately with the message “Execute failed: Could not connect to the Python process.”
  • Missing nodes from the extensions above.
  • KNIME log entries like:
ImportError: dlopen(/Applications/KNIME 5.4.2.app/Contents/Eclipse/bundling/envs/org_knime_pythonscripting/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-darwin.so, 0x0002):
          Library not loaded: @rpath/libgfortran.5.dylib

Root Cause

Some Conda libraries—particularly libgfortran (used by numpy)—contain duplicate RPATH entries, causing them to fail to load on macOS 15.4. This is not limited to KNIME; it stems from a known problem in the numpy conda-forge feedstock (https://github.com/conda-forge/numpy-feedstock/issues/347), and a permanent fix is not yet available. In the meantime, we have prepared a script to remove duplicate RPATH entries and re-sign libraries as needed.


Temporary Workaround

If you do not urgently need to upgrade to macOS 15.4, we recommend waiting until a permanent fix is available. For those who have already updated—or must update—to macOS 15.4, please follow the steps below to modify your KNIME application’s bundled Python environments and any standalone Conda environments. This ensures these libraries can be loaded successfully.

Instructions

  1. Download the script: Obtain the attached file
    fix_knime_python_envs.sh (5.7 KB).
  2. Open a terminal: Launch the Terminal app on macOS. In the terminal, type cd ~/Downloads (or navigate to the folder where you saved the script) to switch to that directory.
  3. Make the script executable:
    chmod +x fix_knime_python_envs.sh
    
  4. Run the script: Provide the path to your KNIME installation or a specific Conda environment:
    ./fix_knime_python_envs.sh "/Applications/KNIME 5.4.3.app"
    ./fix_knime_python_envs.sh /path/to/my_conda_env
    

We will provide updated Python environments in bugfix releases of KNIME Analytics Platform once conda-forge and numpy offer a general fix for these duplicate RPATH entries. In the meantime, please apply this script if you encounter any Python library loading issues on macOS 15.4.

Thank you for your understanding and patience.

10 Likes

Hi @bwilhelm
Thank you, I solved my Issue with KNIME’s Bundled Python Environments :pray: :slightly_smiling_face:

Hi,

The previously reported macOS-specific issue has been resolved in KNIME AP version 5.4.4.

Users encountering this problem can resolve it by directly updating their KNIME AP to version 5.4.4. No further action is necessary :slight_smile:

4 Likes