Python 3.4 problem with requests module

Steven D'Aprano steve at pearwood.info
Fri Apr 8 12:27:48 EDT 2016


On Sat, 9 Apr 2016 02:00 am, 1leefig at gmail.com wrote:

> import OpenSSL.SSL
> from pyasn1.codec.der import decoder as der_decoder
> from pyasn1.type import univ, constraint
> from socket import _fileobject, timeout, error as SocketError
> 
> But I get a python exception on this last line:
> 
> ImportError was unhandled by user code
> Message: cannot import name '_fileobject'

If you run this:


import socket
print(socket.__file__)


what does it say?




-- 
Steven




More information about the Python-list mailing list