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

请求帮助:win10 python3.9下运行pupilsearch命令报错。 #65

Open
alberthao opened this issue Apr 26, 2023 · 9 comments
Open

Comments

@alberthao
Copy link

您好,已安装好,可以进入console下,但是运行pupilsearch命令报错。
命令如下:
pupilsearch http://www.baidu.com

具体报错信息如下:
"
[19:13:42] PupilSearch KeyWord Start: PupilMain.py:63
'bool' object has no attribute 'get'
"
看样子是PupilMain.py报错。但是不知道如何解决。多谢了!

@alberthao alberthao changed the title 请帮助:win10 python3.9下运行pupilsearch命令报错。 请求帮助:win10 python3.9下运行pupilsearch命令报错。 Apr 26, 2023
@yinsel
Copy link

yinsel commented May 22, 2023

windows 11 下 python 3.10.11 , 使用pip3 install kunyu安装的,一样出现上述错误,任何URL都报此错误

@wikiZ
Copy link
Collaborator

wikiZ commented May 22, 2023

@yinsel
Copy link

yinsel commented May 22, 2023

@pbuff07
Copy link

pbuff07 commented Nov 8, 2023

可以给出详细的Python版本等信息便于分析问题。

@yinsel
Copy link

yinsel commented Nov 11, 2023

可以给出详细的Python版本等信息便于分析问题。

我的Python版本是3.10.11,安装方式是通过pip,采用的清华源

@pbuff07
Copy link

pbuff07 commented Nov 19, 2023

经过调试发现是一个Bug。该pupilsearch功能理想工作状态时使用search语法搜索出相关资产后并进行接口采集,如果过程中设置了代理proxy那么使用pupilsearch就没有问题,如果直接使用pupilsearch就会因为proxy的值为False导致出现上面提到的'bool' object has no attribute 'get'。
临时的解决办法可以将kunyu\lib\TrackUrl.py中proxies=self.proxy代码先删除。或者提前配置一个proxy,后面考虑给作者提一个PR优化下这种情况。

@wikiZ
Copy link
Collaborator

wikiZ commented Nov 20, 2023

这个问题是因为不同终端环境适配问题,可以通过在kunyu控制台中执行set proxy = true命令设置参数值解决。

@wikiZ
Copy link
Collaborator

wikiZ commented Nov 20, 2023

欢迎提交PR,参与维护Kunyu项目!

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

4 participants