attributeerror: module
#solution no:1
#You can't have a file named socket.py in your top-level directory, because it shadows the socket module from the Python standard library. Rename that file to some other name and try again.
#solution no:2
#upgrade yor version