Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发生异常: TypeError #129

Open
NonFelm opened this issue Mar 21, 2024 · 1 comment
Open

发生异常: TypeError #129

NonFelm opened this issue Mar 21, 2024 · 1 comment

Comments

@NonFelm
Copy link

NonFelm commented Mar 21, 2024

屏幕截图 2024-03-21 185102
如图
D:\CodeGithub\CxKitty>C:/Users/SouthLine/AppData/Local/Programs/Python/Python310/python.exe d:/CodeGithub/CxKitty/CxKitty/main.py
d:\CodeGithub\CxKitty\CxKitty*config.py:11: RuntimeWarning: Config file not found
warnings.warn("Config file not found", RuntimeWarning)
*
Traceback (most recent call last):
File "d:\CodeGithub\CxKitty\CxKitty\main.py", line 15, in
import config
File "d:\CodeGithub\CxKitty\CxKitty\config.py", line 16, in
EXPORT_PATH = Path(conf.get("export_path"))
File "C:\Users\SouthLine\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 958, in new
self = cls._from_parts(args)
File "C:\Users\SouthLine\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 592, in _from_parts
drv, root, parts = self._parse_args(args)
File "C:\Users\SouthLine\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 576, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@SocialSisterYi
Copy link
Owner

请检查 config.yml 是否存在,以及export_path字段是否有效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants