What steps will reproduce the problem? 1. Install gdata-2.0.18 2.Attaching the code 3.Execute the code
What is the expected output? What do you see instead? Expected Output is "Insert row succeeded."
Previously, I was successful in inserting rows in my spreadsheet.But, I am unable to insert the row and getting following error. (I didn't change my code ).
But I am getting below error :
Traceback (most recent call last): File "example.py", line 33, in <module> entry = spr_client.InsertRow(dict, spreadsheet_key, worksheet_id)
File "/usr/local/lib/python2.7/dist-packages/gdata/spreadsheet/service.py", line 339, in InsertRow converter=gdata.spreadsheet.SpreadsheetsListFromString) File "/usr/local/lib/python2.7/dist-packages/gdata/service.py", line 1236, in Post media_source=media_source, converter=converter) File "/usr/local/lib/python2.7/dist-packages/gdata/service.py", line 1347, in PostOrPut redirects_remaining - 1, media_source, converter=converter) File "/usr/local/lib/python2.7/dist-packages/gdata/service.py", line 1329, in PostOrPut return converter(result_body)
File "/usr/local/lib/python2.7/dist-packages/gdata/spreadsheet/__init__.py", line 377, in SpreadsheetsListFromString xml_string) File "/usr/local/lib/python2.7/dist-packages/atom/__init__.py", line 93, in optional_warn_function return f(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/atom/__init__.py", line 127, in CreateClassFromXMLString tree = ElementTree.fromstring(xml_string) File "<string>", line 124, in XML cElementTree.ParseError: mismatched tag: line 921, column 4
What version of the product are you using? gdata-2.0.18 python2.7
Please provide any additional information below.
Attachments: example.py.txt 1.0 KB
-- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings
gdata-pyt...@googlecode.com
unread,
May 27, 2015, 7:03:59 AM5/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
In digging around, it seems like the problem is that the ClientLogin method has been completely deprecated. In order to access spreadsheets, you'll need to use OAuth2 login methods.
gdata-pyt...@googlecode.com
unread,
May 29, 2015, 4:53:42 PM5/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
This is a "known" issue that I just found today. It turns out that the Client Login authorization has been deprecated and was recently disabled; the API now returns a HTTP 200 with an empty body if you attempt a ClientLogin. Unfortunately, there's no handling of this in gdata-python-client, and you get the above error.