Closed leonm1 closed 10 months ago
Usernames in maintainer-list.nix
do not always match GitHub's usernames. Notifying the whole team should probably work.
(Note that home-assistant-chip-core depends on openssl_1_1, which is end-of-life, and is another sign this may not be the right dependency for matter's matter integration)
It is the correct dependency, we're just talking about a shitty vendor consortium, where nobody cares about that kind of thing.
https://github.com/project-chip/connectedhomeip/issues/25688
The package at issue appears to be home-assistant-chip-core, which indicates its homepage is home-assistant-libs/chip-wheels, which is just a collection of patches for project-chip/connectedhomeip. I tried applying these patches to a clean checkout of connectedhomeip, but it appears like all of them are included upstream as of the latest master
We use the home assistant built wheels, because interacting with the upstream connectedhomeip repository was painful to me.
home-assistant-chip-core is simply fetched from PyPI, and the upstream package is lacking the same files.
It is in fact in there.
lib/python3.10/site-packages/chip/exceptions/__init__.py
I also do not know what commit of connectedhomeip would be the right commit to build from.
The same version as home assistant requires, if you want to use it with home assistant.
Please check https://github.com/NixOS/nixpkgs/pull/262521, where I included some fixes. It is not quite there yet, and I don't currently understand the problem, so some fresh eyes are welcome to take a look.
Also building things from the connectedhomeip
is problematic, since the full source checkout is a whopping 27 GB, while our current output limit is 3 GB.
And then it goes on to download even more things to "bootstrap".
❯ ./scripts/build_python.sh
Input values: chip_detail_logging = false , chip_mdns = "", enable_pybindings = false, chip_case_retry_delta="", pregen_dir=""
WELCOME TO...
█
█
▄ █ ▄ █ █
▀▀█████▀▀ ▄▀▀▀▄ ▄▀▀▀▄ ▄▀▀▀▀▄█ ▀▀█▀▀▀▀▀█▀▀ ▄▀▀▀▀▄ ▄▀▀
▀█▄ ▄█▀ █ █ █ █ █ █ █ █▄▄▄▄▄▄█ █
▀█▄ ▄█▀ █ █ █ █ █ █ █ █ █
▄██▀▀█ █▀▀██▄ █ █ █ ▀▄▄▄▄▀█ ▀▄▄ ▀▄▄ ▀▄▄▄▄▀ █
▀▀ █ █ ▀▀
BOOTSTRAP! Bootstrap may take a few minutes; please be patient.
Downloading and installing packages into local source directory:
Setting up CIPD package manager...[-]
Also building things from the
connectedhomeip
is problematic, since the full source checkout is a whopping 27 GB, while our current output limit is 3 GB.
I was double checking this and with submodules I got like 12 GB which is still insane. Also we are charting really deep into horrible enterprise software with horrible practices. So even if we could hack around this limit, fetch each submodule and then symlink them together, we would still need to fight the next steps already teasered.
Either way, this issue has been resolved a while ago.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/compiling-the-matter-sdk-on-nixos/47742/1
Describe the bug
I would like to run home-assistant with the matter integration. I am unable to do so, since
python-matter-server
'smatter-server
fails with the following error due to missing dependencies:(Note that
home-assistant-chip-core
depends onopenssl_1_1
, which is end-of-life, and is another sign this may not be the right dependency for matter'smatter
integration)Steps To Reproduce
Steps to reproduce the behavior:
With nixpkgs-unstable:
env NIXPKGS_ALLOW_INSECURE=1 nix shell nixpkgs#python-matter-server --impure
matter-server
Confirmed on x86_64 and aarch64.
Expected behavior
I expect the matter server to run and expose an interface on port 5580.
Additional context
I did some investigation into the issue.
home-assistant-chip-core
, which indicates its homepage is https://github.com/home-assistant-libs/chip-wheels, which is just a collection of patches for https://github.com/project-chip/connectedhomeip. I tried applying these patches to a clean checkout of connectedhomeip, but it appears like all of them are included upstream as of the latest masterhome-assistant-chip-core
is simply fetched from PyPI, and the upstream package is lacking the same files.Notify maintainers
@Mic92 @globin
(There's other maintainers "fab" and "hexa" listed in the home-assistant team, but neither of them appeared to be a part of the nix org)
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.I use flakes for my config. My current flake is built off of nixpkgs rev
ace5093e36ab1e95cb9463863491bee90d5a4183