Перейти к содержанию

Рекомендуемые сообщения

Опубликовано (изменено)
1 hour ago, Александр Рыжов said:

Entware-3x уже два года как заморожен и никакой поддержки по нему авторы не обеспечивают.

Есть что-то специфичное, чего нет в Entware?

Я не знаю по адресу ли вопрос, но у меня имеется некоторая проблема.

Я завёл на роутере Home Assistent, заводил через Entware, используя гайды раз, два.

Всё работает, даже неплохо работает, но ставил я его только ради того чтобы пробросить китайские датчики в homekit.

И вот при установке компонента хоумкита начинается какая-то хрень. Роутер просто зависает.

Кусок вывода top который удалось вытащить перед зависанием:

19242 19241 root     R    87204 34.0   2 24.9 /opt/lib/gcc/mipsel-openwrt-linux-gnu/7.4.0/cc1 -quiet -I /home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I /home/ryzhovau/E
  257     1 root     S    47384 18.5   1  1.3 ndm
  144     2 root     SW       0  0.0   0  0.7 [kswapd0]
18588     2 root     SW       0  0.0   3  0.7 [kworker/3:0]
19105     1 root     S     191m 76.7   1  0.2 {hass} /opt/bin/python3 /opt/bin/hass -v --config /opt/etc/homeassistant --pid-file /opt/var/run/hass.pid --log-file /opt/var/log/homeassistant/home-assistant
19117 17248 root     R     3840  1.5   3  0.2 top
17247   841 root     S     2992  1.1   0  0.1 /opt/sbin/dropbear -p 222 -P /opt/var/run/dropbear.pid
  627   257 root     S     1632  0.6   3  0.1 /usr/sbin/ndnproxy -c /var/ndnproxymain.conf -p /var/ndnproxymain.pid -s /var/ndnproxysafe.conf
17786   257 root     S    16212  6.3   3  0.0 /usr/sbin/transmissiond -Q 0 -f -a *.*.*.* -t -c /tmp/mnt/0EB418AF0EB418AF/torrents/watch -w /tmp/mnt/0EB418AF0EB418AF/torrents/download -g /tmp/mnt/0EB418AF0
  860   257 root     S     1100  0.4   1  0.0 /bin/bndstrg -d 0
    3     2 root     SW       0  0.0   0  0.0 [kworker/0:0]
    7     2 root     SW       0  0.0   0  0.0 [rcu_sched]
19142     2 root     SW       0  0.0   3  0.0 [kworker/u8:2]
24459   257 root     S    84576 33.0   3  0.0 /sbin/tsmb-server -c /var/run/tsmb/tsmb.conf
19197 19105 root     S    42768 16.7   1  0.0 /opt/bin/python3 -m pip install --quiet HAP-python==2.9.2 --upgrade --constraint /opt/lib/python3.8/site-packages/homeassistant/package_constraints.txt --user
19225 19197 root     S    20872  8.1   0  0.0 /opt/bin/python3 -u -c import sys, setuptools, tokenize; sys.argv[0] = '/opt/tmp/pip-install-7rk8eu0g/ed25519/setup.py'; __file__='/opt/tmp/pip-install-7rk8eu
19243 19241 root     S     8768  3.4   0  0.0 as -I /home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I /home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-8.4
24333   799 nobody   S     8232  3.2   3  0.0 nginx: worker process
24330   799 nobody   S     8232  3.2   0  0.0 nginx: worker process
24331   799 nobody   S     8232  3.2   1  0.0 nginx: worker process
24332   799 nobody   S     8232  3.2   2  0.0 nginx: worker process
  799   257 root     S     8232  3.2   0  0.0 nginx: master process /usr/sbin/nginx
  721   710 nobody   S     6936  2.7   3  0.0 nginx: worker process
  710   257 root     S     6484  2.5   1  0.0 nginx: master process /usr/sbin/nginx -c /tmp/nginx/dotproxy-40500.conf
19241 19225 root     S     5840  2.2   1  0.0 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-s

Если я правильно понимаю Home Assistent в фоне пытается что-то собрать используя путь /home/ryzhovau которого у меня конечно же нет. Откуда он его взял? Как это можно пофиксить?

Изменено пользователем Nail Alimgulov
Опубликовано (изменено)

https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules

https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation

---

log

Скрытый текст

~ # 
~ # HOME=/opt/tmp/pip_home pip3 install homeassistant
Collecting homeassistant
  Downloading https://files.pythonhosted.org/packages/3f/9f/845957495728b3db0456efac90f9a7ff4a97317f6295809e6e0809b480df/homeassistant-0.113.2-py3-none-any.whl (8.7MB)
     |████████████████████████████████| 8.7MB 1.9MB/s 
Collecting certifi>=2020.4.5.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl (156kB)
     |████████████████████████████████| 163kB 1.9MB/s 
Collecting jinja2>=2.11.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
     |████████████████████████████████| 133kB 1.9MB/s 
Collecting ciso8601==2.1.3 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/2c/da/626910cf8aca7ed2d5b34355eee8aeaaeb6ddd4e16f98d00a9e2ddad3a08/ciso8601-2.1.3.tar.gz
Collecting voluptuous==0.11.7 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/24/3b/fe531688c0d9e057fccc0bc9430c0a3d4b90e0d2f015326e659c2944e328/voluptuous-0.11.7.tar.gz (45kB)
     |████████████████████████████████| 51kB 1.0MB/s 
Collecting aiohttp==3.6.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/10/28/ab9decdf95f0b2babe509f264ca531fd6c910615e0b4be5f240dba500832/aiohttp-3.6.1.tar.gz (1.1MB)
     |████████████████████████████████| 1.1MB 2.1MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cryptography==2.9.2 in /opt/lib/python3.8/site-packages (from homeassistant) (2.9.2)
Collecting pyyaml==5.3.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
     |████████████████████████████████| 276kB 1.9MB/s 
Requirement already satisfied: pip>=8.0.3 in /opt/lib/python3.8/site-packages (from homeassistant) (19.2.3)
Collecting PyJWT==1.7.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Collecting async-timeout==3.0.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting voluptuous-serialize==2.4.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/b5/37/79066c7bd82e7a463ecbfe644598f9a79011a32179d9829121ea171b339a/voluptuous_serialize-2.4.0-py3-none-any.whl
Collecting astral==1.10.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/ff/5d/261f49822b7f77c265197d46cdbaaaaf06f458734e9ac55a140dd75bdf29/astral-1.10.1-py2.py3-none-any.whl
Collecting attrs==19.3.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting ruamel.yaml==0.15.100 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/9a/ee/55cd64bbff971c181e2d9e1c13aba9a27fd4cd2bee545dbe90c44427c757/ruamel.yaml-0.15.100.tar.gz (318kB)
     |████████████████████████████████| 327kB 1.9MB/s 
Collecting bcrypt==3.1.7 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz (42kB)
     |████████████████████████████████| 51kB 1.0MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pytz>=2020.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl (510kB)
     |████████████████████████████████| 512kB 1.6MB/s 
Collecting python-slugify==4.0.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/92/5f/7b84a0bba8a0fdd50c046f8b57dcf179dc16237ad33446079b7c484de04c/python-slugify-4.0.0.tar.gz
Collecting requests==2.24.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl (61kB)
     |████████████████████████████████| 71kB 1.2MB/s 
