HTTPSConnection from http.client?

Marko Rauhamaa marko at pacujo.net
Tue Nov 17 06:41:23 EST 2015


Peter Otten <__peter__ at web.de>:

> Alex Naumov wrote:
>> I tried second day to do that with http.client[1], but every time get
>> error:
>> 
>> from http.client import HTTPSConnection
>> ImportError: cannot import name HTTPSConnection
>> [...]
>> I use openSUSE 13.1 x86_64.
>
> Did you compile Python from source? You may be missing the development 
> packages.
>
> If you are using the Python provided by the distribution, perhaps support 
> for SSL is in a separate package?
>
> Note that I'm guessing, I don't have openSUSE.

On a minimal SLES-12-x86_64 installation:

   $ python3
   Python 3.4.1 (default, Jun 19 2014, 14:40:48) [GCC] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from http.client import HTTPSConnection
   >>> 


Marko



More information about the Python-list mailing list