carolinux / gdata-python-client

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

Nonesock_ undefined #507

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup a machine behind proxy
2. Use Python 2.4 (will not repro with Python 2.6) and gdata 2.0.14

import gdata.calendar.client
client = gdata.calendar.client.CalendarClient(source='clienttest')
client.ClientLogin('someone@somewhere.com', 'password', client.source)

What is the expected output? What do you see instead?
The client logs in, but instead raises an exception:
>>> client.ClientLogin('someone@somewhere.com', 'password', client.source)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python24\lib\site-packages\gdata\client.py", line 439, in client_logi
n
    captcha_token=captcha_token, captcha_response=captcha_response)
  File "C:\Python24\lib\site-packages\gdata\client.py", line 338, in request_cli
ent_login_token
    response = self.http_client.request(http_request)
  File "C:\Python24\lib\site-packages\atom\http_core.py", line 420, in request
    http_request.headers, http_request._body_parts)
  File "C:\Python24\lib\site-packages\atom\http_core.py", line 460, in _http_req
uest
    connection = self._get_connection(uri, headers=headers)
  File "C:\Python24\lib\site-packages\atom\http_core.py", line 568, in _get_conn
ection
    sock_ssl = socket.ssl(p_sock, None, Nonesock_)
NameError: global name 'Nonesock_' is not defined

What version of the product are you using?
Python 2.4 and gdata 2.0.14.  This was on Windows Vista and XP.

Please provide any additional information below.

Original issue reported on code.google.com by brian...@google.com on 24 Mar 2011 at 10:13

GoogleCodeExporter commented 9 years ago
Can you please confirm that the issue is not present in Python 2.6?

Original comment by afs...@google.com on 7 Oct 2011 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 12:23