valuecell icon indicating copy to clipboard operation
valuecell copied to clipboard

Starting frontend dev server (bun run dev)... [ERR ] Failed to start frontend: 由于出现以下错误,无法运行此命令: %1 不是有效的 Win32 应用程序。

Open fxmaybe opened this issue 1 year ago • 5 comments

WIN11下运行.\start.ps1时出错

Running: uv sync warning: The requires-python specifier (~=3.12) in ai-hedge-fund uses the tilde specifier (~=) without a patch version. This will be interpreted as >=3.12, <4. Did you mean ~=3.12.0 to constrain the version as >=3.12.0, <3.13? We recommend only using the tilde specifier with a patch version to avoid ambiguity. error: Querying Python at C:\Users\fxuni\www\valuecell\python\third_party\ai-hedge-fund\.venv\Scripts\python.exe failed with exit status exit code: 0xc0000135 ai-hedge-fund environment setup complete.

Setting up TradingAgents environment...

.venv already exists, skipping venv creation. Running: uv sync error: Querying Python at C:\Users\fxuni\www\valuecell\python\third_party\TradingAgents\.venv\Scripts\python.exe failed with exit status exit code: 0xc0000135 TradingAgents environment setup complete.

All environments are set up.

× Failed to build valuecell @ file:///C:/Users/fxuni/www/valuecell/python ├─▶ The build backend returned an error
╰─▶ Call to hatchling.build.build_editable failed (exit code: 0xc0000135) hint: This usually indicates a problem with the package or the build environment. [ OK ] Python dependencies synced [INFO] Install frontend dependencies (bun install)... bun install v1.3.1 (89fa0f34)

Checked 708 installs across 753 packages (no changes) [369.00ms] [ OK ] Frontend dependencies installed [INFO] Starting frontend dev server (bun run dev)... [ERR ] Failed to start frontend: 由于出现以下错误,无法运行此命令: %1 不是有效的 Win32 应用程序。。 [INFO] Starting backend (uv run scripts/launch.py)... × Failed to build valuecell @ file:///C:/Users/fxuni/www/valuecell/python ├─▶ The build backend returned an error ╰─▶ Call to hatchling.build.build_editable failed (exit code: 0xc0000135) hint: This usually indicates a problem with the package or the build environment.

[INFO] Stopping services... [ OK ] Stopped

fxmaybe avatar Oct 31 '25 06:10 fxmaybe

which cmd are you using ?

DigHuang avatar Oct 31 '25 07:10 DigHuang

which cmd are you using ? I've tried all the command prompts, including PowerShell and VS Code.

resolved: (bun的路径不对): 由于出现以下错误,无法运行此命令: %1 不是有效的 Win32 应用程序 $script:FRONTEND_PROCESS = Start-Process -FilePath "$env:USERPROFILE.bun\bin\bun.exe" -ArgumentList "run", "dev" -NoNewWindow -PassThru Write-Info "Frontend PID: $($script:FRONTEND_PROCESS.Id)"

I changed the path when run "bun run dev". This problem has been solved

python v13/14 Tried them all. Running: uv sync error: Querying Python at C:\Users\fxuni\www\valuecell\python\third_party\TradingAgents.venv\Scripts\python.exe failed with exit status exit code: 0xc0000135

But this problem still exists when run uv

fxmaybe avatar Oct 31 '25 07:10 fxmaybe

Done ...This project requires a Python version >12and < 13, not just >12. Programs using Python versions >13 or higher will throw errors. You need to revise your documentation.

fxmaybe avatar Oct 31 '25 10:10 fxmaybe

Done ...This project requires a Python version >12and < 13, not just >12. Programs using Python versions >13 or higher will throw errors. You need to revise your documentation.

python 版本 3.12.1 也不行啊

SanGuiChen avatar Nov 02 '25 14:11 SanGuiChen

cursor 分析了原因:

Image

提供两个方式:

  1. 单独进到 frontend 和 python 里分别起服务可以正常 work
  2. cursor 给的修复方案,可以正常 work,参考这个 pr:https://github.com/ValueCell-ai/valuecell/pull/294

SanGuiChen avatar Nov 02 '25 14:11 SanGuiChen