sfyc23 / EverydayWechat

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

请问下,import失败 #47

Closed Nono17 closed 5 years ago

Nono17 commented 5 years ago

ImportError: cannot import name 'gfweather' from 'GFWeather' 这如何解决

sfyc23 commented 5 years ago

能粘全一点吗,是在哪个文件中的。

qq727127158 commented 5 years ago

依赖都下载了吗

Nono17 commented 5 years ago

能粘全一点吗,是在哪个文件中的。

Traceback (most recent call last): File "run.py", line 1, in from GFWeather import gfweather ImportError: cannot import name 'gfweather' from 'GFWeather' (D:\program\EverydayWechat\GFWeather.py)

Nono17 commented 5 years ago

依赖都下载了吗

都下了

sfyc23 commented 5 years ago

@Nono17 应该是有一次我更新的时候,忘了更新 run.py 文件。 你同步一下 git。 或者你把 run.py 文件:

from GFWeather import gfweather

修改成:

from GFWeather import GFWeather