Cannot update OpenSSL for Python3

Irmen de Jong irmen.NOSPAM at xs4all.nl
Mon May 4 15:02:27 EDT 2015


On 4-5-2015 19:19, Cecil Westerhof wrote:

> It looks like I am encircled by Gremlins:
>     >>> import urllib3.contrib.pyopenssl
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>       File "/usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py", line 58, in <module>
>         from socket import _fileobject, timeout
>     ImportError: cannot import name '_fileobject'
> 

Looks to me as if you have installed a Python 2 version of urllib3? pyopenssl? and are
trying to run that under python 3.

(socket module in python 2 does have a _fileobject, whereas in python 3 it no longer has
it.  Checked in CPython on Windows.)


Irmen




More information about the Python-list mailing list