Collecting MarkupSafe>=0.23 (from jinja2>=2.11.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting yarl<2.0,>=1.0 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/12/f1/0a667b5a08850a455456e375cb2a91ff8234eae7a5d8755834be860be564/yarl-1.5.0.tar.gz (172kB)
     |████████████████████████████████| 174kB 1.6MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting chardet<4.0,>=2.0 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
     |████████████████████████████████| 143kB 1.8MB/s 
Collecting multidict<5.0,>=4.5 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/65/d4/fabdcc5ee4451c8a8e177e27ddfd131a53a82ecc5a3b68468b7e9f8d70b4/multidict-4.7.6.tar.gz (50kB)
     |████████████████████████████████| 51kB 1.0MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /opt/lib/python3.8/site-packages (from cryptography==2.9.2->homeassistant) (1.14.0)
Requirement already satisfied: six>=1.4.1 in /opt/lib/python3.8/site-packages (from cryptography==2.9.2->homeassistant) (1.15.0)
Collecting text-unidecode>=1.3 (from python-slugify==4.0.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/a6/a5/c0b6468d3824fe3fde30dbb5e1f687b291608f9473681bbf7dabbf5a87d7/text_unidecode-1.3-py2.py3-none-any.whl (78kB)
     |████████████████████████████████| 81kB 1.2MB/s 
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests==2.24.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl (127kB)
     |████████████████████████████████| 133kB 1.9MB/s 
Collecting idna<3,>=2.5 (from requests==2.24.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
     |████████████████████████████████| 61kB 1.1MB/s 
Collecting typing-extensions>=3.7.4 (from yarl<2.0,>=1.0->aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/0c/0e/3f026d0645d699e7320b59952146d56ad7c374e9cd72cd16e7c74e657a0f/typing_extensions-3.7.4.2-py3-none-any.whl
Requirement already satisfied: pycparser in /opt/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography==2.9.2->homeassistant) (2.20)
Building wheels for collected packages: aiohttp, bcrypt, yarl, multidict
  Building wheel for aiohttp (PEP 517) ... done
  Created wheel for aiohttp: filename=aiohttp-3.6.1-cp38-cp38-linux_mips.whl size=633541 sha256=ae70208781e943aac3c8990fec081339ad122752e12bf18a17dc29381a91f5d3
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/7e/a7/bb/78b7ebe5be84c76f7322cfe35254886aac07cca421a5a7d82a
  Building wheel for bcrypt (PEP 517) ... done
  Created wheel for bcrypt: filename=bcrypt-3.1.7-cp38-cp38-linux_mips.whl size=30498 sha256=63f83ffbe4ce99a2a47b054ad97bf7d78898343cb3f8e85ce193d9546e23e337
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/ae/b1/2c/dc178774d435228aff4679c4837de4d5ee1dd5568a370fc79c
  Building wheel for yarl (PEP 517) ... done
  Created wheel for yarl: filename=yarl-1.5.0-cp38-cp38-linux_mips.whl size=129432 sha256=18ec4b18772f449a6a9d21599c476bcb846d64721f35e8a3e2b459ad90a6a05c
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/1f/44/b8/e78288d2516d4cce03ade0b23c1af1ef2ac3df1ac3730186f5
  Building wheel for multidict (PEP 517) ... done
  Created wheel for multidict: filename=multidict-4.7.6-cp38-cp38-linux_mips.whl size=51620 sha256=cc7406f2a6417b66dd36e0773389c5e3de63df8bac5a5281ae8c232f554e30dc
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/1f/9d/78/5f26d5ea7d1cf9c9df8dbb2b1ecb7a988af034cc1a8cf69a64
Successfully built aiohttp bcrypt yarl multidict
Installing collected packages: certifi, MarkupSafe, jinja2, ciso8601, voluptuous, typing-extensions, idna, multidict, yarl, async-timeout, chardet, attrs, aiohttp, pyyaml, PyJWT, voluptuous-serialize, pytz, astral, ruamel.yaml, bcrypt, text-unidecode, python-slugify, urllib3, requests, homeassistant
  Running setup.py install for MarkupSafe ... done
  Running setup.py install for ciso8601 ... done
  Running setup.py install for voluptuous ... done
  Running setup.py install for pyyaml ... done
  Running setup.py install for ruamel.yaml ... done
  Running setup.py install for python-slugify ... done
Successfully installed MarkupSafe-1.1.1 PyJWT-1.7.1 aiohttp-3.6.1 astral-1.10.1 async-timeout-3.0.1 attrs-19.3.0 bcrypt-3.1.7 certifi-2020.6.20 chardet-3.0.4 ciso8601-2.1.3 homeassistant-0.113.2 idna-2.10 jinja2-2.11.2 multidict-4.7.6 python-slugify-4.0.0 pytz-2020.1 pyyaml-5.3.1 requests-2.24.0 ruamel.yaml-0.15.100 text-unidecode-1.3 typing-extensions-3.7.4.2 urllib3-1.25.10 voluptuous-0.11.7 voluptuous-serialize-2.4.0 yarl-1.5.0
WARNING: You are using pip version 19.2.3, however version 20.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
~ # 
~ # ha
halt  hass
~ # hass --help
usage: hass [-h] [--version] [-c path_to_config_dir] [--safe-mode] [--debug] [--open-ui] [--skip-pip] [-v] [--pid-file path_to_pid_file] [--log-rotate-days LOG_ROTATE_DAYS]
            [--log-file LOG_FILE] [--log-no-color] [--runner] [--script ...] [--daemon]

Home Assistant: Observe, Control, Automate.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -c path_to_config_dir, --config path_to_config_dir
                        Directory that contains the Home Assistant configuration
  --safe-mode           Start Home Assistant in safe mode
  --debug               Start Home Assistant in debug mode
  --open-ui             Open the webinterface in a browser
  --skip-pip            Skips pip install of required packages on startup
  -v, --verbose         Enable verbose logging to file.
  --pid-file path_to_pid_file
                        Path to PID file useful for running as daemon
  --log-rotate-days LOG_ROTATE_DAYS
                        Enables daily log rotation and keeps up to the specified days
  --log-file LOG_FILE   Log file to write to. If not set, CONFIG/home-assistant.log is used
  --log-no-color        Disable color logs
  --runner              On restart exit with code 100
  --script ...          Run one of the embedded scripts
  --daemon              Run Home Assistant as daemon
~ # 

 

 

Изменено пользователем TheBB
add
Опубликовано (изменено)
1 час назад, TheBB сказал:

https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules

https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation

---

log

  Показать содержимое


~ # 
~ # HOME=/opt/tmp/pip_home pip3 install homeassistant
Collecting homeassistant
  Downloading https://files.pythonhosted.org/packages/3f/9f/845957495728b3db0456efac90f9a7ff4a97317f6295809e6e0809b480df/homeassistant-0.113.2-py3-none-any.whl (8.7MB)
     |████████████████████████████████| 8.7MB 1.9MB/s 
Collecting certifi>=2020.4.5.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl (156kB)
     |████████████████████████████████| 163kB 1.9MB/s 
Collecting jinja2>=2.11.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
     |████████████████████████████████| 133kB 1.9MB/s 
Collecting ciso8601==2.1.3 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/2c/da/626910cf8aca7ed2d5b34355eee8aeaaeb6ddd4e16f98d00a9e2ddad3a08/ciso8601-2.1.3.tar.gz
Collecting voluptuous==0.11.7 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/24/3b/fe531688c0d9e057fccc0bc9430c0a3d4b90e0d2f015326e659c2944e328/voluptuous-0.11.7.tar.gz (45kB)
     |████████████████████████████████| 51kB 1.0MB/s 
Collecting aiohttp==3.6.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/10/28/ab9decdf95f0b2babe509f264ca531fd6c910615e0b4be5f240dba500832/aiohttp-3.6.1.tar.gz (1.1MB)
     |████████████████████████████████| 1.1MB 2.1MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cryptography==2.9.2 in /opt/lib/python3.8/site-packages (from homeassistant) (2.9.2)
Collecting pyyaml==5.3.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
     |████████████████████████████████| 276kB 1.9MB/s 
Requirement already satisfied: pip>=8.0.3 in /opt/lib/python3.8/site-packages (from homeassistant) (19.2.3)
Collecting PyJWT==1.7.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Collecting async-timeout==3.0.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting voluptuous-serialize==2.4.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/b5/37/79066c7bd82e7a463ecbfe644598f9a79011a32179d9829121ea171b339a/voluptuous_serialize-2.4.0-py3-none-any.whl
Collecting astral==1.10.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/ff/5d/261f49822b7f77c265197d46cdbaaaaf06f458734e9ac55a140dd75bdf29/astral-1.10.1-py2.py3-none-any.whl
Collecting attrs==19.3.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting ruamel.yaml==0.15.100 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/9a/ee/55cd64bbff971c181e2d9e1c13aba9a27fd4cd2bee545dbe90c44427c757/ruamel.yaml-0.15.100.tar.gz (318kB)
     |████████████████████████████████| 327kB 1.9MB/s 
Collecting bcrypt==3.1.7 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz (42kB)
     |████████████████████████████████| 51kB 1.0MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pytz>=2020.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl (510kB)
     |████████████████████████████████| 512kB 1.6MB/s 
Collecting python-slugify==4.0.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/92/5f/7b84a0bba8a0fdd50c046f8b57dcf179dc16237ad33446079b7c484de04c/python-slugify-4.0.0.tar.gz
Collecting requests==2.24.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl (61kB)
     |████████████████████████████████| 71kB 1.2MB/s 
Collecting MarkupSafe>=0.23 (from jinja2>=2.11.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting yarl<2.0,>=1.0 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/12/f1/0a667b5a08850a455456e375cb2a91ff8234eae7a5d8755834be860be564/yarl-1.5.0.tar.gz (172kB)
     |████████████████████████████████| 174kB 1.6MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting chardet<4.0,>=2.0 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
     |████████████████████████████████| 143kB 1.8MB/s 
Collecting multidict<5.0,>=4.5 (from aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/65/d4/fabdcc5ee4451c8a8e177e27ddfd131a53a82ecc5a3b68468b7e9f8d70b4/multidict-4.7.6.tar.gz (50kB)
     |████████████████████████████████| 51kB 1.0MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /opt/lib/python3.8/site-packages (from cryptography==2.9.2->homeassistant) (1.14.0)
Requirement already satisfied: six>=1.4.1 in /opt/lib/python3.8/site-packages (from cryptography==2.9.2->homeassistant) (1.15.0)
Collecting text-unidecode>=1.3 (from python-slugify==4.0.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/a6/a5/c0b6468d3824fe3fde30dbb5e1f687b291608f9473681bbf7dabbf5a87d7/text_unidecode-1.3-py2.py3-none-any.whl (78kB)
     |████████████████████████████████| 81kB 1.2MB/s 
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests==2.24.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl (127kB)
     |████████████████████████████████| 133kB 1.9MB/s 
Collecting idna<3,>=2.5 (from requests==2.24.0->homeassistant)
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
     |████████████████████████████████| 61kB 1.1MB/s 
Collecting typing-extensions>=3.7.4 (from yarl<2.0,>=1.0->aiohttp==3.6.1->homeassistant)
  Downloading https://files.pythonhosted.org/packages/0c/0e/3f026d0645d699e7320b59952146d56ad7c374e9cd72cd16e7c74e657a0f/typing_extensions-3.7.4.2-py3-none-any.whl
Requirement already satisfied: pycparser in /opt/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography==2.9.2->homeassistant) (2.20)
Building wheels for collected packages: aiohttp, bcrypt, yarl, multidict
  Building wheel for aiohttp (PEP 517) ... done
  Created wheel for aiohttp: filename=aiohttp-3.6.1-cp38-cp38-linux_mips.whl size=633541 sha256=ae70208781e943aac3c8990fec081339ad122752e12bf18a17dc29381a91f5d3
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/7e/a7/bb/78b7ebe5be84c76f7322cfe35254886aac07cca421a5a7d82a
  Building wheel for bcrypt (PEP 517) ... done
  Created wheel for bcrypt: filename=bcrypt-3.1.7-cp38-cp38-linux_mips.whl size=30498 sha256=63f83ffbe4ce99a2a47b054ad97bf7d78898343cb3f8e85ce193d9546e23e337
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/ae/b1/2c/dc178774d435228aff4679c4837de4d5ee1dd5568a370fc79c
  Building wheel for yarl (PEP 517) ... done
  Created wheel for yarl: filename=yarl-1.5.0-cp38-cp38-linux_mips.whl size=129432 sha256=18ec4b18772f449a6a9d21599c476bcb846d64721f35e8a3e2b459ad90a6a05c
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/1f/44/b8/e78288d2516d4cce03ade0b23c1af1ef2ac3df1ac3730186f5
  Building wheel for multidict (PEP 517) ... done
  Created wheel for multidict: filename=multidict-4.7.6-cp38-cp38-linux_mips.whl size=51620 sha256=cc7406f2a6417b66dd36e0773389c5e3de63df8bac5a5281ae8c232f554e30dc
  Stored in directory: /opt/tmp/pip_home/.cache/pip/wheels/1f/9d/78/5f26d5ea7d1cf9c9df8dbb2b1ecb7a988af034cc1a8cf69a64
Successfully built aiohttp bcrypt yarl multidict
Installing collected packages: certifi, MarkupSafe, jinja2, ciso8601, voluptuous, typing-extensions, idna, multidict, yarl, async-timeout, chardet, attrs, aiohttp, pyyaml, PyJWT, voluptuous-serialize, pytz, astral, ruamel.yaml, bcrypt, text-unidecode, python-slugify, urllib3, requests, homeassistant
  Running setup.py install for MarkupSafe ... done
  Running setup.py install for ciso8601 ... done
  Running setup.py install for voluptuous ... done
  Running setup.py install for pyyaml ... done
  Running setup.py install for ruamel.yaml ... done
  Running setup.py install for python-slugify ... done
Successfully installed MarkupSafe-1.1.1 PyJWT-1.7.1 aiohttp-3.6.1 astral-1.10.1 async-timeout-3.0.1 attrs-19.3.0 bcrypt-3.1.7 certifi-2020.6.20 chardet-3.0.4 ciso8601-2.1.3 homeassistant-0.113.2 idna-2.10 jinja2-2.11.2 multidict-4.7.6 python-slugify-4.0.0 pytz-2020.1 pyyaml-5.3.1 requests-2.24.0 ruamel.yaml-0.15.100 text-unidecode-1.3 typing-extensions-3.7.4.2 urllib3-1.25.10 voluptuous-0.11.7 voluptuous-serialize-2.4.0 yarl-1.5.0
WARNING: You are using pip version 19.2.3, however version 20.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
~ # 
~ # ha
halt  hass
~ # hass --help
usage: hass [-h] [--version] [-c path_to_config_dir] [--safe-mode] [--debug] [--open-ui] [--skip-pip] [-v] [--pid-file path_to_pid_file] [--log-rotate-days LOG_ROTATE_DAYS]
            [--log-file LOG_FILE] [--log-no-color] [--runner] [--script ...] [--daemon]

Home Assistant: Observe, Control, Automate.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -c path_to_config_dir, --config path_to_config_dir
                        Directory that contains the Home Assistant configuration
  --safe-mode           Start Home Assistant in safe mode
  --debug               Start Home Assistant in debug mode
  --open-ui             Open the webinterface in a browser
  --skip-pip            Skips pip install of required packages on startup
  -v, --verbose         Enable verbose logging to file.
  --pid-file path_to_pid_file
                        Path to PID file useful for running as daemon
  --log-rotate-days LOG_ROTATE_DAYS
                        Enables daily log rotation and keeps up to the specified days
  --log-file LOG_FILE   Log file to write to. If not set, CONFIG/home-assistant.log is used
  --log-no-color        Disable color logs
  --runner              On restart exit with code 100
  --script ...          Run one of the embedded scripts
  --daemon              Run Home Assistant as daemon
~ # 

 

 

Что вы хотите сказать этим? С установкой HA у меня проблем не было - я об этом писал. 

Мне бы разобраться почему при установке модуля HomeKit Bridge он начинает что-то собирать, в top'e появляется несколько процессов (меня смущает путь /home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include, это нормально?), после чего роутер зависает намертво, после перезагрузки живёт пару минут и виснет снова, причём по ssh я уже попасть не могу.

image.png.65ac4cb1239eeb54c9b9a8ddfdc14bd5.png

Изменено пользователем Nail Alimgulov
Опубликовано
5 минут назад, Nail Alimgulov сказал:

Мне бы разобраться почему при установке модуля HomeKit Bridge он начинает что-то собирать

значит ему "это" нужно

5 минут назад, Nail Alimgulov сказал:

в top'e появляется несколько процессов (меня смущает путь /home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include, это нормально?

см. `/opt/lib/python3.8/config-3.8/Makefile`

6 минут назад, Nail Alimgulov сказал:

после чего роутер зависает намертво, после перезагрузки живёт пару минут и виснет снова

устройство слабовато  + обязателен swap-раздел

Опубликовано
1 час назад, Nail Alimgulov сказал:

Что вы хотите сказать этим?

ничего, мне нужно пройти тот же путь...  или предлагаете устроить сеанс гадания? )))

Опубликовано
7 минут назад, TheBB сказал:

ничего, мне нужно пройти тот же путь...  или предлагаете устроить сеанс гадания? )))

В общем переустановил всё используя debian.

Всё прошло без сучка и задоринки, при добавлении компонента homekit в этот раз роутер всё компилил ~3 часа, ничего не зависло, результатом стало вполне работоспособный мост в родном приложении Дом на яблочных устройствах. Делаю вывод, что с entware скрипт сборки ломается из-за какого-то пакета энтвари.

На форуме есть несколько тем по установке homebridge, вот он точно слишком тяжёл и неповоротлив, с ha даже pairing проходит без проблем.

Я думаю в будущем будет полно желающих попробовать установить лучшую на данный момент платформу для умного дома, поэтому кто захочет пройти мой путь:

выполнить установку debian 10.4, далее установить sudo, ffmpeg, далее по инструкции вдумчиво.

Опубликовано
1 час назад, Nail Alimgulov сказал:

Делаю вывод, что с entware скрипт сборки ломается из-за какого-то пакета энтвари.

Ну-у-у, я не знаю ))) как-то же встало

screen_2020-07-31_20-22_ha.png

Финиш.

1 час назад, Nail Alimgulov сказал:

На форуме есть несколько тем по установке homebridge, вот он точно слишком тяжёл и неповоротлив

Даже есть пакет (в OpenWRT, также где-то "валяется" вариант для Entware)

.

Опубликовано
1 минуту назад, TheBB сказал:

