crewAI
crewAI copied to clipboard
fix: improve crew discovery and error handling for CLI
- Add multiple import strategies for crew module loading
- Improve project name normalization (handle hyphens and underscores)
- Add fallback crew class detection when expected class name not found
- Provide detailed debugging information in error messages
- Fix module import path resolution issues
- Add comprehensive error handling with better user feedback
- Include tests for project name normalization and error scenarios
Resolves issue #3528 - Persistent 'Crew class not found' error Addresses problems with:
- Project names containing hyphens or underscores
- Different project directory structures
- Module import path conflicts
- Insufficient error debugging information
This PR is stale because it has been open for 45 days with no activity.