OneDrive / onedrive-sdk-python

OneDrive SDK for Python! https://dev.onedrive.com
MIT License
1.08k stars 189 forks source link

ImportError: 'onedrivesdk' has been deprecated. #182

Closed qo4on closed 3 weeks ago

qo4on commented 4 years ago

What is the right way to upload, download files and create folders in Onedrive? Is there a Python library availiable today?

KTibow commented 4 years ago

@qo4on try doing a pip freeze, then pip uninstall anything that sounds related to OneDrive.
Then install the more maintained fork with pip install onedrivesdk_fork.
One you're done, instead of import onedrivesdk use import onedrivesdk_fork as onedrivesdk.

qo4on commented 4 years ago

Thanks! Is there any official python API for Onedrive?

KTibow commented 4 years ago

This is the official API, it's just the original maintainers stopped maintaining it. onedrivesdk_fork is unofficial, but it's currently maintained, and it's your best bet as it was based off of the original one. Of course you can also look at the official API docs and just use requests to manually talk to the API.

qo4on commented 4 years ago

Do you know where to find example of Onedrive authentication using requests?

KTibow commented 4 years ago

Here's onedrivesdk_forks opinion:

==================

If you are looking for an alternative api, consider using one of:

(Personally, I believe that the onedrivesdk needs a replacement with less marshalling and more documentation.)

RasyidMF commented 2 years ago

Same problem, but my solution is this command

pip install onedrivesdk<2
baywet commented 3 weeks ago

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information