'Client' object has no attribute 'business'
还没有人认领这个 Issue。
评估
调研方向
Begin with the yelp.client.Client entry point and the copied get_by_id example in the report. Check the installed library's Client interface against the site's example, then confirm the documented call works or identify the required correction. Done means the example and package behavior are reconciled and the reported AttributeError is explained.
由索引模型根据 Issue 内容生成。
描述
Hello,
I try the following python code copied from this site:
from yelp.client import Client
MY_API_KEY = 'xxxx'
client = Client(MY_API_KEY)
business_response = client.business.get_by_id('yelp-san-francisco')
Then, I have the error "'Client' object has no attribute 'business'".
Any idea why the given code doesn't work?
Thanks for your help.
- 主要语言
- Python
- 星标
- 183
- 派生
- 108
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Yelp/yelp-python 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
Yelp/yelp-python#76 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
Yelp/yelp-python#75 ·
-
难度 3/5 1-2 天 新手友好度 45/100
Yelp/yelp-python#74 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Yelp/yelp-python#73 ·
-
难度 3/5 1-2 天 新手友好度 25/100
Yelp/yelp-python#72 ·
相似的 Issue
-
Import errors are swallowed: PerthImplicitWatermarker silently becomes None可能已有人在做 @JonRC 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
resemble-ai/Perth#23 ·
-
correction metadata
难度 2/5 1 小时以内 新手友好度 65/100
acl-org/acl-anthology#10753 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
earthtojake/text-to-cad#758 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 70/100
DataTalksClub/faq#545 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复