rafasashi / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

youtube funky? #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I /think/ this is a separate bug, but I noticed the youtube error right
after.  Hitting control-d caused this traceback:

> Traceback (most recent call last):
  File "./google-cl.py", line 287, in <module>
    main()
  File "./google-cl.py", line 275, in main
    run_interactive(parser)
  File "./google-cl.py", line 134, in run_interactive
    command_string = raw_input('> ')
EOFError

(As you're probably aware, ^d is EOF and is generally a way to get out of
interactive sessions).

Here's the youtube-specific part:

$ ./google-cl.py youtube list
No token for youtube
Traceback (most recent call last):
  File "./google-cl.py", line 287, in <module>
    main()
  File "./google-cl.py", line 281, in main
    run_once(options, args)
  File "./google-cl.py", line 200, in run_once
    util.try_login(client, options.user, options.password)
  File "src/googlecl/trunk/src/util.py", line 601, in try_login
    client.Login(email, password)
  File "src/googlecl/trunk/src/youtube/service.py", line 114, in Login
    with open(os.path.expanduser('~/google/devkey'), 'r') as devkey_file:
IOError: [Errno 2] No such file or directory: '[MY HOME
DIRECTORY]/google/devkey'

Original issue reported on code.google.com by credenti...@gmail.com on 24 May 2010 at 7:54

GoogleCodeExporter commented 9 years ago
Forgot to catch the EOF - I'll add that in.

The YouTube problem is the need for a "developer's key" combined with this 
being an 
open source project. Related thread [http://groups.google.com/group/youtube-api-
gdata/browse_thread/thread/60df125be706fc5a/b0482d99d8c6ec31?lnk=gst here]

My temporary solution to this was to read the key from a file in my home 
directory, 
but we need a better long-term solution before announcing the project.

Original comment by tom.h.mi...@gmail.com on 24 May 2010 at 11:11

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 31 May 2010 at 3:58