树莓派运行程序无故中断
我用python3写了一个程序,将PCF8591的温度和另一个太阳能板的电压还有一个树莓派CPU的温度,每隔5秒上传到onenet,同时打印一些数据到窗口,初期运行比较正常,一直出差,但是几天后程序忽然就中断了,数据不上传了。到了办公室发现程序有个提示:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/workbench.py", line 1432, in event_generate
handler(event)
File "/usr/lib/python3/dist-packages/thonny/assistance.py", line 135, in handle_toplevel_response
self._explain_exception(msg["user_exception"])
File "/usr/lib/python3/dist-packages/thonny/assistance.py", line 163, in _explain_exception
error_info["filename"]
File "/usr/lib/python3.5/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: can't specify None for path argument
E文不好,也没搞懂具体怎么回事,有大神指点一下么?