AppDaemon, occusim, Home-Assistant

I am trying to run AppDaemon using pip3 but whenever I do I get the following error:

Traceback (most recent call last):
File “/usr/local/bin/appdaemon”, line 9, in
load_entry_point(‘appdaemon==1.5.2’, ‘console_scripts’, ‘appdaemon’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2569, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2229, in load
return self.resolve()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2235, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/local/lib/python2.7/dist-packages/appdaemon/appdaemon.py”, line 6, in
from importlib.machinery import SourceFileLoader
ImportError: No module named machinery

I am not sure what this really means or how to fix it.

seems like you are using python 2.7 and not python3

at what moment do you get that error?

How do I use python 3 then. I have both 2 and 3 installed

at which moment do you get the error?
during install or after?
after which command?

1 Like

I get the error after install but when i try to run AppDaemon. the command is:

$ appdaemon -c conf/appdaemon.cfg

are you in the appdaemon directory when you make that command?

Yes i am in the appdaemon directory when I make the command

then i think somthing went wrong during installation.
you could try

python3 -m appdaemon.appdaemon -c conf/appdaemon.cfg
1 Like

I went back and reinstalled and that seemed to fix my issue. Thanks

1 Like