Home > other >  Raspberry pie without interruption of the program
Raspberry pie without interruption of the program

Time:03-19

I wrote a program that USES python3 PCF8591 temperature and the voltage of another solar panels and a raspberry pie CPU temperature, every 5 seconds to onenet, print some data to the window at the same time, the early operation is normal, has been on a business trip, but a few days later the suddenly interrupted, do not upload the data, to the office found a hint: program

Traceback (the most recent call last) :
The File "/usr/lib/python3/dist - packages/thonny/workbench. Py", line 1432, in event_generate
Handler (event)
The File "/usr/lib/python3/dist - packages/thonny/assistance. Py", line 135, in handle_toplevel_response
Self. _explain_exception (MSG [" user_exception "])
The File "/usr/lib/python3/dist - packages/thonny/assistance. Py", line 163, in _explain_exception
[" filename "error_info]
The File "/usr/lib/python3.5/genericpath py", line 19, exists in
OS. Stat (path)
TypeError: stat: can 't specify None for the path argument

E text is not good, also do not understand what specific, there are a great god gives directions?

CodePudding user response:

Is your program in any particular case to enter the path of an empty, Java are often so early, I do if you don't want to explore whether will add a file path is empty judgment,
  • Related