Installing Appdaemon-venv or not

Just installed HA in a venv as per install instructions in the docs.

Now I’m installing AppDeamon but while the docs do mention not to install it in the same venv as HA the docs don’t mention how to create a separate venv for Appdaemon.

Possibly a silly question but could anyone suggest the method for creating a new venv for Appdaemon prior to the

$ sudo pip3 install appdaemon

Take a look at this thread. Let me know if you still need help.

Thanks. That’s quite extensive

If I’m figuring this correctly the steps I need to take as follows

$ cd /srv
$ sudo mkdir appdaemon
$ sudo chown appdaemon appdaemon:appdaemon

$ sudo -u appdaemon -H -s
$ cd /srv/appdaemon
$ python3 -m venv .
$ source bin/activate

(appdaemon) appdaemon@raspberrypi:/srv/appdaemon $ pip3 install appdaemon

Do you see any problems here

If you do already have an appdaemon user, no, that should be it.

No I haven’t defined anything yet.

Just wanted to make sure I got everything right in my head before I attempted an Appdaemon install after already installing on the Raspberry Pi 3

I updated my original post to be valid for the current version of AppDaemon. I’m currently double checking if everything is correct but I don’t think I missed anything important.

Let me know if this worked for you and leave a comment over there.

I certainly will. Thanks for that.

The Docs on Appdaemon installation should really include this method.

A while back I installed Appdaemon outside a venv and it caused me more headaches so this time I want to keep everything separate particularly for updating purposes.

1 Like

Did it work out fine?

I followed your install instructions and it threw up a load of cffi errors.

I tried the install instructions in the Appdaemon docs and everything worked fine.

I’m checking what went wrong between the two methods.