Skip to content

spawn cmd.exe ENOENT on macOS when executing Python script #16

Description

@arwandar

Bug: Plugin tries to spawn cmd.exe on macOS

I'm running the PythonScriptDeck plugin on macOS (Sequoia 15.5) and encounter the following error when trying to run a script using a configured virtual environment.

❌ Error

The plugin throws an unhandled exception when trying to execute a Python script:

2025-07-15T10:04:26.063Z INFO /Users/arwandar/.pyenv/versions/3.10.13/bin/python3.10
2025-07-15T10:04:42.833Z INFO path to script is: /Users/arwandar/Documents/streamdeck/calendar_1.py
2025-07-15T10:04:42.837Z INFO start reading output
2025-07-15T10:04:42.838Z ERROR Process encountered uncaught exception
spawn cmd.exe ENOENT
Error: spawn cmd.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

This indicates that the plugin tries to use cmd.exe, which is not available on macOS.

✅ Expected behavior

The plugin should detect the platform and run the Python script with the right command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions