Bug Description
After installing npm package of n8n in Windows 10 I have created an Workflow which contains a Python code node. This node repeated giving me error that - "Python runner unavailable: Virtual environment is missing from this system...". Further investigation reveals that -
- In task-runner-process-py.js file '.venv/bin/python' path is hardcoded which is a LINUX path.
- The path '@n8n/task-runner-python' is missing from the npm installation but this is used in the JS file.
As a result Python script is not running in the workflow.
To Reproduce
- Install n8n npm package for Windows
- run n8n server
- Create a workflow with a Python code node.
- Try to run a test run of the default Python code.
Expected behavior
Python script should run properly without any error like - "Python runner unavailable: Virtual environment is missing from this system
Internal mode is intended only for debugging."
Debug Info
- In command prompt run the command -
type "C:\Users<username>\AppData\Roaming\npm\node_modules\n8n\dist\task-runners\task-runner-process-py.js"
See the hardcoded paths mentioned in "Bug Description".
Operating System
Windows 10
n8n Version
2.9.2
Node.js Version
24.11.1
Database
SQLite (default)
Execution mode
main (default)
Hosting
self hosted
Bug Description
After installing npm package of n8n in Windows 10 I have created an Workflow which contains a Python code node. This node repeated giving me error that - "Python runner unavailable: Virtual environment is missing from this system...". Further investigation reveals that -
As a result Python script is not running in the workflow.
To Reproduce
Expected behavior
Python script should run properly without any error like - "Python runner unavailable: Virtual environment is missing from this system
Internal mode is intended only for debugging."
Debug Info
type "C:\Users<username>\AppData\Roaming\npm\node_modules\n8n\dist\task-runners\task-runner-process-py.js"
See the hardcoded paths mentioned in "Bug Description".
Operating System
Windows 10
n8n Version
2.9.2
Node.js Version
24.11.1
Database
SQLite (default)
Execution mode
main (default)
Hosting
self hosted