Skip to content

n8n npm installation for Windows is broken for Python node #26286

Description

@suranjits-cmd

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 -

  1. In task-runner-process-py.js file '.venv/bin/python' path is hardcoded which is a LINUX path.
  2. 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

  1. Install n8n npm package for Windows
  2. run n8n server
  3. Create a workflow with a Python code node.
  4. 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

  1. 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

Metadata

Metadata

Assignees

Labels

Needs FeedbackWaiting for further input or clarification.status:in-linearIssue or PR is now in Lineartriage:pendingWaiting to be triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions