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

百度识图报错 #7

Closed
rookiexiao123 opened this issue May 12, 2021 · 6 comments
Closed

百度识图报错 #7

rookiexiao123 opened this issue May 12, 2021 · 6 comments

Comments

@rookiexiao123
Copy link

hi,我在用百度识图的api,但是报错了,AttributeError: 'BaiDuResponse' object has no attribute 'same'.作者能帮忙看看么?

@kitUIN
Copy link
Owner

kitUIN commented May 15, 2021

image
AttributeError: 'BaiDuResponse' object has no attribute 'same'指api返回中没有该值
简单来说就是它搜不到结果

@kitUIN kitUIN pinned this issue May 15, 2021
@kitUIN kitUIN unpinned this issue May 15, 2021
@nymanyim
Copy link

nymanyim commented Aug 6, 2021

1.考虑使用hasattr(BaiDuResponse, 'same')来判断same属性是否存在
2.测试文件报错,接口失效了吗
image

@nymanyim
Copy link

nymanyim commented Aug 6, 2021

image

@kitUIN
Copy link
Owner

kitUIN commented Aug 9, 2021

测试文件默认是展示搜索到的图片来源,用过百度识图的应该知道有的时候他是找不到图片来源的,这时候res.raw列表为空,仅res.similar列表存有数据
image

@Wqn321
Copy link

Wqn321 commented Mar 8, 2022

image

运行百度识图的demo 的时候会有这样的报错,该怎么解决啊,作者能看下嘛

@kitUIN
Copy link
Owner

kitUIN commented Mar 8, 2022

image

运行百度识图的demo 的时候会有这样的报错,该怎么解决啊,作者能看下嘛

百度更改了搜索需要的参数,目前暂时无法使用。

@kitUIN kitUIN closed this as completed Mar 16, 2022
NekoAria added a commit that referenced this issue Mar 16, 2022
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