Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: 'onedrivesdk' has been deprecated. #182

Open
qo4on opened this issue Jul 3, 2020 · 6 comments
Open

ImportError: 'onedrivesdk' has been deprecated. #182

qo4on opened this issue Jul 3, 2020 · 6 comments

Comments

@qo4on
Copy link

qo4on commented Jul 3, 2020

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

@KTibow
Copy link

KTibow commented Jul 3, 2020

@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
Copy link
Author

qo4on commented Jul 3, 2020

Thanks! Is there any official python API for Onedrive?

@KTibow
Copy link

KTibow commented Jul 3, 2020

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
Copy link
Author

qo4on commented Jul 3, 2020

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

@KTibow
Copy link

KTibow commented Jul 3, 2020

Here's onedrivesdk_forks opinion:

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

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

  • requests-oauthlib for OAuth and requests + .json() for the direct REST calls
  • authomatic

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

@RasyidMF
Copy link

RasyidMF commented Jul 21, 2022

Same problem, but my solution is this command

pip install onedrivesdk<2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants