Plataform:
  OS  Windows Vista
  IDE  Eclipse 3.3.2
  Python 2.5
  GoogleAppEngine 1.1.2
  gdata.py-1.2


Hello,

I have a fault when i run my application. My code is :


import atom
import atom.service

import socket

import gdata.spreadsheet.text_db
import gdata.spreadsheet.service

import gdata.service
import gdata.urlfetch


# Use urlfetch instead of httplib
gdata.service.http_request_handler = gdata.urlfetch

username = '[EMAIL PROTECTED]'
password = 'password'

client =  gdata.spreadsheet.text_db.DatabaseClient()

client.SetCredentials(username, password)

db = client.CreateDatabase('Test1')

table = db.CreateTable('Invoice', ['a', 'b', 'c'])


The error that i get is :

INFO     2008-03-28 23:05:59,486 dev_appserver_main.py] Running
application nevoa on port 9999: http://localhost:9999
ERROR    2008-03-28 23:06:03,223 dev_appserver.py] Exception
encountered handling request
Traceback (most recent call last):
  File "H:\GAE\google_appengine\google\appengine\tools
\dev_appserver.py", line 2276, in _HandleRequest
    base_env_dict=env_dict)
  File "H:\GAE\google_appengine\google\appengine\tools
\dev_appserver.py", line 349, in Dispatch
    base_env_dict=base_env_dict)
  File "H:\GAE\google_appengine\google\appengine\tools
\dev_appserver.py", line 1762, in Dispatch
    self._module_dict)
  File "H:\GAE\google_appengine\google\appengine\tools
\dev_appserver.py", line 1680, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "H:\GAE\google_appengine\google\appengine\tools
\dev_appserver.py", line 1581, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "H:\GAE\Eclipse\AAG\workspace\helloworld\src\helloworld.py",
line 27, in <module>
    client.SetCredentials(username, password)
  File "H:\GAE\Eclipse\AAG\workspace\helloworld\src\gdata\spreadsheet
\text_db.py", line 124, in SetCredentials
    self.__docs_client.ProgrammaticLogin()
  File "H:\GAE\Eclipse\AAG\workspace\helloworld\src\gdata\service.py",
line 449, in ProgrammaticLogin
    headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "H:\GAE\Eclipse\AAG\workspace\helloworld\src\atom\http.py",
line 117, in request
    connection.endheaders()
  File "H:\GAE\Python25\lib\httplib.py", line 860, in endheaders
    self._send_output()
  File "H:\GAE\Python25\lib\httplib.py", line 732, in _send_output
    self.send(msg)
  File "H:\GAE\Python25\lib\httplib.py", line 699, in send
    self.connect()
  File "H:\GAE\Python25\lib\httplib.py", line 1133, in connect
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
AttributeError: 'module' object has no attribute 'socket'
INFO     2008-03-28 23:06:03,229 dev_appserver.py] "GET / HTTP/1.1"
500 -


I get the same error in local server and in AppEngine server. Can
someone help.

Thanks
AAG
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to