Troubleshooting¶
Solutions to common issues.
Installation Issues¶
pip install fails¶
Problem: Installation fails with errors
Solutions:
- Upgrade pip:
pip install --upgrade pip - Use Python 3.11+:
python --version - Install in virtual environment:
ImportError: No module named 'hyperextract'¶
Problem: Can't import after installation
Solutions:
- Check Python version:
python --version(need 3.11+) - Verify installation:
pip list | grep hyper - Check virtual environment is activated
- Reinstall:
pip install --force-reinstall hyperextract
Configuration Issues¶
API Key Not Found¶
Error: No API key configured
Solutions:
-
CLI Configuration (recommended):
-
Environment Variable:
-
Verify Configuration:
Invalid API Key¶
Error: Authentication failed
Solutions:
- Verify key is correct
- Check for extra spaces
- Try regenerating key in OpenAI dashboard
- Check if key has available credits
Runtime Issues¶
Template Not Found¶
Error: Template 'xxx' not found
Solutions:
-
List available templates:
-
Check spelling:
-
Use Python to search:
Language Required¶
Error: --lang is required
Solution:
Note: Method templates don't require language.
Output Directory Exists¶
Error: Output directory already exists
Solutions:
-
Force overwrite:
-
Use different directory:
-
Remove existing:
Index and Search Issues¶
Index Not Found¶
Error: Search index not built
Solution:
Search Returns Empty¶
Problem: he search finds no results
Solutions:
-
Verify index exists:
-
Try different query:
-
Increase top_k:
-
Check data exists:
Chat Fails¶
Error: Chat failed: index not found
Solution:
Performance Issues¶
Extraction is Very Slow¶
Problem: Taking too long to process
Solutions:
-
Skip index during batch:
-
Reduce chunk size (Python):
-
Reduce workers (if hitting rate limits):
Out of Memory¶
Problem: Process killed or memory error
Solutions:
-
Process smaller chunks:
-
Save intermediate results:
-
Don't build index for intermediate steps:
Data Issues¶
No Entities Extracted¶
Problem: Empty result
Solutions:
-
Check input text:
-
Try different template:
-
Check language:
Corrupted Knowledge Abstract¶
Problem: Can't load or errors reading
Solutions:
-
Check file structure:
-
Validate JSON:
-
Re-extract:
Still Having Issues?¶
- Check logs — Look for detailed error messages
- Update to latest —
pip install --upgrade hyperextract - Check GitHub Issues — github.com/yifanfeng97/hyper-extract/issues
- Create new issue — Include error messages and reproduction steps
Debug Mode¶
Enable verbose output:
import logging
logging.basicConfig(level=logging.DEBUG)
from hyperextract import Template
ka = Template.create("general/graph", "en")
Or in CLI config: