intellikit
intellikit copied to clipboard
[Issue]: Bug: `TemporaryDirectory(delete=False)` breaks HIP compiler MCP tools on Python < 3.12
Problem Description
compile_hip_source_file and compile_hip_source_string in rocm_mcp/src/rocm_mcp/compile/hip_compiler_mcp.py use tempfile.TemporaryDirectory(delete=False). The delete= keyword argument to TemporaryDirectory was only added in Python 3.12. The package declares requires-python = ">=3.10" in rocm_mcp/pyproject.toml, so this breaks on any 3.10/3.11 install.
Output on Python 3.10:
TOOL RETURNED: Failed to create output file: TemporaryDirectory.__init__() got an unexpected keyword argument 'delete'
Operating System
Any
CPU
Any
GPU
MI300
ROCm Version
ROCm 7.2.2
Steps to Reproduce
Use the HIP compiler MCP on system with Python 3.10.
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response