youtube-upload
youtube-upload copied to clipboard
KeyError as a standart user
Trying to upload video as a standart user, getting the following error:
[ezgi.aydogan@urartu ~]$ youtube-upload --title="test" test.avi --client-secrets=.youtube-upload-credentials.json
Using client secrets: .youtube-upload-credentials.json
Using credentials file: /home/ezgi.aydogan/.youtube-upload-credentials.json
Traceback (most recent call last):
File "/usr/bin/youtube-upload", line 10, in
But when I try to upload the same video as root, the uploading has been completed successfully.
OS: CentOS 7.3 Progressbar2 version: 3.30.2 google-api-python-client version: 1.6.2 python 2.7
Thank you.
Probably just a permission error with the json file. What permissions does it have?
I' d tried to give .py files' permissions to spesific standarit user instead of root for accessşing them. But; it didn't matter. Error is the same.
I think @userlip meant .youtube-upload-credentials.json
permissions.
Or even /home/ezgi.aydogan/.youtube-upload-credentials.json
If desperate just chmod 777 the whole folder - recursively (yea yea security issues & stuff but who cares)