sfyc23 / EverydayWechat

微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
MIT License
9.99k stars 2.31k forks source link

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

Closed NuoLanC closed 5 years ago

NuoLanC commented 5 years ago
                                                             [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

NuoLanC commented 5 years ago

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

reflex-spec commented 5 years ago

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

这个错误提示

NuoLanC commented 5 years ago

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 commented 5 years ago

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

这个我更改为:

config = yaml.load(f)#这个是原来的

config = yaml.load(f,Loader = yaml.FullLoader)##这个是我现在的。

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

gary101 commented 5 years ago

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

gary101 commented 5 years ago

抱歉,是要将run.py里的主程序改一下: `if name == 'main': test_run()

run()`

改为 `if name == 'main':

test_run()

run()`
NuoLanC commented 5 years ago

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

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

NuoLanC commented 5 years ago

image

sfyc23 commented 5 years ago

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

 config = yaml.load(file, Loader=yaml.Loader)
sfyc23 commented 5 years ago

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