Ну-у-у, я не знаю ))) как-то же встало

screen_2020-07-31_20-22_ha.png

Финиш.

Даже есть пакет (в OpenWRT, также где-то "валяется" вариант для Entware)

.

я два раза пробовал. оба раза при добавлении компонента роутер тупо виснет. своп есть.

Пакет вы имеете в виду чего именно?

Мой сценарий установки с Entware:

opkg install python3 python3-pip gcc pkg-config libopenssl libffi python3-pyopenssl python3-openssl make
pip3 install --upgrade setuptools pip
pip3 install sqlalchemy
pip3 install netifaces
pip3 install python-miio
pip3 install xmltodict
wget -qO- http://bin.entware.net/mipselsf-k3.4/include/include.tar.gz | tar xvz -C /opt/include
source /opt/bin/gcc_env.sh
pip3 install homeassistant

У вас получается всё скомпилировалось как надо?

Опубликовано
12 минуты назад, Nail Alimgulov сказал:

Пакет вы имеете в виду чего именно?

https://github.com/openwrt/packages/blob/master/lang/node-homebridge/Makefile

13 минуты назад, Nail Alimgulov сказал:

Мой сценарий установки с Entware:

ясно-понятно - https://ghostcir.com/s/216.html

23 минуты назад, Nail Alimgulov сказал:

У вас получается всё скомпилировалось как надо?

судя по тому, что нашел TV, скорее всего да, как и надо.

  • 2 недели спустя...
Опубликовано

Добрый день.

Прошу помощи, при установке bcrypt выдает ошибку:

 

pip3 install bcrypt
Collecting bcrypt
  Using cached bcrypt-3.1.7.tar.gz (42 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/bin/python3 /opt/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-_5ch_acc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (171 lines):
  Collecting setuptools>=40.8.0
    Using cached setuptools-49.6.0-py3-none-any.whl (803 kB)
  Collecting wheel
    Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
  Collecting cffi>=1.1
    Using cached cffi-1.14.1.tar.gz (468 kB)
  Collecting pycparser
    Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /opt/tmp/pip-wheel-q9iv2d7v
         cwd: /opt/tmp/pip-install-j0lt5mtt/cffi/
    Complete output (71 lines):
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?

        No working compiler found, or bogus compiler options passed to
        the compiler from Python's standard "distutils" module.  See
        the error messages above.  Likely, the problem is not related
        to CFFI but generic to the setup.py of any Python package that
        tries to compile C code.  (Hints: on OS/X 10.8, for errors about
        -mno-fused-madd see http://stackoverflow.com/questions/22313407/
        Otherwise, see https://wiki.python.org/moin/CompLangPython or
        the IRC channel #python on irc.freenode.net.)

        Trying to continue anyway.  If you are trying to install CFFI from
        a build done in a different context, you can ignore this warning.

    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-mips-3.8
    creating build/lib.linux-mips-3.8/cffi
    copying cffi/model.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/commontypes.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/api.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/lock.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/verifier.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/cparser.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/error.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/recompiler.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/__init__.py -> build/lib.linux-mips-3.8/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-mips-3.8/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-mips-3.8/cffi
    copying cffi/_embedding.h -> build/lib.linux-mips-3.8/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-mips-3.8/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-mips-3.8
    creating build/temp.linux-mips-3.8/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -I/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-8.4.0_glibc-2.27/include -Qunused-arguments -Qunused-arguments -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-mips-3.8/c/_cffi_backend.o
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
    gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  DEPRECATION: Could not build wheels for cffi which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
  Installing collected packages: setuptools, wheel, pycparser, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-0sy_y2eb/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-_5ch_acc/overlay --compile --install-headers /opt/tmp/pip-build-env-_5ch_acc/overlay/include/python3.8/cffi
           cwd: /opt/tmp/pip-install-j0lt5mtt/cffi/
      Complete output (71 lines):
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      Package libffi was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libffi.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libffi' found
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.freenode.net.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-mips-3.8
      creating build/lib.linux-mips-3.8/cffi
      copying cffi/model.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/commontypes.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/api.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/lock.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/verifier.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/cparser.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/error.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/recompiler.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/__init__.py -> build/lib.linux-mips-3.8/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-mips-3.8/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-mips-3.8/cffi
      copying cffi/_embedding.h -> build/lib.linux-mips-3.8/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-mips-3.8/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-mips-3.8
      creating build/temp.linux-mips-3.8/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -I/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-8.4.0_glibc-2.27/include -Qunused-arguments -Qunused-arguments -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-mips-3.8/c/_cffi_backend.o
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
      gcc: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-j0lt5mtt/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-0sy_y2eb/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-_5ch_acc/overlay --compile --install-headers /opt/tmp/pip-build-env-_5ch_acc/overlay/include/python3.8/cffi Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 /opt/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-_5ch_acc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
 

 

 

 

  • 1 месяц спустя...
Опубликовано
В 31.07.2020 в 18:44, Nail Alimgulov сказал:

Я думаю в будущем будет полно желающих попробовать установить лучшую на данный момент платформу для умного дома

Всем добра.

Знаю, что подобные просьбы в большинстве своем игнорируются в данной ветке форума, но все же. Может кто-то описать по командно порядок установки Home Assistant на чистую Entware для абсолютно несведущих?

В центре поддержки Keenetic есть ряд статей по установке пакетов в OPKG, но для Home Assistant они бесполезны. Да и интернет не пестрит инструкциями по установке Home Assistant на наши роутеры.

Буду признателен, и думаю что не только я.

 

Опубликовано
8 minutes ago, BDV said:

Всем добра.

Знаю, что подобные просьбы в большинстве своем игнорируются в данной ветке форума, но все же. Может кто-то описать по командно порядок установки Home Assistant на чистую Entware для абсолютно несведущих?

В центре поддержки Keenetic есть ряд статей по установке пакетов в OPKG, но для Home Assistant они бесполезны. Да и интернет не пестрит инструкциями по установке Home Assistant на наши роутеры.

Буду признателен, и думаю что не только я.

 

Поддерживаю. Сам жду какой-то инфы от ребят 

Опубликовано (изменено)

Пока гуру молчат попробовал написать свой сценарий установки основываясь на информации из этой темы:

01. opkg install python3 python3-pip gcc pkg-config libopenssl libffi python3-pyopenssl python3-openssl make
02. wget -qO- http://bin.entware.net/mipselsf-k3.4/include/include.tar.gz | tar xvz -C /opt/include
03. source /opt/bin/gcc_env.sh
04. cd /opt/lib
05. ln -s libffi.so.7.1.0 libffi.so
06. cd
07. pip3 install --upgrade setuptools
08. /opt/bin/python3 -m pip install --upgrade pip
09. pip3 install whell
10. pip3 install sqlalchemy
11. pip3 install netifaces
12. pip3 install python-miio
13. pip3 install xmltodict
14. pip3 install homeassistant
15. hass

При установке как я понимаю ошибок нет, но при запуске Hass получаю следующие ошибки:

Скрытый текст

~ # hass
Unable to find configuration. Creating default one in /opt/root/.homeassistant
2020-10-20 14:42:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
  File "/opt/lib/python3.8/site-packages/homeassistant/setup.py", line 213, in _async_setup_component result = await task
  File "/opt/lib/python3.8/site-packages/homeassistant/components/http/__init__.py", line 209, in async_setup server = HomeAssistantHTTP(
  File "/opt/lib/python3.8/site-packages/homeassistant/components/http/__init__.py", line 312, in __init__setup_cors(app, cors_origins)
  File "/opt/lib/python3.8/site-packages/homeassistant/components/http/cors.py",line 26, in setup_cors import aiohttp_cors
ModuleNotFoundError: No module named 'aiohttp_cors'
2020-10-20 14:42:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2020-10-20 14:42:25 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for search: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook, alexa
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http, person
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for on boarding: Could not set up all dependencies.
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, http, onboarding, search, system_log, websocket_api
2020-10-20 14:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, http
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: api
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_source. Setup failed for dependencies: http
2020-10-20 14:42:29 ERROR (MainThread) [homeassistant.setup] Setup failed for media_source: Could not set up all dependencies.
2020-10-20 14:42:52 ERROR (MainThread) [homeassistant.setup] Setup failed for updater: Unable to import component: No module named 'distro'
2020-10-20 14:43:53 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: Unable to import component: No module named 'defusedxml'

При повторном запуске:

Скрытый текст

~ # hass
2020-10-20 15:14:43 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=2 from 2020-10-20 12:01:49.051140)
2020-10-20 15:17:43 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package pillow==7.2.0:
2020-10-20 15:17:44 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Requirements for image not found: ['pillow==7.2.0'].
2020-10-20 15:17:44 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-10-20 15:17:44 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-10-20 15:17:45 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: person
2020-10-20 15:17:45 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2020-10-20 15:17:45 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2020-10-20 15:17:45 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-10-20 15:17:50 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: libc.so.0: cannot open shared object file: No such file or directory
Segmentation fault

Что я делаю не так, где ошибка?

Изменено пользователем BDV
Опубликовано
1 час назад, BDV сказал:

Что я делаю не так, где ошибка?

Вот же ошибки:

1 час назад, BDV сказал:

ModuleNotFoundError: No module named 'aiohttp_cors'

1 час назад, BDV сказал:

Unable to install package pillow==7.2.0

 

Опубликовано
22 часа назад, ajs сказал:

Вот же ошибки:

 

Внес коррективы в сценарий установки, теперь он выглядит вот так:

01. opkg install python3 python3-pip gcc pkg-config libopenssl libffi python3-pyopenssl python3-openssl make
02. opkg install libjpeg
03. wget -qO- http://bin.entware.net/mipselsf-k3.4/include/include.tar.gz | tar xvz -C /opt/include
04. source /opt/bin/gcc_env.sh
05. cd /opt/lib
06. ln -s libffi.so.7.1.0 libffi.so
07. cd
08. pip3 install --upgrade setuptools
09. /opt/bin/python3 -m pip install --upgrade pip
10. pip3 install wheel
11. pip3 install aiohttp_cors
12. pip3 install sqlalchemy
13. pip3 install netifaces
14. pip3 install python-miio
15. pip3 install xmltodict
16. pip3 install pillow
17. pip3 install homeassistant
18. hass --open-ui

В процессе установки ошибок нет, но в момент запуска hass --open-ui получаю следующее:

Скрытый текст

~ # hass --open-ui
Unable to find configuration. Creating default one in /opt/root/.homeassistant
2020-10-21 14:52:01 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 1 - moving forward
2020-10-21 14:58:02 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: No module named 'hass_nabucasa'
2020-10-21 14:59:06 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Unable to import component: No module named 'mutagen'
2020-10-21 14:59:35 ERROR (MainThread) [homeassistant.setup] Setup failed for updater: Unable to import component: No module named 'distro'
2020-10-21 15:03:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component frontend
Traceback (most recent call last):
  File "/opt/lib/python3.8/site-packages/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/opt/lib/python3.8/site-packages/homeassistant/components/frontend/__init__.py", line 260, in async_setup
    root_path = _frontend_root(repo_path)
  File "/opt/lib/python3.8/site-packages/homeassistant/components/frontend/__init__.py", line 235, in _frontend_root
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2020-10-21 15:03:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2020-10-21 15:03:58 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2020-10-21 15:03:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2020-10-21 15:03:58 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.

И что с этим делать мне совсем не понятно...

Опубликовано
2 часа назад, BDV сказал:

И что с этим делать мне совсем не понятно...

Ну как бы мое понимание этого по шагам, HA стартует, не находит файла конфигурации, создает по умолчанию (скорее всего там пару строк, типа default_config: и может еще что), но при инициализации секций которые входят в default_config он не находит нужных интеграций hass_nabucasa, mutagen, frontend и т.п. (не установлены). Для проверки можно удалить все с файла конфигурации и запустить HA, должно стартануть.

Ну а потом разбираться почему не все установлено, типа:

2 часа назад, BDV сказал:

ModuleNotFoundError: No module named 'hass_frontend'

 

2 часа назад, BDV сказал:

В процессе установки ошибок нет

Точно нет? ;)

Опубликовано
14 часа назад, ajs сказал:

Точно нет? ;)

