ImportError: cannot import name 'GraphServiceClient' from partially initialized module 'msgraph' (most likely due to a circular import) #918
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
I would like to test msgraph but when i try the following sample https://github.com/microsoftgraph/msgraph-sdk-python?tab=readme-ov-file#3-make-requests-against-the-service.
I get this error at execution: ImportError: cannot import name 'GraphServiceClient' from partially initialized module 'msgraph' (most likely due to a circular import)
Expected behavior
Correct execution of script with return of /me call.
How to reproduce
The script is (little modification from sample):
SDK Version
1.9.0
Latest version known to work for scenario above?
No response
Known Workarounds
For the moment, I make my own calls using MSAL and call APIs on graph.microsoft.com.
Debug output
No response
Configuration
OS: WSL2 with Ubuntu 24.04.1 LTS
Poetry: 1.8.2 (Python 3.12.3)
Packages:
Other information
Regards ;)
The text was updated successfully, but these errors were encountered: