The 9009 error usually means that n8n couldn’t find or run the Python executable. Even if your terminal is set up correctly, there might be a few hidden issues:
What might be going wrong:
1. Python isn’t in the PATH for the environment where n8n is running
Even if python or python3 works in your terminal, n8n might be running as a different user or shell without access to that PATH.
Try running this in the same terminal you use to launch n8n: which python
or python --version
If it throws an error, that’s your problem.
2. Wrong executable name in the node
Some systems use python3 instead of python. In the Python node, change the execution command field to match your system, like:
python3 (common in Linux/macOS)
python (on some Windows setups or custom environments)
3. Docker doesn’t have Python installed
If you’re running n8n via Docker and didn’t build a custom image with Python inside, it won’t work. The default n8n image doesn’t include Python.
Fix: create a custom Docker image based on n8nio/n8n and add Python like this:
Dockerfile
FROM n8nio/n8n
RUN apt-get update && apt-get install -y python3 python3-pip