hello there, i'm cannot create or access a spreadsheet ... here is the code:
import atom import atom.service import gdata.spreadsheet.text_db import gdata.spreadsheet.service import gdata.service import gdata.alt.appengine username='[email protected]' password='00000' client = gdata.spreadsheet.text_db.DatabaseClient() gdata.alt.appengine.run_on_appengine(client._GetDocsClient()) gdata.alt.appengine.run_on_appengine(client._GetSpreadsheetsClient()) client.SetCredentials(username, password) db = client.CreateDatabase('new') and i get the following errror: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py", line 501, in __call__ handler.get(*groups) File "D:\Scoala\pt licenta\apps\smart_metering\index.py", line 254, in get #db=client.GetDatabases(nume_bd) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\spreadsheet \text_db.py", line 147, in CreateDatabase db_entry = self.__docs_client.UploadSpreadsheet (virtual_media_source, name) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\docs \service.py", line 299, in UploadSpreadsheet return self._UploadFile(media_source, title, category, folder_or_uri) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\docs \service.py", line 144, in _UploadFile converter=gdata.docs.DocumentListEntryFromString) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\service.py", line 1151, in Post media_source=media_source, converter=converter) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\service.py", line 1271, in PostOrPut 'reason': server_response.reason, 'body': result_body} RequestError: {'status': 401, 'body': '<HTML>\n<HEAD> \n<TITLE>Authorization required</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Authorization required</H1> \n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': ''} when i try to access a spreadsheet by name or key... for example: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py", line 501, in __call__ handler.get(*groups) File "D:\Scoala\pt licenta\apps\smart_metering\index.py", line 253, in get wk_id = 'od6' File "D:\Scoala\pt licenta\apps\smart_metering\gdata\spreadsheet \text_db.py", line 166, in GetDatabases r'/feeds/documents/private/full/spreadsheet%3A' + spreadsheet_key) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\docs \service.py", line 222, in GetDocumentListEntry return self.Get(uri, converter=gdata.docs.DocumentListEntryFromString) File "D:\Scoala\pt licenta\apps\smart_metering\gdata\service.py", line 1023, in Get 'reason': server_response.reason, 'body': result_body} RequestError: {'status': 401, 'body': '<HTML>\n<HEAD> \n<TITLE>Authorization required</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Authorization required</H1> \n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': ''} kind of the same error ... thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
