I encountered this error in Python. When import office365.sharepoint.client_context, there is no error. But when doing from office365.sharepoint.client_context import ClientCredential, the error showed:
Import error: cannot import name 'ClientCredential' from 'office365.sharepoint.client_context'
Anyone know how to solve this issue? thank you.
This is probably a little redundant and old question, but the ClientCredential should be imported from
runtime.auth.client_credentialinstead ofsharepoint.client_context.i.e., the below works fine: