Help installing appdaemon on new ubuntu install

I’m in the process of moving my HASS environment from a raspberry pi to an emulated Ubuntu environment. Everything going well right up until I try to install and use Appdaemon - getting the following error on execution:

appdaemon -c /home/homeassistant/conf -D DEBUG
Traceback (most recent call last):
  File "/usr/local/bin/appdaemon", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py", line 519, in main
    run()
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py", line 50, in run
    ad.run_ad(loop, tasks)
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 1363, in run_ad
    read_apps(True)
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 1035, in read_apps
    dependent_modules = find_dependent_modules(module)
  File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 975, in find_dependent_modules
    if "dependencies" in conf.app_config[mod]:
TypeError: argument of type 'NoneType' is not iterable

Any ideas what I might be doing wrong?

Thanks for your help!

Tom

What do you have in your appdaemon.yaml and your apps.yaml? Also, what version are you running?

Latest version of appdaemon, here’s my apps.yaml and appdaemon.yaml:

apps.yaml:

hello_world:
module: hello
class: HelloWorld

appdaemon.yaml:

AppDaemon:
  logfile: /home/homeassistant/AppdaemonLogs/appdaemon.log
  errorfile: /home/homeassistant/AppdaemonLogs/appdaemonerr.log
  logsize: 100000
  log_generations: 3
  threads: 10
  # cert_path: <path/to/root/CA/cert>
  # cert_verify: True
  time_zone: America/Chicago
  # api_port: 5000
  # api_key: !secret api_key
  # api_ssl_certificate: <path/to/root/CA/cert>
  # api_ssl_key: <path/to/root/CA/key>
HASS:
  ha_url: http://192.168.1.22:8123
  ha_key: doxxxxx

You need to fix the indentation in apps.yaml:

hello_world:
  module: hello
  class: HelloWorld

Oh my gosh! I am an idiot - thank you!:disappointed:

2 Likes