FengLiuFeseliud / pycqBot

go-cqhttp python 框架,可以用于快速塔建 bot
https://fengliufeseliud.github.io/pycqBot/
GNU Affero General Public License v3.0
129 stars 28 forks source link

好多报错 #20

Closed SydrrO closed 1 year ago

SydrrO commented 1 year ago

我在start()加入了自己的地址,bot.start('D:\mybot\go-cqhttp.exe'),是为了解绝不是内部命令的问题,然后运行报错: Exception in thread cqhttp_shell: Traceback (most recent call last): File "C:\Users\JackyZ\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "C:\Users\JackyZ\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "C:\Users\JackyZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\pycqBot\cqApi.py", line 810, in cqhttp_start self._set_config(go_cqhttp_path) File "C:\Users\JackyZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\pycqBot\cqApi.py", line 801, in _set_config with open(config_path, "w", encoding="utf8") as file: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'D:\mybot\go-cqhttp.exe\./config.yml'

FengLiuFeseliud commented 1 year ago

请将 go-cqhttp 放在 bot.start 文件的目录下

SydrrO commented 1 year ago

请将 go-cqhttp 放在 bot.start 文件的目录下

还是得改源文件的目录地址,'./'貌似没有用处,或者在加一个os获取目录