#I had no problem importing your diag
1 messages · Page 1 of 1 (latest)
Hi, thanks for letting me know @lime ember Out of interest - did you already have a node commissioned and visible in the webui dashboard? When I already have a node then the import works. But when I dont have any matter nodes commissioned it fails. I ran the python matter server independently of HA on my dev machine and I think I found a bug in devicecontroller.py
Traceback (most recent call last):
File "/home/ivob/Projects/pip-python-matter-server/venv/lib/python3.11/site-packages/matter_server/server/client_handler.py", line 214, in _run_handler
raise err
File "/home/ivob/Projects/pip-python-matter-server/venv/lib/python3.11/site-packages/matter_server/server/client_handler.py", line 197, in _run_handler
result = await result
^^^^^^^^^^^^
File "/home/ivob/Projects/pip-python-matter-server/venv/lib/python3.11/site-packages/matter_server/server/device_controller.py", line 857, in import_test_node
next_test_node_id = max(*(x for x in self._nodes), TEST_NODE_START) + 1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not iterable
Yes I have 14 nodes without this new one.
ah that has not been tested so you are right - that is indeed a bug (but an edge case though)
May I ask what is the usecase of setting up a blank server without actual devices ?
Thanks @cosmic cloak good to know that it wasnt my stupidity. My use case is remote development of a hassio add-on and I was looking at ways of setting up dummy matter devices on the python matter server.
by the way, I am happy to raise a PR and make a fix for this. but i am struggling to set up a dev environment of the pyton matter server due to python versions (python3.11) and my connected home repo is python3.10. I tried to install the chip whls that I built in the latest project chip repo but I am running into some difficulties which are likely caused by version capability between project chip and the python matter server repo. Is there a particular version / tag of the project chip repo that I should use to build the whls for the python matter server repo?
Oh you cant build the wheels easily yourself, also you need to respect the python version. We build wheels for linux (amd64 + aarch64) and macos (aarch64)
easiest is just macos (or linux) with a python 3.12 venv
simply run pip install -e ".[server]"
to install all requirements (including the sdk wheels)
and pip install -e ".[test]"
to install the dev/test requirements
But if all you want is fix that one bug I can do that tomorrow as well for you
Thanks. I followed your instructions and now have set up a development environment for the python matter server. Let me try to raise a PR and fix for this tomorrow myself as I would be keen to contribute to this great project in any way that I can