carolinux / gdata-python-client

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

parse exception on a spreadsheet list feed #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run samples/spreadsheets/spreadsheetExample.py
2. selecte one of the spreadsheet/worksheet in your account and select
"list" option.
3. select command "dump" and notice the exception.

Selection: 0
0 Sheet1

Selection: 0
cells or list? list
dump
insert {row_data} (example: insert label=content)
update {row_index} {row_data}
delete {row_index}

Command: dump
Traceback (most recent call last):
  File "samples/spreadsheets/spreadsheetExample.py", line 194, in ?
    main()
  File "samples/spreadsheets/spreadsheetExample.py", line 190, in main
    sample.Run()
  File "samples/spreadsheets/spreadsheetExample.py", line 164, in Run
    self._PromptForListAction()
  File "samples/spreadsheets/spreadsheetExample.py", line 89, in
_PromptForListAction
    self._ListGetAction()
  File "samples/spreadsheets/spreadsheetExample.py", line 113, in
_ListGetAction
    self.list_feed = self.gd_client.GetListFeed(self.curr_key,
self.curr_wksht_id)
  File "/usr/lib/python2.4/site-packages/gdata/spreadsheet/service.py",
line 183, in GetListFeed
    converter=gdata.spreadsheet.SpreadsheetsListFeedFromString)
  File "/usr/lib/python2.4/site-packages/gdata/service.py", line 524, in Get
    return converter(result_body)
  File "/usr/lib/python2.4/site-packages/gdata/spreadsheet/__init__.py",
line 471, in SpreadsheetsListFeedFromString
    xml_string)
  File "/usr/lib/python2.4/site-packages/atom/__init__.py", line 80, in
CreateClassFromXMLString
    tree = ElementTree.fromstring(xml_string)
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line
1012, in XML
    return api.fromstring(text)
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line
182, in fromstring
    parser.feed(text)
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line
1292, in feed
    self._parser.Parse(data, 0)

What is the expected output? What do you see instead?
no exception.

What version of the product are you using?
1.0.9

Please provide any additional information below.

Original issue reported on code.google.com by vbarat...@gmail.com on 30 Nov 2007 at 6:52

GoogleCodeExporter commented 9 years ago
I couldn't reproduce it, could you point me to the spreadsheet which caused 
this to fail?

Original comment by api.jscu...@gmail.com on 6 Dec 2007 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by api.jscu...@gmail.com on 2 Jun 2008 at 9:48