I updated to Appdaemon 4.0 a few weeks ago, and after making some code adjustments, everything worked fine. Until last evening (2/23/2020). Every two seconds, the following started popping up in the appdaemon log (not the error log):
2020-02-23 20:40:44.096869 INFO AppDaemon: AppDaemon Version 4.0.1 starting
2020-02-23 20:40:44.097370 INFO AppDaemon: Python version is 3.8.1
2020-02-23 20:40:44.097856 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-02-23 20:40:44.098330 INFO AppDaemon: Added log: AppDaemon
2020-02-23 20:40:44.098797 INFO AppDaemon: Added log: Error
2020-02-23 20:40:44.099235 INFO AppDaemon: Added log: Access
2020-02-23 20:40:44.099668 INFO AppDaemon: Added log: Diag
2020-02-23 20:40:44.137060 WARNING AppDaemon: ------------------------------------------------------------
2020-02-23 20:40:44.137695 WARNING AppDaemon: Unexpected error during run()
2020-02-23 20:40:44.141118 WARNING AppDaemon: ------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 117, in run
self.AD = ad.AppDaemon(self.logging, loop, **appdaemon)
File "/usr/lib/python3.8/site-packages/appdaemon/appdaemon.py", line 188, in __init__
self.sched = scheduler.Scheduler(self)
File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 54, in __init__
self.init_sun()
File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 187, in init_sun
self.location = astral.Location((
AttributeError: module 'astral' has no attribute 'Location'
2020-02-23 20:40:44.143222 INFO AppDaemon: Previous message repeated 1 times
2020-02-23 20:40:44.143631 INFO AppDaemon: AppDaemon Exited
I rolled everything back to AD 3, which I know wasn’t ideal, but it was time to go to bed and nothing worked.
I just noticed that @frenck posted an update to pin Astral package to 1.10.1
Will that solve the issue? I don’t want to go back to AD 4.0 unless this is fixed.