Troubleshooting Common Errors
This page provides solutions for common issues you may encounter while installing or running EasyScanlate.
GUI Library Conflict: PySide6 vs. PyQt5
This is the most common issue for users running the application from source code.
Symptoms
When you launch the application using python main.py, it immediately shows an error dialog with the title “Dependency Error” and the message “Incorrect GUI Library Detected.”
Cause
EasyScanlate is built using the PySide6 library for its graphical user interface. This error occurs if your Python environment has the conflicting PyQt5 library installed. The two cannot coexist and the application is designed to safely exit instead of crashing.
Solution
The application displays a helpful error dialog that explains the problem. To fix this, you must uninstall PyQt5 and install PySide6.
- The error dialog features a “Copy Commands” button. Click it to copy the required commands to your clipboard.
- Open your terminal or Command Prompt.
- Paste and run the commands:
pip uninstall PyQt5 pip install pyside6 - Once the commands have finished, try launching the application again with
python main.py. It should now start correctly.
Missing Dependencies
Symptoms
The application fails to start with ImportError or ModuleNotFoundError messages in the console, such as:
ModuleNotFoundError: No module named 'PySide6'ModuleNotFoundError: No module named 'rapidocr'ModuleNotFoundError: No module named 'PIL'
Cause
Required Python packages are not installed in your environment.
Solution
Install all required dependencies using the provided requirements file:
pip install -r requirements.txt
Key dependencies include:
- PySide6 - GUI framework
- rapidocr - OCR engine for text recognition
- pillow - Image processing
- numpy - Numerical operations
- opencv-python - Computer vision operations
- google-genai or neverliie-ai-sdk - AI translation services
- qtawesome - Icon library
Project Load Errors
Missing Images Directory
Symptoms
Error message: “Failed to load project: The ‘images’ directory is missing in the project file.”
Cause
The .mmtl project file is corrupted or was not created properly. The project file is a ZIP archive that must contain an images/ folder.
Solution
- If the project was created by EasyScanlate, it may be corrupted. Try restoring from a backup.
- If manually creating a project, ensure the ZIP structure follows the format:
project.mmtl (ZIP archive) ├── images/ │ └── (your image files) ├── master.json └── meta.json
Corrupted Project Files
Symptoms
Error messages when opening a project:
- “Failed to load project” with JSON-related errors
- Project opens but shows no images or OCR results
- Application crashes when loading specific projects
Cause
master.jsonormeta.jsonfiles are corrupted or contain invalid JSON- The
.mmtlfile is incomplete or was modified externally
Solution
- Create a new project and re-import your images
- If you have backups, restore from a working version
- The project files are ZIP archives - you can extract and inspect
master.jsonandmeta.jsonfor corruption
OCR Errors
OCR Initialization Error
Symptoms
Error dialog with “OCR Initialization Error” when trying to run OCR.
Cause
- The RapidOCR engine failed to initialize
- Missing or corrupted OCR model files
- Insufficient memory for OCR operations
Solution
- Ensure all dependencies are installed:
pip install rapidocr numpy pillow - Restart the application
- If the error persists, try reducing the image size or adjusting the resize threshold in settings
Manual OCR Error
Symptoms
Error when using the manual OCR selection feature: “Manual OCR Error” or “Selection area is invalid or outside image bounds.”
Cause
- Selected area is too small or outside the image boundaries
- The OCR reader is not properly initialized
Solution
- Ensure you have selected a valid area on the image (drag to create a selection)
- The selection must be within the image boundaries
- Try selecting a larger area with more visible text
File I/O Errors
Permission Denied
Symptoms
Error messages like:
- “Permission denied” when saving projects
- “Failed to save project” errors
- Cannot create or modify
.mmtlfiles
Cause
- The application doesn’t have write permissions to the target directory
- The file is open in another program
- Antivirus software is blocking file operations
Solution
- Run the application with appropriate permissions (not as administrator unless necessary)
- Ensure the target folder is not read-only
- Check if the file is open in another application
- Add an exception for EasyScanlate in your antivirus software
- Try saving to a different location (e.g., your Documents folder)
File Not Found
Symptoms
- “The project file could not be found” when opening from recent projects
- Missing image files referenced in a project
Cause
- The project file was moved or deleted
- Image files were moved after creating the project
Solution
- Use File > Open to browse for the moved project file
- If images are missing, re-import them into a new project
- Recent projects list shows “Last opened” times - verify the file still exists at that location
Context Fill Errors
Symptoms
Error dialog with “Context Fill Error” or failure to apply context fill.
Cause
- Failed to process image regions for context fill
- Memory issues with large images
- Invalid coordinates for context fill regions
Solution
- Try again with a smaller selection area
- Restart the application and retry
- Ensure the image is not corrupted
Import/Export Errors
Symptoms
- “Import Error” when importing translation files
- “Failed to apply translation” messages
- JSON parsing errors during import
Cause
- The imported file is not in the expected format
- JSON files are malformed
- Missing required fields in the import data
Solution
- Ensure import files follow the correct JSON format:
{ "filename.jpg": { "1": "Translated text for row 1", "2": "Translated text for row 2" } } - For master file imports, ensure the JSON is an array of OCR result objects
- Validate your JSON using an online JSON validator before importing
General Application Errors
Unhandled Exceptions
Symptoms
An error dialog appears with “Unhandled Exception” showing a traceback.
Cause
Unexpected errors in the application code, often due to:
- Edge cases in user input
- Invalid data states
- Threading issues
Solution
- Click “Copy Traceback” to copy the error details
- Click “Report Issue to GitHub” to create a bug report with pre-filled details
- Include steps to reproduce the error in your report
- Restart the application and try again
Application Startup Error
Symptoms
Critical error during application startup before the main window appears.
Cause
- Corrupted application settings
- Issues loading recent projects
- System configuration problems
Solution
- Check the console/terminal for detailed error messages
- Clear application settings (location varies by OS):
- Windows:
%APPDATA%/Liiesl/EasyScanlate - macOS:
~/Library/Preferences/Liiesl/EasyScanlate - Linux:
~/.config/Liiesl/EasyScanlate
- Windows:
- Reinstall the application
Getting Help
If you encounter an error not covered here:
- Copy the Traceback: Use the “Copy Traceback” button in error dialogs to get detailed error information
- Report on GitHub: Use the “Report Issue to GitHub” button to create a pre-filled issue
- Check Your Version: Include your app version (shown in error reports) when seeking help
- Provide Steps to Reproduce: Detail what you were doing when the error occurred
The error dialog automatically collects:
- Operating system and version
- Application version
- Python and PySide6 versions
- Full error traceback
- Git status (if running from source)