Closed lstew452a closed 3 years ago
Any error seen in the log file?
If not, it might help if you describe your system / how the PiClock is started,
Any error seen in the log file?
If not, it might help if you describe your system / how the PiClock is started, It says PiClock is starting but it does not come up.
Any error seen in the log file? If not, it might help if you describe your system / how the PiClock is started, It says PiClock is starting but it does not come up.
Raspbrry PI 400
Any error seen in the log file?
The logfile(s) are written to:
/home/pi/PiClock/Clock/PyQtPiClock.1.log
/home/pi/PiClock/Clock/PyQtPiClock.2.log
and so on. log 1 should be the most recent.
Are these files recent?
maybe issue on a terminal on the pi400:
ls -l /home/pi/PiClock/Clock/PyQtPiClock.*.log
You could look into the most recent log, e.g. using in the terminal:
nano /home/pi/PiClock/Clock/PyQtPiClock.1.log
and look for any python error.
other posibility Did you do any software upgrade since the last time PiClock ran OKE?
nano /home/pi/PiClock/Clock/PyQtPiClock.1.log
Here is what the log says:
File "PyQtPiClock.py", line 409 print "getting current and forecast:" + time.ctime() ^ SyntaxError: invalid syntax
I did not make any change. I wonder if Dark Sky turned off all trail accounts. All Dark Sky activity stopped 1/2.
I looked up the error. It is DarkSky. Here is the code.
def getwx(): global wxurl global wxreply print "getting current and forecast:" + time.ctime() wxurl = 'https://api.darksky.net/forecast/' + \ ApiKeys.dsapi + \ '/' wxurl += str(Config.location.lat) + ',' + \ str(Config.location.lng) wxurl += '?units=us&lang=' + Config.Language.lower() wxurl += '&r=' + str(random.random()
That doesn't look like the current file
Just verified that Dark Sky still works:
Is the default python on your Pi400 maybe python3?
PiClock only runs python2.
Maybe there has been some change on your Pi with regard to python
In a terminal:
python -V
shows the version
That is exactly what is wrong. python3 is the default python on whatever system you're using.
Quick fix: in startup.sh change occurrences python to python2. There may be some python libraries missing as well.
That is exactly what is wrong. python3 is the default python on whatever system you're using.
Quick fix: in startup.sh change occurrences python to python2. There may be some python libraries missing as well.
I ran a tests and here are the results SD card vs Hard Drive on a Raspberry Pi 400 and PiClock
The last line is the problem as you probably already know. Some of the requirements are missing on that system, from the issue Darksky API Replacement
Extra Notes:
Updated dateutil and tzlocal may be needed:
sudo pip install python-dateutil --upgrade
sudo pip install tzlocal --upgrade
sudo pip install tzlocal --upgrade That upgrade fixed it. Thanks.
When I went back to using DarkSky for PIClock every started to work fine. But a few days ago PIClock stopped working. How do find out what is wrong.
I found out I am an error
(program exited with code: 127)