svgg

Troubleshooting Guide

Common Issues

Missing Dependencies

If you encounter errors about missing packages, install them using:

pip install -r requirements.txt

File Not Found

Ensure all input files exist and paths are correct. Use absolute paths if needed.

Permission Issues

Make sure you have read/write permissions for the input and output directories.

Error Messages

ModuleNotFoundError: No module named 'typing_extensions'

pip install --upgrade typing-extensions

FileNotFoundError: [Errno 2] No such file or directory

Check that the input files exist and paths are correct.

PermissionError: [Errno 13] Permission denied

Ensure you have the necessary permissions to read/write the specified files and directories.

ValueError: Invalid SVG file

The specified SVG file might be corrupted or not a valid SVG. Verify the file contents.

Debugging

Enable Verbose Output

generator = svgg.SVGGenerator(verbose=True)

Check File Permissions

ls -l /path/to/your/file

Verify File Integrity

file /path/to/your/file.svg

Getting Help

If you encounter issues not covered here, please:

  1. Check the GitHub Issues for similar problems
  2. Create a new issue with:
    • Steps to reproduce
    • Error messages
    • Environment details (OS, Python version, etc.)