Skip to content

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

Open
@RossK1

Description

@RossK1

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?

Activity

heavy-metal-blues-code

heavy-metal-blues-code commented on Jan 24, 2024

@heavy-metal-blues-code

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.

songdavid98

songdavid98 commented on Feb 9, 2024

@songdavid98

I'm facing the same issue here.

RossK1

RossK1 commented on Feb 9, 2024

@RossK1
Author

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 :(

heavy-metal-blues-code

heavy-metal-blues-code commented on Feb 16, 2024

@heavy-metal-blues-code

@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.

linickx

linickx commented on Feb 28, 2024

@linickx

+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

JoAllg

JoAllg commented on Apr 27, 2024

@JoAllg

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.

Ndiritu

Ndiritu commented on Jul 10, 2024

@Ndiritu
Contributor

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

D3SL

D3SL commented on Sep 4, 2024

@D3SL

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @linickx@songdavid98@Ndiritu@heavy-metal-blues-code@JoAllg

        Issue actions

          Breaking changes between pypi-published v0.2.2 and release v1.0.0 and samples failing · Issue #447 · microsoftgraph/msgraph-sdk-python-core