Troubleshooting
General Issues
If you encounter issues during installation or operation:
- Ensure all system requirements are met
- Check that Python is correctly installed and in your PATH
- Verify that the virtual environment is activated before running the application
- For database connection errors, ensure your database server (if using external DB) is running
Dynamic Forms Issues
Form Not Found
Symptom: "Form not found" error
Solution:
# Check if form exists
forms = Form.filter_by(name='LOGIN', is_deleted=False)
if not forms:
print("Form not found, creating...")
# Create form
Colors Not Displaying Correctly
Symptom: Colors appear black or white
Solution:
# Color format: "0xRRGGBB" must be a string
form.back_color = "0x3268A8" # Correct
# form.back_color = 0x3268A8 # Wrong (integer)
# form.back_color = "#3268A8" # Works but not recommended
Modal Form Not Opening
Symptom: Modal form not displaying
Solution:
# Ensure transition_mode is written correctly
control.form_transition_mode = "MODAL" # Correct (uppercase)
# control.form_transition_mode = "modal" # Works (code does upper())
Virtual Keyboard Issues
Virtual Keyboard Not Showing
- Check if
is_activeisTruefor at least one keyboard theme - Verify database connection
- Check KeyboardSettingsLoader initialization in logs
Styles Not Updating
- Call
KeyboardSettingsLoader.reload_settings()after database changes - Restart application if settings were changed before initialization
Custom Theme Not Appearing
- Ensure
is_deletedisFalse - Check that theme name doesn't conflict with existing themes
- Activate the theme by setting
is_active=True
Installation Issues
Python Not Found
Symptom: "python: command not found" or "python3: command not found"
Solution:
- Ensure Python 3.13 or higher is installed
- Add Python to your system PATH
- On Windows, check "Add Python to PATH" during installation
- Try using
python3instead ofpythonon Linux/macOS
Virtual Environment Issues
Symptom: Packages not found or import errors
Solution:
- Make sure virtual environment is activated before installing packages
- Verify you're using the correct Python interpreter
- Recreate virtual environment if corrupted:
rm -rf venv && python3 -m venv venv
Dependency Installation Fails
Symptom: pip install errors
Solution:
- Update pip:
pip install --upgrade pip - Install build tools (Windows): Visual C++ Build Tools
- Install system dependencies (Linux):
sudo apt-get install python3-dev
Database Issues
Database Connection Error
Symptom: Cannot connect to database
Solution:
- Check database server is running
- Verify connection string in
settings.toml - Check database file permissions (SQLite)
- Verify database credentials
Migration Errors
Symptom: Database migration fails
Solution:
- Backup database before migration
- Check database schema compatibility
- Review migration logs for specific errors
- Consider manual migration for complex changes
Getting Help
If you're still experiencing issues:
- Visit the GitHub repository for latest information
- Check the Installation Guide for detailed setup instructions
- Review the Dynamic Forms documentation
- Submit issues via GitHub Issues
- General inquiries: info@mousavi.tech
- Technical support: support@mousavi.tech
SaleFlex is developed by Mousavi.Tech - Innovative Software Solutions