相关文章推荐
侠义非凡的吐司  ·  Vue ...·  2 年前    · 
长情的豆腐  ·  如何通过python在ms ...·  2 年前    · 
/******************************************************************************** * Python 3.5 socket OSError: [Errno 101] Network is unreachable * 说明: * 在网络状态一切正常的时候没有出现这个问题,当出现比较长时间的网络连接中断 * 的情况下,会出现这个现象,try...except...解决。
/********************************************************************************
 *       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等待超时。
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. Python:smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Python:smtplib.SMTPServerDisconnected: Connection unexpectedly closed
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
docker启动jupyter报错:OSError: [Errno 99] Cannot assign requested address
docker启动jupyter报错:OSError: [Errno 99] Cannot assign requested address
URLError: <urlopen error [Errno 11004] getaddrinfo failed>调用seaborn-data无法使用
URLError: <urlopen error [Errno 11004] getaddrinfo failed>调用seaborn-data无法使用
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.