'module' object has no attribute 'wrap_socket' when use ssl

Ho Yeung Lee jobmattcon at gmail.com
Sat Apr 15 03:03:06 EDT 2017


Python 2.7.6 (default, Jun 22 2015, 18:00:18) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/martin/Documents/ssl.py", line 13, in <module>
    SSLError -- exception raised for I/O errors
AttributeError: 'module' object has no attribute 'wrap_socket'



More information about the Python-list mailing list