Spaces:
Sleeping
Sleeping
Commit History
-
fix: resolve ModuleNotFoundError for tools.tools
Nolan Zandi +1: Claude Sonnet 4.6Root causes: - tools/__init__.py was missing; created empty file to make tools/ a proper Python package - chart_tools.py and stats_tools.py had top-level `from haystack.tools import Tool` imports, causing the entire module to fail to load if that import path is unavailable, which surfaced as ModuleNotFoundError: No module named 'tools.tools' - Fixed by removing all Haystack imports from chart_tools.py and stats_tools.py — they now export plain schema dicts only - tools.py does the `from haystack.tools import Tool` import lazily inside tools_call(), so any ImportError surfaces clearly at call time rather than at module load - Pinned haystack-ai>=2.7.0 in requirements.txt to ensure Tool is available Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>70b0712