-
Notifications
You must be signed in to change notification settings - Fork 10
"No Drive associated with account" #32
Comments
Thank you for the feedback. I think the problem is that we are looking to another directory to find the associated drives because we renamed the package name. This should be an easy fix, and I'll create a commit in a few hours (after I finish my work). |
FYI: I'm debugging here and thinking what is the best way to fix this issue. The problem is because the name change, there are a couple of things that have broken:
Here are some options:
|
Ok, so probably what I said before is not the root cause. Debugging the application looks like when querying |
There is no workaround for this atm? |
@ndit-dev not that I'm aware of. That's the problem of relying on Microsoft, they can change their API without telling anyone... BTW if you find a workaround, please let me know |
I don't fully understand the solution here. But https://github.com/abraunegg/onedrive seems to be on track. In the end I got it working (with abraunegg's OneDrive) with the drive ID that looks like |
@derrix060 I'm willing to try out the changes. But I don't know where the changes are. #26 doesn't seem to be a onedriveClient. |
@bastianbowe2000 Sorry about that, I was not so clear. Checkout this branch https://github.com/derrix060/onedriveClient/tree/%2326-use-ms-graph-api git clone https://github.com/derrix060/onedriveClient.git
cd onedriveClient
git checkout "#26-use-ms-graph-api"
pip3 install .
pip3 installl graph-sdk-python/ |
I'm getting
|
Fixing the bug in od_auth.py (removing the leading
work for my onedrive business account. I can add the drive. Running the client doesn't really work though.
|
Further more adding my non business account results in
|
Hello @baztian thanks for the feedback. Can you confirm your python version and the hash for the commits: $ python --version
$ git rev-parse --verify HEAD
# Output should be 609cd52
$ cd graph-sdk-python
$ git rev-parse --verify HEAD
# Output should be 2d0bf8b
# Also the versions
$ pip freeze | grep onedrive |
I've just seen that the commands to install the graph-sdk-python were wrong. Try this instead: git clone https://github.com/derrix060/onedriveClient.git
cd onedriveClient
git checkout "#26-use-ms-graph-api"
pip3 install .
# new part
git clone --recurse-submodules -j8 https://github.com/derrix060/graph-sdk-python.git
cd graph-sdk-python
git checkout 2d0bf8b82925e8af2da8b39d5418265b4b42892e
pip3 installl . |
Thanks @derrix060, still same error after following your instructions exactly. Python 3.5.2 |
@derrix060 I followed your instructions above, and fixed the syntax error in od_auth.py. Various commands then gave the error:
For example:
This was also seen on |
Thanks for your feedback @rodom.I think your problem can be in a different issue, since it's affecting not only this branch, as far as I'm aware. BTW, after adding a ignorefile_path key, did you have any problem? |
@derrix060 it seems to be working OK after that! |
Is the issue solved? I have connected my business account and I cannot see any disk. From logs: onedrive-client start --debug If I run GET request https://xxxxx-my.sharepoint.com/_api/v2.0/drives in my browser, I get 3 drives. Maybe the output of the API request has changed? |
@tomas-lipensky As I said before, there is an error with the microsoft API. Please test the instructions from here and if it fixes, I can make the changes repo-wide. |
I am not 100% sure that I got it right (newbie here), but following pointed instruction I ended in situation where I get following message :
|
Hello @Rasori, welcome. The error that you sent is not related with this issue. There is a problem with your keyring. Please make sure you have configured correctly your environment, following these instructions. I can see that you have keyring.alt version 3.0, and the latest version is 3.1.1. |
@derrix060, I just tried out your #26 branch, using the patched SDK as per your instructions, and it's working for me thus far. This is the first time I have ever been able to sync w my organisation's OneDrive on Linux - thank you so much for this! |
For me didn't work the #26, not showing any drives for onedrive business... |
Having some trouble with syncing with OneDrive For Business. It was working fine, but stopped a few days ago, not sure exactly when (was OK on 26 Oct, not on 19 Nov). This is the error I now see in the log:
I've upgraded to the latest onedrive-client to no avail.
I've set up and
onedrive-client-pref account list
correctly shows my account. However,onedrive-client-pref drive list
gives me no drives:I still have OneDrive on my account, and my Windows machine and Android app are able to connect to to it fine.
Any assistance appreciated!
The text was updated successfully, but these errors were encountered: