microsoftgraph / msgraph-beta-sdk-python

MIT License
27 stars 7 forks source link

Exception when fetching user #208

Closed cvs79 closed 4 months ago

cvs79 commented 1 year ago

When using the sample from https://github.com/microsoftgraph/msgraph-beta-sdk-python?tab=readme-ov-file#3-make-requests-against-the-service to fetch a user you get the following error (after applying the workaround from #194)

Exception has occurred: ImportError
cannot import name 'alert_record' from 'msgraph.generated.models.device_management' (/home/c/.local/lib/python3.10/site-packages/msgraph/generated/models/device_management.py)
  File "/home/c/pimpy/pimgraph.py", line 37, in  
    user = await client.users.by_user_id('ch@back.com').get()
  File "/home/c/pimpy/pimgraph.py", line 41, in <module>
    asyncio.run(get_user())
ImportError: cannot import name 'alert_record' from 'msgraph.generated.models.device_management' (/home/c/.local/lib/python3.10/site-packages/msgraph/generated/models/device_management.py)
petrhollayms commented 4 months ago

Hi @cvs79 ,

Does the issue still exist? If so, could you please share more details about the SDK version and the scenario? Sample code?

microsoft-github-policy-service[bot] commented 4 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.