Python py2exe "IOError...unknown url type: https" issue

Viewed 529

So my Web Scrapper works fine when ran with IDLE/Python, but when I compile it into a single .exe file (using py2exe), it raises an IOError.

When using urllib module:

IOError: [Errno url error] unknown url type: 'https'

When using requests module:

requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.

I did notice, when compiling with py2exe, it said at the end that several "modules appear to be missing", including a OpenSSL.SSL, and several references to urllib, which might be the problem?

Any ideas, solutions...?

2 Answers
Related