-
Notifications
You must be signed in to change notification settings - Fork 463
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
Script does not start #27
Comments
I got the same on MacOSX 10.10 using the default python install. Apparently it's due to the latest google API... I fixed it with |
Thanks for the answer, lasconic. |
Cannot reproduce. If you use the default secret file, does it work? in that case, compare the contents of client_secret.json with the one included in the package. Make sure you are using the "application" type when generating the JSON file. |
Thanks for the answer, tokland. Is there any additional info, that may help you in investigating this issue? |
Did you try to delete the file being used in the --credentials-file option? I am using these versions:
|
Yup. I've tried to rename it too. No success. The only significant difference is that I have no ipython, which equieres python > 2.7.0, and I have 2.6.6. Can it be an issue? |
I just tested with 2.6.6, it works for me. You'll have to debug the google module yourself (if you know some python) or wait for some other MacOs user to do it. |
I'm on CentOS 6.6 |
CentOS, ok. Well, yes, but 0.7.3 is API v1, not useful on the long run. Can you check the contents of $HOME/.youtube-upload-credentials.json? Once prettified (http://www.jspretty.com/), it should look something like this (note there is a key _module):
|
I do not have this file in $HOME |
Sorry, if are using |
I think I completely messed with this key. Thank you very much tokland, I will try to fix it. |
Then it's clear, this is a client secret file, not the credentials file... |
Trying to upload video, getting the following error:
[root@dwarkin youtube]# youtube-upload --title="aa" --credentials-file=/data/yt_secret/client_secret.json Full_House_anons_21_18.05_aysor.mov.mp4
Using client secrets: /usr/share/youtube_upload/client_secrets.json
Using credentials file: /data/yt_secret/client_secret.json
Traceback (most recent call last):
File "/usr/bin/youtube-upload", line 181, in
sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
File "/usr/lib/python2.6/site-packages/youtube_upload/lib.py", line 37, in catch_exceptions
fun(_args, *_kwargs)
File "/usr/bin/youtube-upload", line 178, in main
run_main(parser, options, args)
File "/usr/bin/youtube-upload", line 133, in run_main
get_code_callback=get_code_callback)
File "/usr/lib/python2.6/site-packages/youtube_upload/auth/init.py", line 39, in get_resource
credentials = _get_credentials(flow, storage, get_code_callback)
File "/usr/lib/python2.6/site-packages/youtube_upload/auth/init.py", line 28, in _get_credentials
existing_credentials = storage.get()
File "/usr/lib/python2.6/site-packages/oauth2client/client.py", line 374, in get
return self.locked_get()
File "/usr/lib/python2.6/site-packages/oauth2client/file.py", line 79, in locked_get
credentials = Credentials.new_from_json(content)
File "/usr/lib/python2.6/site-packages/oauth2client/client.py", line 281, in new_from_json
module = data['_module']
KeyError: '_module'
[root@dwarkin youtube]#
OS: Centos 6.6
Installed according the README.md
I think, that I've missed something during the installation.
Thank you.
The text was updated successfully, but these errors were encountered: