microsoftgraph / microsoftgraph/msgraph-sdk-python

Example 8 from examples doesn't work

Open
#391 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Example 8 from the SDK does not work for me (direct copy paste). I get a ModuleNotFoundError: No module named 'msgraph.generated.send_mail' error.

I installed on python 3.10.9 with pip install msgraph-sdk without errors.pi

msgraph-core                         1.0.0a4
msgraph-sdk                          1.0.0a16

Full disclosure: I tried running ; pip install --upgrade 'msgraph-sdk @ git+https://github.com/microsoftgraph/msgraph-sdk-python.git'
to ensure I have the latest version but this gives me a load of filename too long errors

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/general_samples.md and Example 8, then reproduce the copy-paste example using Python 3.10.9 and the listed msgraph-sdk versions. Inspect why msgraph.generated.send_mail cannot be imported; done means the documented example runs without ModuleNotFoundError after the documented installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.