我在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'
我在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'