binarytemple / googlecl

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

"picasa get" from another user #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. google picasa get --user 'my_friend' --title 'his_album' ./album

What is the expected output?

My friends album getting downloaded

What do you see instead?

Please log out of MY_ACCOUNT and grant access with my_friend

Original issue reported on code.google.com by michiel....@gmail.com on 13 Jul 2010 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 15 Jul 2010 at 2:51

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r349.

Original comment by tom.h.mi...@gmail.com on 15 Jul 2010 at 3:54

GoogleCodeExporter commented 9 years ago
use the new --owner option to get the album:

google picasa get --owner 'my_friend' --title 'his_album' ./album

Let me know if it doesn't work! Thanks.

Original comment by tom.h.mi...@gmail.com on 15 Jul 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Hmm,

% google picasa get --owner 'my_friend' --title 'his_album' ./album
Traceback (most recent call last):
  File "/usr/local/bin/google", line 570, in <module>
    main()
  File "/usr/local/bin/google", line 564, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 412, in run_once
    task.run(client, options, args)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/picasa/service.py", line 355, in _run_get
    title=options.title)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/picasa/service.py", line 128, in download_album
    entries = self.GetAlbum(user=user, title=title)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/picasa/service.py", line 176, in get_album
    return self.GetEntries(uri, title)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/service.py", line 172, in get_entries
    feed = self.GetFeed(uri)
  File "/usr/lib/pymodules/python2.6/gdata/photos/service.py", line 179, in GetFeed
    raise GooglePhotosException(e.args[0])
gdata.photos.service.GooglePhotosException: (400, 'Bad Request', '')

But it could be my install method? I did a 'sudo pip install 
http://googlecl.googlecode.com/svn/trunk'.

Original comment by michiel....@gmail.com on 15 Jul 2010 at 4:19

GoogleCodeExporter commented 9 years ago
That's strange. I'm unfamiliar with pip, so I don't know what that install 
command will do. It may have overwritten the google script (allowing the 
--owner option) and not the googlecl library (causing the option to be ignored 
and resulting in a bad request). Try adding the --debug flag and post the 
results back here. Or download via svn and use

$ mkdir test_directory
$ python setup.py install --home test_directory --record files.txt
$ cd test_directory/lib/python
$ ../../bin/google <command>

Note: if you're getting some photos, --debug will spit back a lot of data. Just 
be wary.

Original comment by tom.h.mi...@gmail.com on 16 Jul 2010 at 12:06

GoogleCodeExporter commented 9 years ago
Found it! It was a user / documentation error :)

I tried --owner 'my friend' since my friend's screen name has a space in it. 
Replacing the space by a dot or using his id makes it work!

Thanks for the quick fix!

Btw: you should really read up about pip, it's heralded by many in the Python 
community as the next-gen 'easy_install' (and it did my update splendidly after 
all :) ).

Original comment by michiel....@gmail.com on 16 Jul 2010 at 7:58