open-agents-ai 0.138.61 → 0.138.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +33 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40440,43 +40440,43 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
40440
40440
|
renderInfo(" Installing LuxTTS dependencies...");
|
|
40441
40441
|
const pipCmd = JSON.stringify(venvPy);
|
|
40442
40442
|
const isArm = process.arch === "arm64" || process.arch === "arm";
|
|
40443
|
-
const coreDeps = isArm ? `lhotse huggingface_hub safetensors pydub librosa "transformers<=4.57.6" inflect numpy "setuptools<81"` : `lhotse huggingface_hub safetensors pydub onnxruntime librosa "transformers<=4.57.6" inflect numpy vocos "setuptools<81"`;
|
|
40444
40443
|
if (isArm) {
|
|
40445
|
-
renderInfo(" ARM device detected \u2014
|
|
40446
|
-
|
|
40447
|
-
|
|
40444
|
+
renderInfo(" ARM device detected \u2014 installing build prerequisites then deps individually.");
|
|
40445
|
+
try {
|
|
40446
|
+
await this.asyncShell(`sudo apt-get install -y --no-install-recommends llvm-dev libllvm14 llvm-14-dev gcc g++ gfortran libopenblas-dev libsndfile1-dev 2>/dev/null || true`, 12e4);
|
|
40447
|
+
} catch {
|
|
40448
|
+
renderWarning(" Could not install system build deps (sudo may require password). librosa/lhotse may fail to compile.");
|
|
40449
|
+
}
|
|
40450
|
+
}
|
|
40451
|
+
const installSteps = isArm ? [
|
|
40452
|
+
// ARM: install individually so we get clear error messages per package.
|
|
40453
|
+
// ALL are fatal because LuxTTS hard-imports them (no lazy/optional imports).
|
|
40454
|
+
{ cmd: `${pipCmd} -m pip install --quiet "setuptools<81" wheel`, fatal: true, label: "setuptools" },
|
|
40455
|
+
{ cmd: `${pipCmd} -m pip install --quiet numpy`, fatal: true, label: "numpy" },
|
|
40456
|
+
{ cmd: `${pipCmd} -m pip install --quiet huggingface_hub safetensors`, fatal: true, label: "huggingface_hub + safetensors" },
|
|
40457
|
+
{ cmd: `${pipCmd} -m pip install --quiet "transformers<=4.57.6"`, fatal: true, label: "transformers" },
|
|
40458
|
+
{ cmd: `${pipCmd} -m pip install --quiet pydub inflect`, fatal: true, label: "pydub + inflect" },
|
|
40459
|
+
// librosa needs numba→llvmlite which compiles against LLVM on ARM
|
|
40460
|
+
{ cmd: `${pipCmd} -m pip install --quiet librosa`, fatal: true, label: "librosa (compiling numba/llvmlite \u2014 this may take several minutes on ARM)" },
|
|
40461
|
+
{ cmd: `${pipCmd} -m pip install --quiet lhotse`, fatal: true, label: "lhotse" },
|
|
40462
|
+
{ cmd: `${pipCmd} -m pip install --quiet vocos`, fatal: true, label: "vocos" },
|
|
40463
|
+
{ cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`, fatal: true, label: "LinaCodec" },
|
|
40464
|
+
// Non-fatal (not hard-imported by LuxTTS):
|
|
40465
|
+
{ cmd: `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`, fatal: false, label: "piper-phonemize (optional)" },
|
|
40466
|
+
{ cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`, fatal: true, label: "Chinese text processing" },
|
|
40467
|
+
// LuxTTS itself:
|
|
40468
|
+
{ cmd: `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`, fatal: true, label: "LuxTTS (editable install)" }
|
|
40469
|
+
] : [
|
|
40470
|
+
// x86_64: all-in-one (fast, all wheels available)
|
|
40448
40471
|
{
|
|
40449
|
-
cmd: `${pipCmd} -m pip install --quiet
|
|
40472
|
+
cmd: `${pipCmd} -m pip install --quiet lhotse huggingface_hub safetensors pydub onnxruntime librosa "transformers<=4.57.6" inflect numpy vocos "setuptools<81"`,
|
|
40450
40473
|
fatal: true,
|
|
40451
40474
|
label: "core LuxTTS deps"
|
|
40452
40475
|
},
|
|
40453
|
-
|
|
40454
|
-
|
|
40455
|
-
|
|
40456
|
-
|
|
40457
|
-
fatal: false,
|
|
40458
|
-
label: "vocos"
|
|
40459
|
-
}] : [],
|
|
40460
|
-
{
|
|
40461
|
-
cmd: `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`,
|
|
40462
|
-
fatal: false,
|
|
40463
|
-
label: "piper-phonemize"
|
|
40464
|
-
},
|
|
40465
|
-
{
|
|
40466
|
-
cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`,
|
|
40467
|
-
fatal: true,
|
|
40468
|
-
label: "Chinese text processing deps"
|
|
40469
|
-
},
|
|
40470
|
-
{
|
|
40471
|
-
cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`,
|
|
40472
|
-
fatal: false,
|
|
40473
|
-
label: "LinaCodec"
|
|
40474
|
-
},
|
|
40475
|
-
{
|
|
40476
|
-
cmd: `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`,
|
|
40477
|
-
fatal: true,
|
|
40478
|
-
label: "LuxTTS (editable install)"
|
|
40479
|
-
}
|
|
40476
|
+
{ cmd: `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`, fatal: false, label: "piper-phonemize" },
|
|
40477
|
+
{ cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`, fatal: true, label: "Chinese text processing" },
|
|
40478
|
+
{ cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`, fatal: false, label: "LinaCodec" },
|
|
40479
|
+
{ cmd: `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`, fatal: true, label: "LuxTTS (editable install)" }
|
|
40480
40480
|
];
|
|
40481
40481
|
for (const step of installSteps) {
|
|
40482
40482
|
try {
|
|
@@ -40484,8 +40484,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
40484
40484
|
} catch (err) {
|
|
40485
40485
|
const msg = err instanceof Error ? err.message : String(err);
|
|
40486
40486
|
if (!step.fatal) {
|
|
40487
|
-
|
|
40488
|
-
renderWarning(` Non-critical install warning (${step.label})${armNote}: ${msg.slice(0, 120)}`);
|
|
40487
|
+
renderWarning(` Skipped (${step.label}): ${msg.slice(0, 150)}`);
|
|
40489
40488
|
} else {
|
|
40490
40489
|
throw new Error(`Failed to install LuxTTS dependencies (${step.label}): ${msg}`);
|
|
40491
40490
|
}
|
package/package.json
CHANGED