prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

try running ./samples/docs/docs_example.py. #650

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try running ./samples/docs/docs_example.py.
2. List all documents in google docs
3.

What is the expected output? What do you see instead?
Expect to se a list of all docs in google docs.
TITLE              TYPE         RESOURCE ID
project-numberi... spreadsheet  
spreadsheet:0AkdxyXA882r9dHJ5cnFUaHplcHNWM2NsYktFOEprYWc
projectnumberin... spreadsheet  
spreadsheet:0AkdxyXA882r9dEdmRmxkR05ndkZPZ2U1RGF2Wlp2Q2c
Forbruk            spreadsheet  
spreadsheet:0AkdxyXA882r9dFV6dk54ejNNMkVWZGRNclYxWFVMU0E
Traceback (most recent call last):
  File "./samples/docs/docs_example.py", line 347, in <module>
    main()
  File "./samples/docs/docs_example.py", line 343, in main
    sample.Run()
  File "./samples/docs/docs_example.py", line 291, in Run
    self._ListDocuments()
  File "./samples/docs/docs_example.py", line 186, in _ListDocuments
    self._PrintFeed(feed)
  File "./samples/docs/docs_example.py", line 75, in _PrintFeed
    print '%-18s %-12s %s' % (truncate(entry.title.text.encode('UTF-8')),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 45: 
ordinal not in range(128)

What version of the product are you using?
Latest 2.0.1.7

Please provide any additional information below.
Just went thru the tutorial for Gdata on Python, it installed fine and all 
tests run from ./tests/run_data_tests.py succeeded with OK.

Original issue reported on code.google.com by chrl...@gmail.com on 7 Dec 2012 at 2:10