Думаю, что да. По крайней мере красных строк точно нет.

При повторном запуске  hass --open-ui получаю уже другие ошибки:

Скрытый текст

~ # hass --open-ui
2020-10-21 16:34:55 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=1 from 2020-10-21 11:48:59.764884)
2020-10-21 16:35:06 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: libc.so.0: cannot open shared object file: No such file or directory
Segmentation fault

Сделал следующее:

cd /opt/lib
ln -s libс-2.27.so libс.so

После чего повторил запуск hass, но без аргументов. При этом UI запустился, но сам сервер находится в бесконечной загрузке.

 

Скрин1.jpg

Скрин2.jpg

Скрин3.jpg

Опубликовано

Он же там пишет что не может загрузить libcrypto.so ... надо с ним тоже что то решить, и так дальше шаг за шагом пока ошибок в логе не будет ...

Опубликовано
1 час назад, ajs сказал:

Он же там пишет что не может загрузить libcrypto.so ... надо с ним тоже что то решить, и так дальше шаг за шагом пока ошибок в логе не будет ...

Я не уверен, что правильно всё делаю, знаний не хватает, да и особо никто помогать не хочет. В первом посту есть ссылки на два источника с потенциальными инструкциями, да и у топик-стартера все завелось без проблем (в 8 посту есть его сценарий), а мой сценарий установки растет с каждым днем. Может у вас есть возможность по командно повторить за мной и подсказать?

Опубликовано

читаем очень внимательно: раз , два и... ...выполняем

а теперь - бонус )))

echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf
opkg update
opkg install python3-home-assistant-frontend
/opt/etc/init.d/S99hass start
Скрытый текст

 


~ # 
~ # echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf 
~ # 
~ # opkg update
Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/keendev
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/ha
~ # 
~ # opkg info homeassistant
Package: homeassistant
Version: 0.116.4-1
Depends: libc, libssp, librt, libpthread, python3-aiohttp, python3-aiohttp-cors, python3-astral, python3-async-timeout, python3-async-upnp-client, python3-attrs, python3-bcrypt, python3-certifi, python3-ciso8601, python3-cryptography, python3-cryptodome, python3-defusedxml, python3-distro, python3-emoji, python3-gtts-token, python3-hass-nabucasa, python3-ifaddr, python3-jinja2, python3-mutagen, python3-netdisco, python3-paho-mqtt, python3-pillow, python3-pip, python3-pyjwt, python3-pymetno, python3-pynacl, python3-pyotp, python3-pyqrcode, python3-pytz, python3-requests, python3-ruamel-yaml, python3-slugify, python3-sqlalchemy, python3-voluptuous-serialize, python3-voluptuous, python3-yaml, python3-yarl, python3-zeroconf
Status: unknown ok not-installed
Section: utils
Architecture: mipsel-3.4
Size: 7398898
Filename: homeassistant_0.116.4-1_mipsel-3.4.ipk
Description: Open source home automation that puts local control and privacy first.
 Powered by a worldwide community of tinkerers and DIY enthusiasts.

