Python 3.5 socket OSError: [Errno 101] Network is unreachable
2017-03-01 16:05
2151 查看
/******************************************************************************** * Python 3.5 socket OSError: [Errno 101] Network is unreachable * 说明: * 在网络状态一切正常的时候没有出现这个问题,当出现比较长时间的网络连接中断 * 的情况下,会出现这个现象,try...except...解决。 * * 2017-3-1 深圳 南山平山村 曾剑锋 ********************************************************************************/ 一、错误现象: Traceback (most recent call last): File "localDetect.py", line 22, in <module> socketClient.sendto(mac.encode('utf-8'), address) OSError: [Errno 101] Network is unreachable [1]+ Done(1) python localDetect.py 二、错误原因: 网络状态不好,socket的sendto等待超时。
相关文章推荐
- tensorflow IOError: [Errno socket error] [Errno 101] Network is unreachable
- Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误提示
- Python Socket 编程,OSError: [Errno 98] Address already in use
- 解决 MNIST数据集无法下载脚本input_data.py及pycharm 运行程序下载mnist数据报错[Errno 101] Network is unreachable
- Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误提示
- (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitte
- 使用javamail出现java.net.SocketException: Network is unreachable: connect异常 解决方法
- python3.5 URLError: <urlopen error [Errno 10061]报错解决方法
- python socket.error: [Errno 10054] 远程主机强迫关闭了一个现有的连接。
- Python socket.error: [Errno 98] Address already in use
- connect:Network is unreachable error 解决方法
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- python学习--for Mac 问题解决:socket.gaierror: [Errno -2] Name or service not known
- [python爬虫]使用urllib函数urlretrieve报错[socket error][Errno 10054]
- python socket.error: [Errno 48] Address already in use
- 挂载nfs文件系统出现:mount: RPC: Unable to send; errno = Network is unreachable
- Python socket.error: [Errno 98] Address already in use的原因和解决方法
- Mac OS X中解决socket.error: [Errno 48] Address already in use 端口占用问题
- 使用javamail出现java.net.SocketException: Network is unreachable: connect异常 解决方法
- 解决Python通过STMP发送邮件出现socket.error: [Errno 10061]