TomMiller / googlecl

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

UnicodeEncodeError when downloading Picasa Album #544

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a Picasa Album with a special character: ex.: Aniversário - BDS
2.Using googlecl try to download the album:

$ google picasa get --title "Anivers\xe1rio - BDS" .

What is the expected output? 

>>>  A list of downloaded files.

What do you see instead?

Traceback (most recent call last):
  File "/usr/bin/google", line 849, in <module>
    main()
  File "/usr/bin/google", line 835, in main
    run_once(options, args)
  File "/usr/bin/google", line 627, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.7/googlecl/picasa/__init__.py", line 271, in _run_get
    photo_title=options.photo)
  File "/usr/lib/pymodules/python2.7/googlecl/picasa/service.py", line 211, in download_album
    if os.path.exists(album_path):
  File "/usr/lib/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 9: 
ordinal not in range(128)

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

==> Linux RossiStorage0 3.2.26 #1 SMP Thu Aug 22 15:05:37 PDT 2013 armv7l 
GNU/Linux
==> google 0.9.13
==> ii  python-gdata                    2.0.18+dfsg-1             all          
Google Data Python client library

Thanks!!!

Original issue reported on code.google.com by cassio.r...@gmail.com on 1 Nov 2013 at 5:03