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

Breaking changes between pypi-published v0.2.2 and release v1.0.0 and samples failing

Open RossK1 opened this issue 1 year ago • 8 comments

The version published on pypi is v0.2.2 from July 2021. That version works with the samples in this repo. The most recent release on github is v1.0.0, presumably coinciding with the v1.0.0 release of msgraph-sdk-python. This version does not work with the samples in this repo. There are numerous breaking points: the import "msgraph.core" is no longer valid, there no longer appears to be a GraphClient, etc.

Could these samples please be updated or removed?

It looks like this library is no longer intended to be used standalone, with the main documentation now directing users to the main sdk repo and the instructions reflecting it's usage. Is this correct?

RossK1 avatar Jan 02 '24 15:01 RossK1

I'm facing same issue, I have raised a question on QA section about it. I have tried to look for information on changelog.md but as with all Microsoft documenting I ended up in circles.

heavy-metal-blues-code avatar Jan 24 '24 08:01 heavy-metal-blues-code

I'm facing the same issue here.

songdavid98 avatar Feb 09 '24 18:02 songdavid98

This is particularly problematic because v1.0.0 was pushed to pypi on 22 Jan 2024 so unless your requirements.txt or other code specify msgraph-core==0.2.2, things break without any deprecation or other warning :(

RossK1 avatar Feb 09 '24 19:02 RossK1

@RossK1, I've addressed the issue by implementing your suggestion to hard-code msgraph-core==0.2.2, which I did by configuring a setup.py file for the Python project I'm currently engaged in. Besides, I managed to carve out some time to design a CI pipeline and arrange an Azure Artifacts feed for hosting the package, which is now being generated successfully and used in production.

heavy-metal-blues-code avatar Feb 16 '24 11:02 heavy-metal-blues-code

+1 ... no working samples is a major headache.

samples/graph_client_samples.py was hugely flexible, it's not clear (to me at least) how to implement the same in v1.0.0

linickx avatar Feb 28 '24 14:02 linickx

I just found the upgrading section in the msgraph-sdk documentation. Hope it helps.

Just the "Fluent Request Builder Pattern" might require a major rewrite as requests are not done using URLs anymore.

JoAllg avatar Apr 27 '24 10:04 JoAllg

Apologies for the gaps in the docs to use the graph-core v1.0 package on its own. This will be considered for future sprints.

You may consider transitioning to using msgraph-sdk via the upgrade guide & see similar code samples here

Ndiritu avatar Jul 10 '24 12:07 Ndiritu

This will be considered for future sprints.

learn.microsoft.com, devblogs.microsoft.com, pypi, this github, and the msgraph-sdk github all say wildly different things. As near as I can tell there is no authoritative up to date and accurate documentation anywhere.

Also for anyone else who eventually finds there way here: As of 2024-09-04 the msgraph-sdk package doesn't exist in conda-forge (yet).

D3SL avatar Sep 04 '24 09:09 D3SL