~ # 
~ # opkg install python3-home-assistant-frontend
Installing python3-home-assistant-frontend (20201021.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-home-assistant-frontend_20201021.2-1_mipsel-3.4.ipk
Installing python3-base (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-base_3.8.5-2_mipsel-3.4.ipk
Installing python3-light (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-light_3.8.5-2_mipsel-3.4.ipk
Installing python3-attrs (20.1.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-attrs_20.1.0-1_mipsel-3.4.ipk
Installing python3-chardet (3.0.4-4) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-chardet_3.0.4-4_mipsel-3.4.ipk
Installing python3-multidict (4.5.2-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-multidict_4.5.2-2_mipsel-3.4.ipk
Installing python3-asyncio (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-asyncio_3.8.5-2_mipsel-3.4.ipk
Installing python3-async-timeout (3.0.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-async-timeout_3.0.1-2_mipsel-3.4.ipk
Installing python3-email (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-email_3.8.5-2_mipsel-3.4.ipk
Installing python3-urllib (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-urllib_3.8.5-2_mipsel-3.4.ipk
Installing python3-codecs (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-codecs_3.8.5-2_mipsel-3.4.ipk
Installing python3-idna (2.10-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-idna_2.10-1_mipsel-3.4.ipk
Installing python3-yarl (1.4.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-yarl_1.4.2-1_mipsel-3.4.ipk
Installing python3-logging (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-logging_3.8.5-2_mipsel-3.4.ipk
Installing python3-cgi (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-cgi_3.8.5-2_mipsel-3.4.ipk
Installing python3-openssl (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-openssl_3.8.5-2_mipsel-3.4.ipk
Installing python3-aiohttp (3.6.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-aiohttp_3.6.2-1_mipsel-3.4.ipk
Installing python3-aiohttp-cors (0.7.0-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-aiohttp-cors_0.7.0-2_mipsel-3.4.ipk
Installing python3-pytz (2020.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pytz_2020.1-1_mipsel-3.4.ipk
Installing python3-astral (1.10.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-astral_1.10.1-2_mipsel-3.4.ipk
Installing python3-xml (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-xml_3.8.5-2_mipsel-3.4.ipk
Installing python3-defusedxml (0.6.0-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-defusedxml_0.6.0-3_mipsel-3.4.ipk
Installing python3-didl-lite (1.2.5-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-didl-lite_1.2.5-1_mipsel-3.4.ipk
Installing python3-voluptuous (0.12.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-voluptuous_0.12.0-1_mipsel-3.4.ipk
Installing python3-async-upnp-client (0.14.14-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-async-upnp-client_0.14.14-1_mipsel-3.4.ipk
Installing python3-unittest (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-unittest_3.8.5-2_mipsel-3.4.ipk
Installing python3-ncurses (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-ncurses_3.8.5-2_mipsel-3.4.ipk
Installing python3-ctypes (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-ctypes_3.8.5-2_mipsel-3.4.ipk
Installing python3-pydoc (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pydoc_3.8.5-2_mipsel-3.4.ipk
Installing python3-multiprocessing (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-multiprocessing_3.8.5-2_mipsel-3.4.ipk
Installing libgdbm (1.18.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libgdbm_1.18.1-2_mipsel-3.4.ipk
Installing python3-gdbm (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-gdbm_3.8.5-2_mipsel-3.4.ipk
Installing libsqlite3 (3330000-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libsqlite3_3330000-1_mipsel-3.4.ipk
Installing python3-sqlite3 (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-sqlite3_3.8.5-2_mipsel-3.4.ipk
Installing python3-distutils (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-distutils_3.8.5-2_mipsel-3.4.ipk
Installing python3-cgitb (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-cgitb_3.8.5-2_mipsel-3.4.ipk
Installing libdb47 (4.7.25.4.NC-5) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libdb47_4.7.25.4.NC-5_mipsel-3.4.ipk
Installing python3-dbm (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-dbm_3.8.5-2_mipsel-3.4.ipk
Installing python3-lzma (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-lzma_3.8.5-2_mipsel-3.4.ipk
Installing python3-decimal (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-decimal_3.8.5-2_mipsel-3.4.ipk
Installing python3 (3.8.5-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3_3.8.5-2_mipsel-3.4.ipk
Installing python3-ply (3.11-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-ply_3.11-2_mipsel-3.4.ipk
Installing python3-pycparser (2.20-5) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pycparser_2.20-5_mipsel-3.4.ipk
Installing python3-cffi (1.14.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-cffi_1.14.2-1_mipsel-3.4.ipk
Installing python3-six (1.15.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-six_1.15.0-1_mipsel-3.4.ipk
Installing python3-bcrypt (3.1.7-4) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-bcrypt_3.1.7-4_mipsel-3.4.ipk
Installing python3-certifi (2020.6.20-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-certifi_2020.6.20-1_mipsel-3.4.ipk
Installing python3-ciso8601 (2.1.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-ciso8601_2.1.3-1_mipsel-3.4.ipk
Installing python3-cryptography (3.1.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-cryptography_3.1.1-1_mipsel-3.4.ipk
Installing python3-cryptodome (3.9.7-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-cryptodome_3.9.7-3_mipsel-3.4.ipk
Installing python3-distro (1.5.0-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-distro_1.5.0-3_mipsel-3.4.ipk
Installing python3-emoji (0.6.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-emoji_0.6.0-1_mipsel-3.4.ipk
Installing python3-urllib3 (1.25.11-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-urllib3_1.25.11-1_mipsel-3.4.ipk
Installing python3-requests (2.24.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-requests_2.24.0-1_mipsel-3.4.ipk
Installing python3-gtts-token (1.1.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-gtts-token_1.1.3-1_mipsel-3.4.ipk
Installing python3-pyopenssl (19.1.0-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pyopenssl_19.1.0-2_mipsel-3.4.ipk
Installing python3-pkg-resources (47.1.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pkg-resources_47.1.0-1_mipsel-3.4.ipk
Installing python3-setuptools (47.1.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-setuptools_47.1.0-1_mipsel-3.4.ipk
Installing python3-josepy (1.4.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-josepy_1.4.0-1_mipsel-3.4.ipk
Installing python3-pyrfc3339 (1.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pyrfc3339_1.1-1_mipsel-3.4.ipk
Installing python3-requests-toolbelt (0.9.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-requests-toolbelt_0.9.1-1_mipsel-3.4.ipk
Installing python3-acme (1.9.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-acme_1.9.0-1_mipsel-3.4.ipk
Installing python3-atomicwrites (1.4.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-atomicwrites_1.4.0-1_mipsel-3.4.ipk
Installing python3-jmespath (0.9.3-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-jmespath_0.9.3-2_mipsel-3.4.ipk
Installing python3-docutils (0.14-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-docutils_0.14-2_mipsel-3.4.ipk
Installing python3-dateutil (2.8.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-dateutil_2.8.1-2_mipsel-3.4.ipk
Installing python3-botocore (1.19.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-botocore_1.19.3-1_mipsel-3.4.ipk
Installing python3-s3transfer (0.3.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-s3transfer_0.3.3-1_mipsel-3.4.ipk
Installing python3-boto3 (1.16.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-boto3_1.16.3-1_mipsel-3.4.ipk
Installing python3-envs (1.3-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-envs_1.3-1_mipsel-3.4.ipk
Installing python3-ecdsa (0.16.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-ecdsa_0.16.0-1_mipsel-3.4.ipk
Installing python3-pyasn1 (0.4.8-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pyasn1_0.4.8-2_mipsel-3.4.ipk
Installing python3-rsa (4.6-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-rsa_4.6-1_mipsel-3.4.ipk
Installing python3-jose (3.2.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-jose_3.2.0-1_mipsel-3.4.ipk
Installing python3-pycognito (0.1.4-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pycognito_0.1.4-1_mipsel-3.4.ipk
Installing python3-snitun (0.20-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-snitun_0.20-1_mipsel-3.4.ipk
Installing python3-hass-nabucasa (0.37.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-hass-nabucasa_0.37.1-1_mipsel-3.4.ipk
Installing python3-ifaddr (0.1.7-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-ifaddr_0.1.7-1_mipsel-3.4.ipk
Installing python3-markupsafe (1.1.1-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-markupsafe_1.1.1-3_mipsel-3.4.ipk
Installing python3-jinja2 (2.11.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-jinja2_2.11.2-1_mipsel-3.4.ipk
Installing python3-mutagen (1.45.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-mutagen_1.45.1-1_mipsel-3.4.ipk
Installing python3-zeroconf (0.28.6-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-zeroconf_0.28.6-1_mipsel-3.4.ipk
Installing python3-netdisco (2.8.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-netdisco_2.8.2-1_mipsel-3.4.ipk
Installing python3-paho-mqtt (1.5.0-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-paho-mqtt_1.5.0-2_mipsel-3.4.ipk
Installing python3-pillow (7.2.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pillow_7.2.0-1_mipsel-3.4.ipk
Installing python-pip-conf (0.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python-pip-conf_0.1-1_mipsel-3.4.ipk
Installing python3-pip (20.1.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pip_20.1.1-1_mipsel-3.4.ipk
Installing python3-pyjwt (1.7.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-pyjwt_1.7.1-2_mipsel-3.4.ipk
Installing python3-xmltodict (0.12.0-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-xmltodict_0.12.0-2_mipsel-3.4.ipk
Installing python3-pymetno (0.8.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pymetno_0.8.1-1_mipsel-3.4.ipk
Installing libsodium (1.0.18-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libsodium_1.0.18-3_mipsel-3.4.ipk
Installing python3-pynacl (1.4.0-5) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pynacl_1.4.0-5_mipsel-3.4.ipk
Installing python3-pyotp (2.3.0-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pyotp_2.3.0-2_mipsel-3.4.ipk
Installing python3-pypng (0.0.20-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pypng_0.0.20-1_mipsel-3.4.ipk
Installing python3-pyqrcode (1.2.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pyqrcode_1.2.1-1_mipsel-3.4.ipk
Installing python3-ruamel-yaml (0.15.100-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-ruamel-yaml_0.15.100-2_mipsel-3.4.ipk
Installing python3-text-unidecode (1.3-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-text-unidecode_1.3-2_mipsel-3.4.ipk
Installing python3-slugify (4.0.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-slugify_4.0.1-1_mipsel-3.4.ipk
Installing python3-sqlalchemy (1.3.20-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-sqlalchemy_1.3.20-1_mipsel-3.4.ipk
Installing python3-voluptuous-serialize (2.4.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-voluptuous-serialize_2.4.0-1_mipsel-3.4.ipk
Installing libyaml (0.2.5-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libyaml_0.2.5-1_mipsel-3.4.ipk
Installing python3-yaml (5.3.1-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/python3-yaml_5.3.1-2_mipsel-3.4.ipk
Installing homeassistant (0.116.4-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/homeassistant_0.116.4-1_mipsel-3.4.ipk
Configuring python3-base.
Configuring python3-light.
Configuring python3-pyotp.
Configuring python3-unittest.
Configuring python3-ncurses.
Configuring python3-ctypes.
Configuring python3-pydoc.
Configuring python3-logging.
Configuring python3-multiprocessing.
Configuring python3-email.
Configuring python3-urllib.
Configuring libgdbm.
Configuring python3-gdbm.
Configuring libsqlite3.
Configuring python3-sqlite3.
Configuring python3-xml.
Configuring python3-codecs.
Configuring python3-distutils.
Configuring python3-openssl.
Configuring python3-cgi.
Configuring python3-cgitb.
Configuring libdb47.
Configuring python3-dbm.
Configuring python3-asyncio.
Configuring python3-lzma.
Configuring python3-decimal.
Configuring python3.
Configuring python3-jmespath.
Configuring python3-ifaddr.
Configuring python3-zeroconf.
Configuring python3-atomicwrites.
Configuring python3-ply.
Configuring python3-pycparser.
Configuring python3-urllib3.
Configuring python3-docutils.
Configuring python3-six.
Configuring python3-dateutil.
Configuring python3-chardet.
Configuring python3-idna.
Configuring python3-certifi.
Configuring python3-requests.
Configuring python3-botocore.
Configuring python3-s3transfer.
Configuring python3-boto3.
Configuring python3-envs.
Configuring python3-cryptodome.
Configuring python3-ecdsa.
Configuring python3-pyasn1.
Configuring python3-rsa.
Configuring python3-jose.
Configuring python3-pycognito.
Configuring python3-ciso8601.
Configuring python3-emoji.
Configuring python3-defusedxml.
Configuring python3-pkg-resources.
Configuring python3-setuptools.
Configuring python3-text-unidecode.
Configuring python3-slugify.
Configuring python-pip-conf.
Configuring python3-gtts-token.
Configuring python3-pillow.
Configuring libsodium.
Configuring python3-requests-toolbelt.
Configuring python3-cffi.
Configuring python3-cryptography.
Configuring python3-pyopenssl.
Configuring python3-josepy.
Configuring python3-pytz.
Configuring python3-pyrfc3339.
Configuring python3-acme.
Configuring python3-attrs.
Configuring python3-multidict.
Configuring python3-async-timeout.
Configuring python3-yarl.
Configuring python3-aiohttp.
Configuring python3-aiohttp-cors.
Configuring python3-astral.
Configuring python3-didl-lite.
Configuring python3-voluptuous.
Configuring python3-async-upnp-client.
Configuring python3-bcrypt.
Configuring python3-distro.
Configuring python3-snitun.
Configuring python3-hass-nabucasa.
Configuring python3-markupsafe.
Configuring python3-jinja2.
Configuring python3-mutagen.
Configuring python3-netdisco.
Configuring python3-paho-mqtt.
Configuring python3-pip.
Configuring python3-pyjwt.
Configuring python3-xmltodict.
Configuring python3-pymetno.
Configuring python3-pynacl.
Configuring python3-pypng.
Configuring python3-pyqrcode.
Configuring python3-ruamel-yaml.
Configuring python3-sqlalchemy.
Configuring python3-voluptuous-serialize.
Configuring libyaml.
Configuring python3-yaml.
Configuring homeassistant.
Configuring python3-home-assistant-frontend.
~ # 
~ # /opt/etc/init.d/S99hass start
 Starting hass...              done. 
~ # htop
~ # /opt/etc/init.d/S99hass stop
 Checking hass...              alive. 
 Shutting down hass...              done. 
~ # ls -al /opt/var/lib/homeassistant/
.HA_VERSION           .storage/             configuration.yaml    groups.yaml           scenes.yaml           secrets.yaml
.cloud/               automations.yaml      deps/                 home-assistant_v2.db  scripts.yaml          tts/
~ # 

 

 

Опубликовано (изменено)
В 23.10.2020 в 21:27, TheBB сказал:

а теперь - бонус )))

TheBB, спасибо вам за "бонус"!!! 😀 Всё получилось!

Автообнаружение по SSDP работает безупречно, да и другие функции в порядке.

Единственное что еще хотелось бы у вас попросить показать на примере как в python'е добавлять  интеграции (загружать недостающие библиотеки, например такие как ffmpeg). Так как через web-интерфейс это не работает. Я до этого пользовался Home assistant версией для Docker. Главное их отличие, что в версии Docker изначально все библиотеки уже установлены, не зависимо от того нужны они или нет. А тут же ситуация обратная.

Например, я хочу в Home Assistant добавить камеру, для этого я пытаюсь установить интеграцию ONVIF и она зависает. Так же установка любой другой интеграции приводит к зависанию, в журнале сервера появляются ошибки. Скриншоты прикладываю:

Скрытый текст


0.jpg

1.jpg

2.jpg

 

 

Изменено пользователем BDV
Опубликовано
8 часов назад, BDV сказал:

загружать недостающие библиотеки, например такие как ffmpeg

opkg install ffmpeg

 

8 часов назад, BDV сказал:

Например, я хочу в Home Assistant добавить камеру, для этого я пытаюсь установить интеграцию ONVIF и она зависает.

У меня камеры нет, потому ONVIF упала на этапе настройки. Нужно (примерно) следующее:

подправить файл "/opt/lib/python3.8/site-packages/homeassistant/components/onvif/manifest.json" - заменить первый знак "=" на ">", типа

...
  "requirements": [
    "onvif-zeep-async>=0.6.0",
    "WSDiscovery>=2.0.0",
    "zeep[async]>=3.4.0"
  ],
...

удалить каталоги, если успели установиться

rm -rf /opt/var/lib/homeassistant/deps/lib/python3.8/site-packages/zeep*

(пере)установить руками модуль

pip install --upgrade onvif-zeep-async

перезапустить НА (или из web, или SSH)

 

9 часов назад, BDV сказал:

Так же установка любой другой интеграции приводит к зависанию, в журнале сервера появляются ошибки. Скриншоты прикладываю:

Установил нес-ко штук (интеграций), особых проблем не было. Скриншоты - хорошо, а логи - лучше! (На скринах текста не видать)

PS не пользуюсь НА, токмо забавы ради )))

Опубликовано

TheBB, спасибо за помощь, выполнил ваши рекомендации, но модуль onvif-zeep-async не получается установить, получаю ошибку:

Скрытый текст

ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-ecvlwa48/lxml/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-ecvlwa48/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /opt/tmp/pip-pip-egg-info-knqvc9rr
         cwd: /opt/tmp/pip-install-ecvlwa48/lxml/
    Complete output (3 lines):
    Building lxml version 4.6.1.
    Building without Cython.
    Error: Please make sure the libxml2 and libxslt development packages are installed.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Дальше пробовал установить недостающие библиотеки libxml2 and libxslt:

~ # opkg install libxml2 libxslt make
Package libxml2 (2.9.10-1) installed in root is up to date.
Package libxslt (1.1.34-2) installed in root is up to date.
Package make (4.3-1) installed in root is up to date.

Затем повторно pip install --upgrade onvif-zeep-async и все равно выскакивает эта же ошибка.

 

18 минут назад, TheBB сказал:

Установил нес-ко штук (интеграций), особых проблем не было. Скриншоты - хорошо, а логи - лучше! (На скринах текста не видать)

У меня в логах постоянно следующее:

Скрытый текст

 

2020-10-25 19:12:39 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:12:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:12:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:12:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:12:48 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:12:50 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:58 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:58 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:58 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:58 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:13:58 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1

 

А вот логи в момент запуска интеграции ONVIF:

Скрытый текст

 

2020-10-25 19:21:49 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2020-10-25 19:22:16 WARNING (SyncWorker_2) [zeroconf] Error sending through socket 14
Traceback (most recent call last):
File "/opt/lib/python3.8/site-packages/zeroconf/__init__.py", line 2914, in send
OSError: [Errno 161] Required key not available
2020-10-25 19:24:12 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1
2020-10-25 19:26:53 ERROR (SyncWorker_19) [homeassistant.util.package] Unable to install package onvif-zeep-async>=0.6.0: ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-watzum52/lxml/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-watzum52/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /opt/tmp/pip-pip-egg-info-fbuxxico
cwd: /opt/tmp/pip-install-watzum52/lxml/
Complete output (3 lines):
Building lxml version 4.6.1.
Building without Cython.
Error: Please make sure the libxml2 and libxslt development packages are installed.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
2020-10-25 19:26:53 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/opt/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
File "/opt/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
File "/opt/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
File "/opt/lib/python3.8/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
File "/opt/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware
File "/opt/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
File "/opt/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 129, in handle
File "/opt/lib/python3.8/site-packages/homeassistant/components/config/config_entries.py", line 136, in post
File "/opt/lib/python3.8/site-packages/homeassistant/components/http/data_validator.py", line 60, in wrapper
File "/opt/lib/python3.8/site-packages/homeassistant/helpers/data_entry_flow.py", line 69, in post
File "/opt/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 120, in async_init
File "/opt/lib/python3.8/site-packages/homeassistant/config_entries.py", line 527, in async_create_flow
File "/opt/lib/python3.8/site-packages/homeassistant/setup.py", line 343, in async_process_deps_reqs
File "/opt/lib/python3.8/site-packages/homeassistant/requirements.py", line 75, in async_get_integration_with_requirements
File "/opt/lib/python3.8/site-packages/homeassistant/requirements.py", line 132, in async_process_requirements
homeassistant.requirements.RequirementsNotFound: Requirements for onvif not found: ['onvif-zeep-async>=0.6.0'].
2020-10-25 19:27:44 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 0180042bb01b5533d5ce6e4c0f56c2236f9ac63965038ef7ef7634bc7547b1a4 from 127.0.0.1

 

 

Опубликовано
В 23.10.2020 в 13:50, BDV сказал:

Может у вас есть возможность по командно повторить за мной и подсказать?

У меня Home Assistant живет на отдельной железяке, не вижу смысла его в роутер впихивать, поэтому я пас :)

Опубликовано

TheBB, так и не удается мне победить интеграцию ONVIF. Следуя четко Вашим инструкциям, вот что я делаю:

1. opkg install ffmpeg

2. opkg install libxml2-dev python3-lxml

3. nano /opt/lib/python3.8/site-packages/homeassistant/components/onvif/manifest.json

У меня это после правки выглядит вот так:

...
  "requirements": [
    "onvif-zeep-async>=0.6.0",
    "WSDiscovery==2.0.0",
    "zeep[async]==3.4.0"
  ],
...

4. rm -rf /opt/var/lib/homeassistant/deps/lib/python3.8/site-packages/zeep*

5. pip install --upgrade onvif-zeep-async

И вроде бы все здорово, но журнал опять ошибка и соответственно интеграция не запускается:

Скрытый текст

2020-10-26 15:41:31 ERROR (SyncWorker_12) [homeassistant.util.package] Unable to install package WSDiscovery==2.0.0: ERROR: Command errored out with exit status 1:

command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-s3rbk2e8/netifaces/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-s3rbk2e8/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-8ourrbj5/install-record.txt --single-version-externally-managed --prefix '' --user --prefix= --compile --install-headers /opt/var/lib/homeassistant/deps/include/python3.8/netifaces
cwd: /opt/tmp/pip-install-s3rbk2e8/netifaces/
Complete output (16 lines):
running install
running build
running build_ext
checking for getifaddrs...not found.
checking for getnameinfo...not found.
checking for socket IOCTLs...not found.
checking for optional header files...none found.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...none!
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...no.
building 'netifaces' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -I/home/ryzhovau/Entware.mipsel/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/ryzhovau/Entware.mipsel/staging_dir/toolchain-mipsel_mips32r2_gcc-8.4.0_glibc-2.27/include -fPIC -DNETIFACES_VERSION=0.10.9 -I/opt/include/python3.8 -c netifaces.c -o build/temp.linux-mips-3.8/netifaces.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

 

6. Далее pip install --upgrade WSDiscovery, но и тут полнейшая засада:

Скрытый текст

# pip install --upgrade WSDiscovery
Collecting WSDiscovery
  Using cached WSDiscovery-2.0.0-py3-none-any.whl (31 kB)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting netifaces
  Using cached netifaces-0.10.9.tar.gz (28 kB)
Using legacy 'setup.py install' for netifaces, since package 'wheel' is not installed.
Installing collected packages: click, netifaces, WSDiscovery
    Running setup.py install for netifaces ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-zbr2id45/netifaces/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-zbr2id45/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-qytmpg2w/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.8/netifaces
         cwd: /opt/tmp/pip-install-zbr2id45/netifaces/
    Complete output (16 lines):
    running install
    running build
    running build_ext
    checking for getifaddrs...not found.
    checking for getnameinfo...not found.
    checking for socket IOCTLs...not found.
    checking for optional header files...none found.
    checking whether struct sockaddr has a length field...no.
    checking which sockaddr_xxx structs are defined...none!
    checking for routing socket support...no.
    checking for sysctl(CTL_NET...) support...no.
    checking for netlink support...no.
    building 'netifaces' extension
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -pthread -I/home/ryzhovau/Entware.mipsel/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/ryzhovau/Entware.mipsel/staging_dir/toolchain-mipsel_mips32r2_gcc-8.4.0_glibc-2.27/include -fPIC -DNETIFACES_VERSION=0.10.9 -I/opt/include/python3.8 -c netifaces.c -o build/temp.linux-mips-3.8/netifaces.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-zbr2id45/netifaces/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-zbr2id45/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-qytmpg2w/install-record.txt --single-version-externally-managed --compile --install-headers /opt/include/python3.8/netifaces Check the logs for full command output.

TheBB, помогите мне, пожалуйста, довести интеграцию ONVIF до ума.

 

 
 
Опубликовано
2 минуты назад, BDV сказал:

    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

или запускать руками `gcc_env.sh`, или добавить в профиль ( ...comment=92186 )

 

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...

Важная информация

На этом сайте используются файлы cookie. Нажимая "Я принимаю" или продолжая просмотр сайта, вы разрешаете их использование: Политика конфиденциальности.