AppDaemon crashes after upgrade to v2.0 [solved]

I upgraded AppDaemon to 2.0 and now it crashes.

~/.appdaemon$ appdaemon -c conf/appdaemon.cfg --convertcfg
Traceback (most recent call last):
  File "/srv/appdaemon/bin/appdaemon", line 11, in <module>
    load_entry_point('appdaemon==2.0.0', 'console_scripts', 'appdaemon')()
  File "/srv/appdaemon/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 1526, in main
    config.read_file(open(config_file_conf))
TypeError: invalid file: None

It was running just fine until I upgraded. Any ideas what is going wrong? Starting up without --convertcfg fails just the very same way.

I believe the -c option changed to mean the directory the config file is in, rather than the config file itself.

2 Likes

Correct - this was documented in the Readme as well as the announcement. Try:

$ ~/.appdaemon$ appdaemon -c conf --convertcfg
1 Like

Oh, I should read the announcements better. Thanks for clearing that problem.

1 Like