Troubleshooting Guide¶
This guide provides solutions to common issues you might encounter while using or developing EVOSEAL.
Table of Contents¶
- Installation Issues
- Runtime Errors
- Performance Problems
- Model-Related Issues
- Common Error Messages
- Debugging Tips
- Getting Help
Installation Issues¶
1. Dependency Conflicts¶
Symptoms:
- pip install
fails with version conflicts
- Import errors after installation
Solutions: 1. Create a fresh virtual environment:
python -m venv venv
source .venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
- If using conda:
2. Missing System Dependencies¶
Symptoms: - Build failures during package installation - Missing header files
Solutions: - On Ubuntu/Debian:
- On macOS:
Runtime Errors¶
1. API Key Not Found¶
Error: API key not found
Solution: 1. Set the API key as an environment variable:
export OPENAI_API_KEY='your-api-key' # pragma: allowlist secret
export ANTHROPIC_API_KEY='your-api-key' # pragma: allowlist secret
- Or use a
.env
file in your project root:
2. CUDA Out of Memory¶
Error: CUDA out of memory
Solutions: 1. Reduce batch size in configuration 2. Use a smaller model 3. Enable gradient checkpointing 4. Use CPU instead of GPU:
Performance Problems¶
1. Slow Evolution¶
Possible Causes: - Large population size - Complex fitness functions - Network latency for API calls
Solutions: 1. Reduce population size 2. Optimize fitness functions 3. Enable caching:
2. High Memory Usage¶
Solutions: 1. Clear unused variables:
- Use generators instead of lists
- Process data in smaller batches
Model-Related Issues¶
1. Poor Quality Output¶
Solutions: 1. Adjust temperature and other generation parameters 2. Provide more specific prompts 3. Use few-shot examples 4. Try a different model
2. Rate Limiting¶
Error: Rate limit exceeded
Solutions: 1. Add delays between requests:
- Implement exponential backoff:
Common Error Messages¶
1. ModuleNotFoundError: No module named 'evoseal'
¶
Solution: 1. Install the package in development mode:
2. TypeError: 'X' object is not callable
¶
Solution: - Check for variable name conflicts - Verify function signatures - Ensure all required parameters are provided
Debugging Tips¶
1. Enable Debug Logging¶
2. Use pdb for Debugging¶
3. Check Intermediate Results¶
# Print intermediate results
def fitness_function(individual):
print(f"Evaluating: {individual}")
# ...
Getting Help¶
If you've tried the solutions above and are still experiencing issues:
- Check the Documentation: https://sha888.github.io/EVOSEAL/
- Search Issues: GitHub Issues
- Open a New Issue:
- Include error messages and stack traces
- Describe what you were trying to do
- Provide a minimal reproducible example
- Include your environment details:
Known Issues¶
- Memory Leaks
- Some operations may cause memory leaks in long-running processes
-
Workaround: Restart the process periodically
-
Inconsistent Behavior
- Due to the stochastic nature of evolution, results may vary between runs
- Set random seeds for reproducibility:
Created: 2025-06-17