Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   CANNOT IMPORT HTTP.CLIENT (http://www.linux-archive.org/gentoo-user/415589-cannot-import-http-client.html)

Helmut Jarausch 08-20-2010 07:35 AM

CANNOT IMPORT HTTP.CLIENT
 
Hi,

today, when emerging dev-libs/openssl-0.9.8o-r2, which is needed for
nxssh, I've got the message
!!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection

Does anybody have an idea what that means?

Thanks for a hint,
Helmut.

Helmut Jarausch 08-20-2010 09:02 AM

CANNOT IMPORT HTTP.CLIENT
 
On 08/20/10 09:35:06, Helmut Jarausch wrote:
> Hi,
>
> today, when emerging dev-libs/openssl-0.9.8o-r2, which is needed for
> nxssh, I've got the message
> !!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection
>
> Does anybody have an idea what that means?
>
> Thanks for a hint,
> Helmut.

It seems something is broken in Python and or bzr, e.g.
in an overlay build for cuneiform I get


>>> Unpacking source...
* bzr update start -->
* repository: lp:cuneiform-linux
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute
'HTTPSConnection'

Re-emering dev-vcs/bzr didn't help.

Thanks for any hint,
Helmut.

walt 08-20-2010 01:43 PM

CANNOT IMPORT HTTP.CLIENT
 
On 08/20/2010 12:35 AM, Helmut Jarausch wrote:

Hi,

today, when emerging dev-libs/openssl-0.9.8o-r2, which is needed for
nxssh, I've got the message
!!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection


The class HTTPSConnection is defined in httplib.py, which is part of python
itself. I wonder if your python is installed with the ssl useflag set?

Are you using python2 and python3 on the same machine, maybe?

Helmut Jarausch 08-20-2010 03:57 PM

CANNOT IMPORT HTTP.CLIENT
 
On 08/20/10 15:43:20, walt wrote:
> On 08/20/2010 12:35 AM, Helmut Jarausch wrote:
> > Hi,
> >
> > today, when emerging dev-libs/openssl-0.9.8o-r2, which is needed
> for
> > nxssh, I've got the message
> > !!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection
>
> The class HTTPSConnection is defined in httplib.py, which is part of
Thanks, it turned out to be an openssl problem introduced by the recent
dev-libs/openss-1.0.0a-r2 which disables ssl support in Python itself.

Helmut.


All times are GMT. The time now is 05:15 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.