v25.12.19

This commit is contained in:
ROBERT MCDOWELL
2025-12-18 20:37:19 -08:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -450,10 +450,10 @@ python -m pip install --upgrade pip pip setuptools wheel >nul 2>&1
python -m pip install --upgrade llvmlite numba --only-binary=:all:
set count_pkg=0
for /f "usebackq delims=" %%P in ("%SCRIPT_DIR%\requirements.txt") do (
if not "%%P"=="" if not "%%P:~0,1%"=="#" (
if not "%%P"=="" if not "%%P:~0,1"=="#" (
set /a count_pkg+=1
echo [!count_pkg!] Installing %%P
python -m pip install --upgrade --no-cache-dir %%P || exit /b 1
python -m pip install --upgrade --no-cache-dir "%%P" || exit /b 1
)
)
if errorlevel 1 goto :failed

View File

@@ -792,9 +792,9 @@ else
elif [[ "$SCRIPT_MODE" == "$NATIVE" ]]; then
# Check if running in a Conda or Python virtual environment
if [[ -n "${CONDA_DEFAULT_ENV:-}" ]]; then
current_pyvenv="${CONDA_PREFIX:-}"
CURRENT_PYVENV="${CONDA_PREFIX:-}"
elif [[ -n "${VIRTUAL_ENV:-}" ]]; then
current_pyvenv="$VIRTUAL_ENV"
CURRENT_PYVENV="$VIRTUAL_ENV"
fi
# If neither environment variable is set, check Python path
if [[ -z "${CURRENT_PYVENV:-}" ]]; then

View File

@@ -55,7 +55,7 @@ class VoiceExtractor:
msg = 'Conversion to .wav format for processing successful'
return True, msg
else:
error = f'normalize_audio() SubprocessPipe Error:'
error = f'_convert2wav() SubprocessPipe Error.'
return False, error
except subprocess.CalledProcessError as e:
try:
@@ -100,7 +100,7 @@ class VoiceExtractor:
msg = 'Voice track isolation successful'
return True, msg
else:
error = f'_demucs_voice() SubprocessPipe Error:'
error = f'_demucs_voice() SubprocessPipe Error.'
return False, error
except subprocess.CalledProcessError as e:
error = (
@@ -251,7 +251,7 @@ class VoiceExtractor:
msg = 'Audio normalization successful!'
return True, msg
else:
error = f'normalize_audio() SubprocessPipe Error:'
error = f'normalize_audio() SubprocessPipe Error.'
return False, error
except subprocess.CalledProcessError as e:
stderr = getattr(e, "stderr", None)
@@ -262,7 +262,7 @@ class VoiceExtractor:
error = f'normalize_audio() ffmpeg.Error: {stderr_msg}'
return False, error
except FileNotFoundError as e:
error = 'normalize_audio() FileNotFoundError: {e} Input file or FFmpeg PATH not found!'
error = f'normalize_audio() FileNotFoundError: {e}. Input file or FFmpeg PATH not found!'
return False, error
except Exception as e:
error = f'normalize_audio() error: {e}'