From nobody Wed Jun 30 01:12:11 2021 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 584FB11CB7D4 for ; Wed, 30 Jun 2021 01:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GF3Gg1mmbz3HT2 for ; Wed, 30 Jun 2021 01:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1E37A235E8 for ; Wed, 30 Jun 2021 01:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 15U1CBkW029923 for ; Wed, 30 Jun 2021 01:12:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15U1CBZF029922 for python@FreeBSD.org; Wed, 30 Jun 2021 01:12:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 256885] [NEW PORT] www/py-homeassistant: Open-source home automation platform Date: Wed, 30 Jun 2021 01:12:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ygy@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256885 --- Comment #5 from rozhuk.im@gmail.com --- (In reply to Kubilay Kocak from comment #3) This port (py-homeassistant only) does not respect FreeBSD ports deps, I suppose. First attempt was to make standard port that installs all deps during installation from ports tree. I success with this, but HA is useless/unsupportable in this mode: it starts and you can configure it. But then you try to add some integration - HA rep= ort that you have missed deps. (There is an app argument to disable pip auto installer) There is 1800 "integrations" (plugins): https://www.home-assistant.io/integrations/ this mean that complete port wi= ll all features will require to install more than 2000 ports. We have no most = of these ports in ports tree. And I can not do this work. In current state port installs all requirements to allow it to bootstrap. And some ports that auto loaded at bootstrap by pip. I'am force to downgrade some pip packets versions to use python packets from system. Probably better will be remove all additional ports and let pip install it. As far as I understand HA install via pip all packets that missed or version mismatch. Original HA deps mostly have fixed versions (=3D=3D x.y.z), and I replace i= t to >=3D for some ports from ports tree. Bootstrap is in homeassistant_precmd(). Without this HA will require more ports to start first time and produce some errors at first 1-2 attempt to start. First port version was done in time of python 3.7. After update python to 3.8 and reinstall HA it bootstrap and download all 3= .8 pip packets into /var/db/homeassistant/deps/lib/python3.8/site-packages. I remove by hands /var/db/homeassistant/deps/lib/python3.7 to clean up spac= e. Current port state: it is installs and work, but have some non critical iss= ues: 1. on info page /config/info it does not show that it is Virtual Environment 2. chromium does not work with web ui, some error in script 3. ff some times glitches in web ui, refresh page fix this Probably all these issues may be fixed if more ports will have version that= HA requires instead of that I force to use from ports tree. I run it few days and have few integrations: IPP, MQTT+tasmota (mosquitto, 1 device: ESP8266+BME680), mobile app (4 devices), weather - all works fine. "recorder" configured to use mariadb (db_url: mysql+pymysql://...). --=20 You are receiving this mail because: You are on the CC list for the bug.=