The enum34 package is an obsolete backport of Python's enum module and is incompatible with PyInstaller on Python 3.4+. It was being pulled in as a transitive dependency by pvporcupine (part of RealtimeSTT's dependencies). Changes: - All build scripts now remove enum34 before running PyInstaller - build.bat, build-cuda.bat (Windows) - build.sh, build-cuda.sh (Linux) - Added "uv pip uninstall -q enum34" step after cleaning builds - Removed attempted pyproject.toml override (not needed with this fix) This fix allows PyInstaller to bundle the application without errors while still maintaining all RealtimeSTT functionality (enum is part of Python stdlib since 3.4). Resolves: PyInstaller error "enum34 package is incompatible" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1015 B
Batchfile
39 lines
1015 B
Batchfile
@echo off
|
|
REM Build script for Windows
|
|
|
|
echo Building Local Transcription for Windows...
|
|
echo ==========================================
|
|
echo.
|
|
|
|
REM Clean previous builds
|
|
echo Cleaning previous builds...
|
|
if exist build rmdir /s /q build
|
|
if exist dist rmdir /s /q dist
|
|
|
|
REM Remove enum34 if present (incompatible with PyInstaller)
|
|
echo Removing enum34 (if present)...
|
|
uv pip uninstall -q enum34 2>nul
|
|
|
|
REM Build with PyInstaller
|
|
echo Running PyInstaller...
|
|
uv run pyinstaller local-transcription.spec
|
|
|
|
REM Check if build succeeded
|
|
if exist "dist\LocalTranscription" (
|
|
echo.
|
|
echo Build successful!
|
|
echo Executable location: dist\LocalTranscription\LocalTranscription.exe
|
|
echo.
|
|
echo To run the application:
|
|
echo cd dist\LocalTranscription
|
|
echo LocalTranscription.exe
|
|
echo.
|
|
echo To create a distributable package:
|
|
echo - Install 7-Zip or WinRAR
|
|
echo - Compress the dist\LocalTranscription folder to a ZIP file
|
|
) else (
|
|
echo.
|
|
echo Build failed!
|
|
exit /b 1
|
|
)
|