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

AttributeError("'NoneType' object has no attribute 'expired'")) during INITREMOTE #47

Closed
Lykos153 opened this issue Jun 8, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@Lykos153
Copy link
Owner

Lykos153 commented Jun 8, 2020


[2020-06-08 10:37:45.01617341] git-annex-remote-googledrive[1] <-- INITREMOTE
[2020-06-08 10:37:45.01630513] Running google_remote.py version 0+unknown
[2020-06-08 10:37:45.016378681] Using AnnexRemote version 1.4.3
[2020-06-08 10:37:45.016432056] Using Drivelib version 0.1.5
[2020-06-08 10:37:45.01645894] git-annex-remote-googledrive[1] --> GETCONFIG prefix
[2020-06-08 10:37:45.016487583] git-annex-remote-googledrive[1] <-- VALUE X
[2020-06-08 10:37:45.016552215] git-annex-remote-googledrive[1] --> GETCONFIG root_id
[2020-06-08 10:37:45.016597113] git-annex-remote-googledrive[1] <-- VALUE X
[2020-06-08 10:37:45.016669989] git-annex-remote-googledrive[1] --> GETCONFIG token
[2020-06-08 10:37:45.01671577] git-annex-remote-googledrive[1] <-- VALUE 
[2020-06-08 10:37:45.016846347] git-annex-remote-googledrive[1] --> GETGITDIR
[2020-06-08 10:37:45.016903939] git-annex-remote-googledrive[1] <-- VALUE ../.git
[2020-06-08 10:37:45.017160732] git-annex-remote-googledrive[1] --> GETCREDS credentials
[2020-06-08 10:37:45.017293908] git-annex-remote-googledrive[1] <-- CREDS X
[2020-06-08 10:37:45.017469439] git-annex-remote-googledrive[1] --> GETCONFIG exporttree
[2020-06-08 10:37:45.017533979] git-annex-remote-googledrive[1] <-- VALUE 
[2020-06-08 10:37:45.017654972] git-annex-remote-googledrive[1] --> GETUUID
[2020-06-08 10:37:45.017708996] git-annex-remote-googledrive[1] <-- VALUE X
[2020-06-08 10:37:45.017843271] git-annex-remote-googledrive[1] --> GETGITDIR
[2020-06-08 10:37:45.017891548] git-annex-remote-googledrive[1] <-- VALUE ../.git
[2020-06-08 10:37:45.018047724] Running google_remote.py version 0+unknown
[2020-06-08 10:37:45.018139221] Using AnnexRemote version 1.4.3
[2020-06-08 10:37:45.018215549] Using Drivelib version 0.1.5
[2020-06-08 10:37:45.018456913] Traceback (most recent call last):
[2020-06-08 10:37:45.018532368]   File "/usr/lib/python3.8/site-packages/git_annex_remote_googledrive/google_remote.py", line 143, in _get_root
[2020-06-08 10:37:45.018625778]     return RootClass.from_path(creds, prefix, uuid=self.uuid, local_appdir=self.local_appdir)
[2020-06-08 10:37:45.01876332]   File "/usr/lib/python3.8/site-packages/git_annex_remote_googledrive/keys.py", line 42, in from_path
[2020-06-08 10:37:45.018837506]     drive = GoogleDrive(creds_json)
[2020-06-08 10:37:45.018897809]   File "/usr/lib/python3.8/site-packages/drivelib/drive.py", line 532, in __init__
[2020-06-08 10:37:45.018957432]     if self.creds.expired and self.creds.refresh_token \
[2020-06-08 10:37:45.019016234] AttributeError: 'NoneType' object has no attribute 'expired'
[2020-06-08 10:37:45.019074275] 
[2020-06-08 10:37:45.019132423] During handling of the above exception, another exception occurred:
[2020-06-08 10:37:45.019189709] 
[2020-06-08 10:37:45.019246675] Traceback (most recent call last):
[2020-06-08 10:37:45.019306241]   File "/usr/lib/python3.8/site-packages/git_annex_remote_googledrive/google_remote.py", line 68, in wrapper
[2020-06-08 10:37:45.019365258]     return f(self, *args, **kwargs)
[2020-06-08 10:37:45.019425112]   File "/usr/lib/python3.8/site-packages/git_annex_remote_googledrive/google_remote.py", line 246, in initremote
[2020-06-08 10:37:45.019485699]     self.root = self._get_root(RemoteRoot, credentials, prefix, root_id)
[2020-06-08 10:37:45.019547303]   File "/usr/lib/python3.8/site-packages/git_annex_remote_googledrive/google_remote.py", line 156, in _get_root
[2020-06-08 10:37:45.019609584]     raise RemoteError("Failed to connect with Google. Please check your internet connection.", e)
[2020-06-08 10:37:45.019693424] annexremote.annexremote.RemoteError: ('Failed to connect with Google. Please check your internet connection.', AttributeError("'NoneType' object has no attribute 'expired'"))
[2020-06-08 10:37:45.019734271] git-annex-remote-googledrive[1] --> INITREMOTE-FAILURE ('Failed to connect with Google. Please check your internet connection.', AttributeError("'NoneType' object has no attribute 'expired'"))

@Lykos153 Lykos153 added the bug Something isn't working label Jun 8, 2020
Lykos153 added a commit that referenced this issue Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant