microsoftgraph / microsoftgraph/msgraph-sdk-python

Example in README has the wrong import for `GraphServiceClient`

未关闭 适合新手
#1,570 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

status:waiting-for-triage type:bug
主要语言
Python
星标
630
派生
96
平均合并
15 小时 20 分钟
30 天内合并 PR
3

描述

Describe the bug

In section 2.3, the README has
from msgraph import GraphServiceClient
whereas
from msgraph.graph_service_client import GraphServiceClient
seems to work

Expected behavior

Please clarify or fix README

How to reproduce

install msgraph sdk
In a python repl
import msgraph
dir(msgraph) # this will show no GraphServiceClient
dir(msgraph.graph_service_client) will show GraphServiceClient

SDK Version

1.61.0

Latest version known to work for scenario above?

No response

Known Workarounds

use from msgraph.graph_service_client import GraphServiceClient

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

打开 README 并检查第 2.3 节,将文档中的 import 与来自 msgraph.graph_service_client 的可正常工作的 import 进行比较。更新示例,使其正确暴露 GraphServiceClient,然后使用所述版本的 msgraph SDK 在 Python REPL 中验证文档中的命令。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
活跃
描述清晰度
描述清楚
新手友好度
90/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。