anasAsh / googlecl

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

Crash: 'ascii' codec can't decode byte #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just issue: google calendar list

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/usr/bin/google", line 676, in <module>
    main()
  File "/usr/bin/google", line 662, in main
    run_once(options, args)
  File "/usr/bin/google", line 504, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/calendar/service.py", line 490, in _run_list
    _list(client, options, args, date)
  File "/usr/lib/pymodules/python2.6/googlecl/calendar/service.py", line 470, in _list
    delimiter=options.delimiter)
  File "/usr/lib/pymodules/python2.6/googlecl/base.py", line 603, in compile_entry_string
    return_string += val.replace(delimiter, ' ') + delimiter
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: 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)?
Ubuntu lucid (10.04)
python-gdata: 1.2.4-0ubuntu2

Original issue reported on code.google.com by esm...@googlemail.com on 21 Sep 2010 at 12:49

GoogleCodeExporter commented 9 years ago
The same happens for:
  google contacts list

Received Output:
...
Bauer,N/A
Traceback (most recent call last):
  File "/usr/bin/google", line 676, in <module>
    main()
  File "/usr/bin/google", line 662, in main
    run_once(options, args)
  File "/usr/bin/google", line 504, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/contacts/base.py", line 203, in _run_list
    delimiter=options.delimiter)
  File "/usr/lib/pymodules/python2.6/googlecl/base.py", line 603, in compile_entry_string
    return_string += val.replace(delimiter, ' ') + delimiter
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal 
not in range(128)

Original comment by esm...@googlemail.com on 21 Sep 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Can you try the patch in issue 279, or run the version in the repository? 
Either way, this problem should be fixed.

Original comment by tom.h.mi...@gmail.com on 21 Sep 2010 at 4:03

GoogleCodeExporter commented 9 years ago
0.9.11 should fix this for you. Please let me know if it did not. Thanks!

Original comment by thmil...@google.com on 9 Oct 2010 at 8:18