fix: Rename ui package to whispering_ui to avoid NiceGUI conflict
The package name 'ui' conflicted with NiceGUI's ui module, causing RuntimeWarning and unpredictable behavior. Renamed to 'whispering_ui' for clarity and to avoid module name conflicts. Updated: - Renamed src/ui/ to src/whispering_ui/ - Updated all launcher scripts to use whispering_ui.main - Updated documentation with note about naming
+11 −11 · 10 files changed
-
scripts/run_nicegui.py+1 −1 -
scripts/run_nicegui.sh+1 −1 -
src/{ui => whispering_ui}/README.md+8 −8 -
src/{ui => whispering_ui}/__init__.py+1 −1 -
src/{ui => whispering_ui}/bridge.py+0 −0 -
src/{ui => whispering_ui}/components/__init__.py+0 −0 -
src/{ui => whispering_ui}/components/output.py+0 −0 -
src/{ui => whispering_ui}/components/sidebar.py+0 −0 -
src/{ui => whispering_ui}/main.py+0 −0 -
src/{ui => whispering_ui}/state.py+0 −0
@@ -23,5 +23,5 @@ except ImportError: # Launch the NiceGUI application print("Starting Whispering with NiceGUI interface...") -from ui.main import main +from whispering_ui.main import main main() @@ -32,4 +32,4 @@ export PYTHONPATH="$PROJECT_DIR/src:$PYTHONPATH" # Change to src directory and run cd "$PROJECT_DIR/src" echo "Starting Whispering with NiceGUI interface..." -python3 -m ui.main "$@" +python3 -m whispering_ui.main "$@" @@ -1,7 +1,9 @@ -# NiceGUI UI Module +# Whispering NiceGUI UI Module This directory contains the modular NiceGUI-based user interface for Whispering. +**Note:** This package is named `whispering_ui` (not `ui`) to avoid conflicts with NiceGUI's own `ui` module. + ## Architecture The UI is organized into separate concerns: @@ -39,14 +41,12 @@ The UI is organized into separate concerns: To run the NiceGUI version: ```bash -cd src -python -m ui.main -``` +# Use the launcher script +./scripts/run_nicegui.sh -Or from the project root: - -```bash -python src/ui/main.py +# Or from src directory: +cd src +python -m whispering_ui.main ``` ## Key Differences from tkinter Version @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -NiceGUI UI Package +Whispering NiceGUI UI Package """ from .main import main