Skip to content

Python 3.9 环境下运行时报错 PreToolUse:Agent hook error #113

@lzb16

Description

@lzb16

Bug Description

Python 3.9 环境下运行时报错 PreToolUse:Agent hook error,通过AI定位是hook脚本使用了Python 3.10+ 的语法

建议:1. 适配 Python3.10 以下语法,2. 安装trellis时检查Python版本并提示,3. 文档中注明支持的 Python 版本

Image

Steps to Reproduce

本地安装python3.9,项目安装trellis,运行claudecode,对话

Trellis Version

0.3.10

Node.js Version

v22.22.0

Operating System

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:cliCLI package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions