xyou365 / AutoRclone

AutoRclone: rclone copy/move/sync (automatically) with thousands of service accounts
https://www.gfan.loan/?p=235
1.36k stars 520 forks source link

run gen_sa_accounts.py failed;PermissionError: [Errno 13] Permission denied: 'token.pickle' #57

Open wateroader opened 4 years ago

wateroader commented 4 years ago

$ python3 gen_sa_accounts.py --quick-setup 1 Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=95576504074-3o3c4a8au0m9fplnc88blv37psg35ghu.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fiam&state=PjP63ZjIxkrLDfbyRPtsyOmKh0HHGE&prompt=consent&access_type=offline Enter the authorization code: ***** Traceback (most recent call last): File "gen_sa_accounts.py", line 311, in resp = serviceaccountfactory( File "gen_sa_accounts.py", line 175, in serviceaccountfactory with open(token, 'wb') as t: PermissionError: [Errno 13] Permission denied: 'token.pickle' 2020-08-12 19-05-56 的屏幕截图

theg00s3 commented 3 years ago

what are the permissions of the token.pickle file?

shivangswain commented 3 years ago

This can be fixed by just moving the AutoRclone folder to another user accessible and modifiable directory like the Desktop. Had this issue and moving the folder resolved the issue.