Skip to content

[Bug] astrbot init 选不在当前路径安装,报错并残留data文件夹 #8853

@Initial01LingXu

Description

@Initial01LingXu

What happened / 发生了什么

astrbot init安装,在提示是否安装在当前路径时,选择否,会报错初始化失败,并且会在当前目录下残留data目录

Reproduce / 如何复现?

astrbot init

     ___           _______.___________..______      .______     ______   .___________.
    /   \         /       |           ||   _  \     |   _  \   /  __  \  |           |
   /  ^  \       |   (----`---|  |----`|  |_)  |    |  |_)  | |  |  |  | `---|  |----`
  /  /_\  \       \   \       |  |     |      /     |   _  <  |  |  |  |     |  |
 /  _____  \  .----)   |      |  |     |  |\  \----.|  |_)  | |  `--'  |     |  |
/__/     \__\ |_______/       |__|     | _| `._____||______/   \______/      |__|

Welcome to AstrBot CLI!
AstrBot CLI version: 4.25.3
Initializing AstrBot...
Install AstrBot to this directory? /home/initial01/Code/tmp [Y/n]: n
Error: Initialization failed:

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

安装采用uv包安装,版本为4.25.3
uv tool install astrbot --python 3.12
astrbot init # Only execute this command for the first time to initialize the environment

OS

Linux

Logs / 报错日志

(base) initial01@wsl:~/Code/tmp$ ls
(base) initial01@wsl:~/Code/tmp$ astrbot init

     ___           _______.___________..______      .______     ______   .___________.
    /   \         /       |           ||   _  \     |   _  \   /  __  \  |           |
   /  ^  \       |   (----`---|  |----`|  |_)  |    |  |_)  | |  |  |  | `---|  |----`
  /  /_\  \       \   \       |  |     |      /     |   _  <  |  |  |  |     |  |
 /  _____  \  .----)   |      |  |     |  |\  \----.|  |_)  | |  `--'  |     |  |
/__/     \__\ |_______/       |__|     | _| `._____||______/   \______/      |__|

Welcome to AstrBot CLI!
AstrBot CLI version: 4.25.3
Initializing AstrBot...
Install AstrBot to this directory? /home/initial01/Code/tmp [Y/n]: n
Error: Initialization failed:
(base) initial01@wsl:~/Code/tmp$ ls
data
(base) initial01@wsl:~/Code/tmp$

Are you willing to submit a PR? / 你愿意提交 PR 吗?

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions