google-code-export / gdata-python-client

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

Gdata Error with Socket connection in Debian #401

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I Can install the gdata correctly and test the modules also using the 
testing codes. But when running the sample codes it will stuck or some time 
producing  "socket.error:".I tried with different versions of the python and 
gdata no way... My system is Debain so i want to know whether its my system 
problem ..or anything else...

What version of the product are you using?

gdata-2.0.10/gdata-2.0.09  python2.4/2.5/2.6   Debian4.0/5.0 64bit.

Please provide any additional information below.

Here is the log from the execution of sample code. i got this using the -v 
option with python interpreter.

-------------------------------------------
import gdata.gauth # precompiled from 
/usr/local/python/lib/python2.6/site-packages/gdata/gauth.pyc
# /usr/local/python/lib/python2.6/getopt.pyc matches 
/usr/local/python/lib/python2.6/getopt.py
import getopt # precompiled from /usr/local/python/lib/python2.6/getopt.pyc

Traceback (most recent call last):
  File "spreadsheetExample.py", line 199, in <module>
    main()
  File "spreadsheetExample.py", line 194, in main
    sample = SimpleCRUD(user, pw)
  File "spreadsheetExample.py", line 42, in __init__
    self.gd_client.ProgrammaticLogin()
  File "/usr/local/python/lib/python2.6/site-packages/gdata/service.py", line 771, in ProgrammaticLogin
    headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "/usr/local/python/lib/python2.6/site-packages/atom/http.py", line 163, in request
    connection.endheaders()
  File "/usr/local/python/lib/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/local/python/lib/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/local/python/lib/python2.6/httplib.py", line 735, in send
    self.connect()
  File "/usr/local/python/lib/python2.6/httplib.py", line 1108, in connect
    sock = socket.create_connection((self.host, self.port), self.timeout)
  File "/usr/local/python/lib/python2.6/socket.py", line 507, in create_connection
    sock.connect(sa)
  File "<string>", line 1, in connect

--------------------------

After pressing Alt-C only I can exit from this program when im using the 
python2.6. If im using other version the issues was not able to connect with 
the following log.

---------------------------------

mailserver:/usr/src/gdata-2.0.10/samples/spreadsheets# python 
spreadsheetExample.py --user=sdf --pw=sdf
Traceback (most recent call last):
  File "spreadsheetExample.py", line 25, in <module>
    import gdata.spreadsheet.service
ImportError: No module named gdata.spreadsheet.service
mailserver:/usr/src/gdata-2.0.10/samples/spreadsheets# python2.4 
spreadsheetExample.py --user=sdf --pw=sdf
Traceback (most recent call last):
  File "spreadsheetExample.py", line 199, in ?
    main()
  File "spreadsheetExample.py", line 194, in main
    sample = SimpleCRUD(user, pw)
  File "spreadsheetExample.py", line 42, in __init__
    self.gd_client.ProgrammaticLogin()
  File "/usr/lib/python2.4/site-packages/gdata/service.py", line 771, in ProgrammaticLogin
    headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "/usr/lib/python2.4/site-packages/atom/http.py", line 163, in request
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 646, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 1072, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
socket.error: (110, 'Connection timed out')

------------------------------

Please help me to figure this out ...

Thanks,
Haridas N.

Original issue reported on code.google.com by haridas....@gmail.com on 2 Jul 2010 at 11:01

GoogleCodeExporter commented 9 years ago
I can't repro in a debian env.  Are you behind a proxy or firewall?  Any 
iptables rules?

Marking won't fix for now, I'm sorry this took so long for a response.

Original comment by vicfry...@google.com on 20 Dec 2010 at 4:17