Skip to content

[Bug] 不要固定依赖版本以及插件内部处理异常 #74

@zouyonghe

Description

@zouyonghe

Plugin Version

latest

AstrBot Version

4.19.4

Database Type

SQLite (default)

Operating System

Linux

Bug Description

插件目前写死了依赖版本,例如aiohttp,很容易跟astrbot本体碰撞冲突,甚至导致本体依赖版本降级,建议去掉固定版本,以使uv等自动确定版本;另一方面,如果插件依赖安装失败,因为内部直接吞掉异常导致AstrBot无法正确处理插件状态,即使依赖缺失仍然被显示为正确加载

Image

Steps to Reproduce

安装插件;重启AstrBot

Expected Behavior

安装插件依赖版本冲突直接失败(在AstrBot正在处理此问题)
重启AstrBot加载插件时,不应该即使报错也正常加载,如果接受容忍报错,应该更具体的针对缺失的组件处理,而不是在插件内部吞掉所有报错

Error Logs

Relevant Configuration

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions