forked from resemble-ai/chatterbox
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathupdate.bat
More file actions
61 lines (54 loc) · 1.84 KB
/
update.bat
File metadata and controls
61 lines (54 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
REM ========================================
REM NOTICE: This functionality has been
REM integrated into install-audiobook.bat
REM This standalone script is kept for
REM emergency pydantic updates only.
REM ========================================
echo ========================================
echo Chatterbox TTS - Pydantic Updater
echo ========================================
echo.
echo This script will update the pydantic library in your
echo existing Chatterbox TTS virtual environment to version 2.10.6
echo to resolve potential compatibility issues.
echo.
echo NOTE: This functionality is now integrated into install-audiobook.bat
echo This standalone script is for emergency updates only.
echo.
echo Checking for virtual environment...
if not exist "venv\Scripts\activate.bat" (
echo ERROR: Virtual environment not found!
echo Please make sure this script is in the chatterbox repository root
echo and that you have run install-audiobook.bat at least once.
pause
exit /b 1
)
echo Activating virtual environment...
call venv\Scripts\activate.bat
echo.
echo Uninstalling existing pydantic (if any)...
pip uninstall pydantic -y
echo.
echo Installing pydantic version 2.10.6...
pip install pydantic==2.10.6
echo.
echo Verifying pydantic version...
pip show pydantic | findstr /C:"Version: 2.10.6"
if %errorlevel% neq 0 (
echo ERROR: Pydantic 2.10.6 installation failed or was not confirmed.
echo Please check the output above for errors.
echo You may need to run install-audiobook.bat again.
) else (
echo INFO: Pydantic successfully updated to version 2.10.6.
)
echo.
echo Deactivating virtual environment...
deactivate
echo.
echo ========================================
echo Update Process Complete
echo ========================================
echo.
echo You can now try running launch_audiobook.bat again.
pause