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

项目拉下来,能跑,可是就是不会提示登陆,不知是啥原因, #54

Closed
chen366690712 opened this issue Jun 11, 2019 · 10 comments

Comments

Projects
None yet
4 participants
@chen366690712
Copy link

commented Jun 11, 2019

                                                             [100%]

=============================== warnings summary ===============================
run.py::test_run
/Users/xhchen/PycharmProjects/EverydayWechat/GFWeather.py:29: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================== 1 passed, 1 warnings in 0.73 seconds =====================
Process finished with exit code 0

@chen366690712

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

昵称错误 -
Login successfully as 诺
对过微信号,用账号也不行,怪了。不知在那错了。

@reflex-spec

This comment has been minimized.

Copy link

commented Jun 11, 2019

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

这个错误提示

@chen366690712

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

这个错误提示

这个我更改为:
#config = yaml.load(f) #这个是原来的
config = yaml.load(f, Loader=yaml.FullLoader)## 这个是我现在的。

@reflex-spec

This comment has been minimized.

Copy link

commented Jun 11, 2019

YAMLLoadWarning:不使用Loader = ...调用yaml.load(),因为默认的Loader是不安全的。有关详细信息,请阅读https://msg.pyyaml.org/load。
这个错误提示

这个我更改为:
#config = yaml.load(f)#这个是原来的
config = yaml.load(f,Loader = yaml.FullLoader)##这个是我现在的。

我也是这样的 也没有登录的提示

@gary101

This comment has been minimized.

Copy link

commented Jun 11, 2019

同样问题,程序运行时终端显示内容正常且显示发送成功,但是永远不提示登录。
都没登陆怎么会发送正常?程序假测?

@gary101

This comment has been minimized.

Copy link

commented Jun 11, 2019

抱歉,是要将run.py里的主程序改一下:
if __name__ == '__main__': test_run() # run()
改为
if __name__ == '__main__': # test_run() run()

@chen366690712

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

if name == 'main': # test_run() run()

抱歉,还是没法跑起来。这个我就是从run.py 中运行无法登陆,直接运行/EverydayWechat/GFWeather.py 又可以出来扫码。
搞不懂!

@chen366690712

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

image

@sfyc23

This comment has been minimized.

Copy link
Owner

commented Jun 11, 2019

@chen366690712
你同步一下最新代码。
这一行应该修改成:

 config = yaml.load(file, Loader=yaml.Loader)
@sfyc23

This comment has been minimized.

Copy link
Owner

commented Jun 11, 2019

@chen366690712 或者您加一下我的微信:sfyc_23。

@sfyc23 sfyc23 closed this Jun 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.