mirror of
https://github.com/fspecii/ace-step-ui.git
synced 2026-04-25 06:05:47 +03:00
[GH-ISSUE #44] "Format failed" error on Windows despite successful LLM API initialization (spawn ENOENT error) #40
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ace-step-ui#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nickalps on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/fspecii/ace-step-ui/issues/44
I installed the UI on Windows following the instructions in the README.
Steps to Reproduce:
Result:
However, the API server command window shows that the LLM model was loaded successfully (see logs below).
The UI command window shows a spawn error related to the Python executable in the virtual environment (see logs below).
Logs:
From the API Server CMD window:
2026-02-09 20:10:11.248 | INFO | acestep.llm_inference:_initialize_5hz_lm_vllm:454 - 5Hz LM initialized successfully in 20.01 seconds
2026-02-09 20:10:11.248 | INFO | acestep.llm_inference:initialize:390 - 5Hz LM status message: ✅ 5Hz LM initialized successfully
Model: F:\ACE-Step-1.5\checkpoints\acestep-5Hz-lm-0.6B
Device: NVIDIA GeForce RTX 3060
GPU Memory Utilization: 0.250
Low GPU Memory Mode: False
[API Server] LLM model loaded: acestep-5Hz-lm-0.6B
[API Server] All models initialized successfully!
From the UI CMD window (when the format button is clicked):
[Format] CWD: ..\ACE-Step-1.5
[Format] Spawn error: spawn ..\ACE-Step-1.5.venv\Scripts\python.exe ENOENT
[Format] Python error: spawn ..\ACE-Step-1.5.venv\Scripts\python.exe ENOENT
[Format] Process exited with code -4058
Environment:
OS: Windows 11
ACE-Step: Portable from Readme
UI istalled using: git clone https://github.com/fspecii/ace-step-ui and then setup.bat
When I use the "enhance" button in the "gradio ui", it works well.
@nickalps commented on GitHub (Feb 9, 2026):
Today I was too lazy to check and fix it myself. I used an LLM to resolve the issue. I don't have time to create a proper commit, so I'll just post the LLM's report.
To give the LLM more context, I used the text from two other related issues:
Here is what the LLM suggested to make it work for me:
Fixes for Format Feature and Deprecated Arguments Issues
Overview
This document describes the fixes applied to resolve three linked issues:
--lm-backendand--lm-modelarguments causing failures when ACE-Step API is unavailableProblems Identified
Issue 1 & 2: Python Path Resolution Failure
resolvePythonPath()function only checked for.venvbut users may have venvs with different naming patterns (e.g.,ACE-Step-1.5.venv)process.cwd()instead of the workspace root, causing incorrect paths likeF:\ace-step-ui\ACE-Step-1.5\instead ofF:\ACE-Step-1.5\Issue 3: Deprecated Arguments
--lm-backendand--lm-modelarguments were being passed tosimple_generate.pybut are deprecatedformat_sample.py, so they should only be removed from generation callsSolutions Implemented
1. Enhanced Python Path Resolution (
server/src/services/acestep.ts)Changes:
resolvePythonPath()to check multiple venv naming patterns:.venv.venv(e.g.,ACE-Step-1.5.venv)python_embeded)path.resolve()Key Code Changes:
2. Fixed ACE-Step Path Resolution (
server/src/services/acestep.ts)Changes:
resolveAceStepPath()to resolve relative paths from workspace root instead ofprocess.cwd()Key Code Changes:
3. Removed Deprecated Arguments (
server/src/services/acestep.ts)Changes:
--lm-backendand--lm-modelarguments fromsimple_generate.pycalls inprocessGeneration()functionformat_sample.pycallsKey Code Changes:
4. Unified Path Resolution (
server/src/routes/generate.ts)Changes:
resolveAceStepPath()instead of inline path resolutionresolveAceStepPath()for consistencyKey Code Changes:
5. Enhanced Error Handling
Changes:
Files Modified
server/src/services/acestep.tsfunction resolveAceStepPath()toexport function resolveAceStepPath()absoluteBaseDirvariable to ensure absolute pathsresolvePythonPath()to check multiple venv patterns and validate paths--lm-backendand--lm-modelarguments (replaced with comment)readdirSyncimport for directory scanningrunPythonGeneration()server/src/routes/generate.tsexistsSyncimportresolveAceStepPathto importsresolveAceStepPath()resolveAceStepPath()Testing Recommendations
Test with different venv naming patterns:
.venv(standard)ACE-Step-1.5.venv(Windows pattern)python_embeded)Test path resolution:
ACESTEP_PATHenvironment variable set to absolute pathACESTEP_PATHset to relative path (e.g.,..\ACE-Step-1.5)ACESTEP_PATH(should default to sibling directory)Verify format feature:
Verify generation without API:
simple_generate.pyImpact
Notes
python_embeded) when available, as shown in the API server logs@nickalps commented on GitHub (Feb 9, 2026):
Also this error may have been initially caused by the fact that my portable ACE-Step-1.5 was updated when I tested it and checked how the gradio ui works. But I'm not sure 😅
@cynical2010 commented on GitHub (Feb 11, 2026):
same for me > [https://github.com/fspecii/ace-step-ui/issues/46]
Windows GPT 5 Mini
not Tested and will not Test it.
Maybe it helps someone
Good luck i'm outta here ➡️🏃♂️➡️😂