dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on May 26, 2017 9:23:19 GMT -8
When I press the button the display updates with black text on a white background stating "water filled". After a second, the text reverses to white text on a black background, then halts execution of the program, and exits. I get the following error message:
Traceback (most recent call last): File "SmartPlantPi.py", line 948, in <module> saveState() File "SmartPlantPi.py", line 468, in saveState output = open('SPPState.pkl', 'wb') IOError: [Errno 13] Permission denied: 'SPPState.pkl' pi@raspberrypi:~/Adafruit_Python_GPIO/SDL_Pi_SmartPlantPi $
Any suggestions as to what might be causing this error? Up until I press the button everything seems to be working correctly, at least it is updating the display every 10 seconds...
|
|
dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on May 26, 2017 11:01:16 GMT -8
I'm apparently having problems during watering? i just saw this:
Tick! The time is: 2017-05-26 11:30:22.405293 checkandWater: 65.00 Threshold / 58.01 Current Watering Plant [Errno 13] Permission denied: 'SPPState.pkl' File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "SmartPlantPi.py", line 468, in saveState output = open('SPPState.pkl', 'wb')
Tick! The time is: 2017-05-26 11:31:22.405613
Seems like a problem with a pickle?!
|
|
dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on May 27, 2017 5:45:42 GMT -8
I did not run the script as sudo.
Learning as we go!
|
|
|
Post by SDL on May 27, 2017 12:46:58 GMT -8
Excellent! I was just about to tell you that, but I see my services here are not needed.
Time for a beer.
BP
|
|