Sublime Forum

Performing an HTTPS connection

#1

I’m trying to use the GData API to synch some text files with Google Docs.

When executing this through a plugin or the console:

import urllib2 f = urllib2.urlopen("https://www.google.com/")
I immediately get a timeout error: "urllib2.URLError: "

I’ve tried changing the default timeout but it doesn’t help.

Any ideas?

Note: the same code works when I execute it through my local Python 2.5.4 shell

0 Likes

#2

The initial code snippet works ok for me when I paste it into my console (i.e., there’s no error, and I can call f.read() and get back the contents). Could this be a proxy issue of some sort?

0 Likes

#3

I found the problem.
For some reason my _ssl.pyd file was last modified in 2006, while all the .pyd files in the same directory were last modified in 2008.

I replaced_ssl.pyd from the one that comes with Python 2.5.2 (same version as sublime’s) and it’s working now.

0 Likes

#4

It’s probably a bug in the installer then

0 Likes

#5

When I install a new beta, _ssl.pyd gets overwritten with the old (broken) 2006 version

0 Likes