From 0f78093ce2e9e45cd3e8e58d752a42ed232c5065 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sat, 8 Aug 2026 08:53:40 +0700 Subject: [PATCH] =?UTF-8?q?FIX:=20s=E1=BB=ADa=20requirement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 2 +- wiki.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7575a29..11bb8d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ redis>=4.6.0 python-multipart>=0.0.6 librosa>=0.10.0 pydub>=0.25.1 -numpy>=1.24.0 +numpy>=1.24.0,<2.0 scipy>=1.10.0 soundfile>=0.12.1 jinja2>=3.1.2 diff --git a/wiki.md b/wiki.md index e28114b..d8fa423 100644 --- a/wiki.md +++ b/wiki.md @@ -2959,3 +2959,9 @@ (4) `.github/workflows/windows-build.yml` — windows-latest: python 3.11 + node + rust → pip deps → Babel precompile → pyinstaller engine.spec → copy sidecar (daw_engine-x86_64-pc-windows-msvc.exe) → npx tauri build → upload artifact (NSIS .exe + MSI + daw_engine.exe). - **Các file ảnh hưởng:** main.py, engine.spec, src-tauri/*, .github/workflows/windows-build.yml, tools/mkicons.py, wiki.md. - **Ghi chú/Test:** push lên GitHub (branch desktop-alone) → Actions → workflow_dispatch (hoặc tag v*) → tải artifact "SonicForgeDAW-windows" → chạy setup.exe trên máy Windows (test: daw_engine xuất hiện Task Manager, /docs mở, VST3 scan, Export WAV). + +### [2026-08-08 08:35] Task: FIX build Windows — supertonic cần numpy<2.0 +- **Lỗi CI:** `supertonic 1.2.1 requires numpy<2.0,>=1.21.0, but you have numpy 2.2.6` — pedalboard kéo supertonic (ràng buộc numpy<2) — requirements `numpy>=1.24.0` cài 2.2.6 → conflict. +- **FIX:** requirements.txt — `numpy>=1.24.0,<2.0`. Kiểm tra: code KHÔNG dùng API numpy 2.x (np.float_/np.int_...) → pin <2.0 an toàn. +- **Các file ảnh hưởng:** requirements.txt, wiki.md. +- **Ghi chú/Test:** chạy lại workflow windows-build — pip cài numpy 1.26.x — hết conflict supertonic.