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

求解No module named 'test_get_follow_list' #6

Closed
SouthernDreamS6 opened this issue Apr 15, 2022 · 3 comments
Closed

求解No module named 'test_get_follow_list' #6

SouthernDreamS6 opened this issue Apr 15, 2022 · 3 comments

Comments

@SouthernDreamS6
Copy link

求解
url参数全齐
环境为 docker下青龙2.11.3
python版本3.9

test_index.py返回
Traceback (most recent call last):
File "/ql/scripts/Hellager_weibo_supertopic_sign/test_index.py", line 8, in
from test_get_follow_list import *
ModuleNotFoundError: No module named 'test_get_follow_list'

index.py返回
2022-04-15 17:48:48 INFO Start getting super topic follow list
2022-04-15 17:48:48 INFO Start forming requests params
2022-04-15 17:48:57 ERROR 校验参数不存在
2022-04-15 17:48:57 INFO Start forming super topic sign list
2022-04-15 17:48:57 INFO Start forming requests params
2022-04-15 17:48:57 INFO Start doing sign tasks
2022-04-15 17:48:57 INFO Starting notifying

@Hellager
Copy link
Owner

第一个问题 本地环境下 python3.9 未出现报错,可尝试将 test_get_follow_list 文件中函数直接复制到 test_index.py 中并删去 from test_get_follow_list import * 再进行尝试
第二个问题 校验参数不存在 可能是原始 url 缺参数,在 test_get_follow_list.py line 52 添加 print(value[0: value.find('=')]),再对比 line 30 的 row_params 比较看是哪个参数缺失,尝试重新获取带该参数的 url 即可

@SouthernDreamS6
Copy link
Author

很奇怪 啥都没管他 两天后自动跑起来了
不知道为啥 ck都没动过

@Hellager
Copy link
Owner

啊这 能跑就行能跑就行 能跑的话ck能管很久的 两三个月吧至少

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