sfyc23 / EverydayWechat

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

运行了之后报错 #24

Closed QiHangLuo closed 5 years ago

QiHangLuo commented 5 years ago

不论是在cmd还是在pycharm中,运行之后都会报错,求助 Traceback (most recent call last): File "run.py", line 21, in run() File "run.py", line 9, in run gfweather().run() File "D:\git\git\repository\pythonHomework\EverydayWechat\GFWeather.py", line 18, in init self.girlfriend_list, self.alarm_hour, self.alarm_minute, self.dictum_channel = self.get_init_data() File "D:\git\git\repository\pythonHomework\EverydayWechat\GFWeather.py", line 37, in get_init_data girlfriend.get('wechat_name').strip() AttributeError: 'NoneType' object has no attribute 'get'

yfxiongda commented 5 years ago

加1

yfxiongda commented 5 years ago

一样的报错,又解决吗?

yfxiongda commented 5 years ago

找出问题了,是config文件不对,最后几行不要注释,直接删掉就可以了

FuckReally commented 5 years ago

这是时间配置的有问题吗 Traceback (most recent call last): File "run.py", line 1, in from GFWeather import gfweather File "/home/ray/app/EverydayWechat-master/GFWeather.py", line 29 init_msg = f"每天定时发送时间:{alarm_timed}\n" ^ SyntaxError: invalid syntax

sfyc23 commented 5 years ago

这是时间配置的有问题吗 Traceback (most recent call last): File "run.py", line 1, in from GFWeather import gfweather File "/home/ray/app/EverydayWechat-master/GFWeather.py", line 29 init_msg = f"每天定时发送时间:{alarm_timed}\n" ^ SyntaxError: invalid syntax

你的这个问题,应该是 Python 版本的问题。这是 Python 3.6 之后 的语法 。

QiHangLuo commented 5 years ago

找出问题了,是config文件不对,最后几行不要注释,直接删掉就可以了

哇,感谢