Re: AttributeError: module 'socket' has no attribute 'timeout'

2019-04-25 Thread Alexandros Afentoulis
On 4/25/19 10:04 AM, Artem Golubev wrote: Hello,  I’m using python3.5, python3.7 on Debian 9 stretch This is my code: [snip] When I execute my code I receive this error *** Traceback (most recent call last):   File "/root/python/projects/test/socket.py", line 7, in     sock =

Re: AttributeError: module 'socket' has no attribute 'timeout'

2019-04-25 Thread Neil Williams
eption, another exception occurred: > > Traceback (most recent call last): > File "socket.py", line 1, in > import socket > File "/root/python/projects/test/socket.py", line 14, in > except socket.timeout as e: > AttributeError: module 'sock

AttributeError: module 'socket' has no attribute 'timeout'

2019-04-25 Thread Artem Golubev
socket File "/root/python/projects/test/socket.py", line 14, in except socket.timeout as e: AttributeError: module 'socket' has no attribute 'timeout' ** recently everything worked fine, but some time ago this error appeared. And on other OS (Ubunt