Open iHad168 opened 11 months ago
First check if you have the needed functionality installed: pip show pytz pip show tzlocal ( Ideally inside the isolated python bin, else in your user space or system space (sudo, not recommended))
If not: pip install pytz tzlocal
That should solve the problem. I would say you are almost there.
Next you might have some stuff commented out in your 'updsuntimes.py' script that will cause a message: 'NameError: name 'pytz' is not defined'
Uncommment the commented lines at the start: import logging from datetime import timedelta from datetime import date from time import sleep
from astral import LocationInfo from astral.sun import sun
...and you should be good to go! I have Automathemely still running in an ubuntu 22.04 env on python3.10 from an isolated space. I love the app and think it should be incorporated with any good Desktop Environment. A script in KDE makes sure the backgounds (multimonitor) follow the light/ dark theme.