Home Assistant Community

Custom deps deployment addon - what does it do?

#1

I don’t understand what this one is doing. I have graph-your-z-wave-mesh-python-auto-update but that one requires networkx in the venv.

I can achieve this through:

docker container exec your_container_id pip3 install networkx

which results in this log:

Collecting networkx
  Downloading https://files.pythonhosted.org/packages/11/42/f951cc6838a4dff6ce57211c4d7f8444809ccbe2134179950301e5c4c83c/networkx-2.1.zip (1.6MB)
Requirement already satisfied: decorator>=4.1.0 in /usr/lib/python3.6/site-packages (from networkx)
Installing collected packages: networkx
Running setup.py install for networkx: started
Running setup.py install for networkx: finished with status 'done'
Successfully installed networkx-2.1
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

but I thought “Custom deps deployment addon” would to the same? This would be convenient as it is run when HA restarts and installs dependencies.

Add-on config has:

{
  "pypi": [
    "networkx"
  ],
  "apk": []
}

The log says:

starting version 3.2.4
[Info] Remove old deps
[Info] Install pypi modules into deps
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[Info] done

Somehow this doesn’t do what I thought it would do - anyone sees something obviously wrong?

Many thanks,
jhh

0 Likes

#2

Indeed, what even is it :slight_smile:
I was browsing the add-ons and clicked ‘Visit Custom deps deployment page for details.’ but it is a broken link.

image

0 Likes

#3

yep, broken link. I found this thread trying to find some information on how to set it up. I have a custom component (life360.py) that needs updating, and before I did a manual update, I wanted to see if this addon would be useful to automate that.

1 Like

#4

Same for me.
I don’t get why it is listed under official add-ons.

0 Likes

#5

Sadly, the best documentation for this is likely the script that actually runs when the addon starts…

0 Likes

#6

I am trying to install matplotlib using the addon but no luck. It says it couldn’t find the dependencies FreeType and png. Can anyone help please?
Thanks

0 Likes

#7

It looks like the custom_deps addon was moved to the “hassio addons development” repository:
https://github.com/home-assistant/hassio-addons-development

Seems like you can install it by adding the repository with the URL above, then installing it like you would any other component through the UI.

0 Likes