msgraph-sdk-python-core icon indicating copy to clipboard operation
msgraph-sdk-python-core copied to clipboard

Missing 'deprecated' dependency

Open ronyis opened this issue 4 months ago • 1 comments

Describe the bug

Importing msgraph_core.requests.batch_request_content fails with ModuleNotFoundError: No module named 'deprecated'

Expected behavior

Import should work (without manually installing 'deprecated' package)

How to reproduce

  1. pip install msgraph-core
  2. import msgraph_core.requests.batch_request_content

SDK Version

1.3.8

Latest version known to work for scenario above?

No response

Known Workarounds

Installing deprecated package

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

ronyis avatar Sep 12 '25 13:09 ronyis

The actual root cause is here:

https://github.com/microsoftgraph/msgraph-sdk-python-core/blob/a33614f802864a8d9ea2b1f6686df4721c88bf93/src/msgraph_core/requests/batch_request_item.py#L10

this was originally introduced in #821 with https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/83863f7a6e8310480f9e55f3e399835ececd0439 and included in v1.2.1.

Nothing4You avatar Nov 28 '25 16:11 Nothing4You