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

请问注入后,安装完环境依赖,在没有修改config的情况下运行出现这个问题该怎么办? #16

Open
momingxiaoyang opened this issue Mar 27, 2024 · 1 comment

Comments

@momingxiaoyang
Copy link

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\configparser.py", line 789, in get
value = d[option]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\collections_init_.py", line 898, in getitem
return self.missing(key) # support subclasses that define missing
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\collections_init_.py", line 890, in missing
raise KeyError(key)
KeyError: 'y4tacker_url'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\codeProgram\wechatBot\WechatBot\main.py", line 5, in
from servercli.server import *
File "D:\codeProgram\wechatBot\WechatBot\servercli\server.py", line 6, in
from httpcli.everyday_news import *
File "D:\codeProgram\wechatBot\WechatBot\httpcli\everyday_news.py", line 22, in
y4tacker_url = config.get("apiService", "y4tacker_url")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'y4tacker_url' in section: 'apiService'

好像是配置文件中缺少 'apiService' 部分?

@expzhizhuo
Copy link
Owner

删除相关的调用代码即可

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