Jump to content

Recommended Posts

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 которого у меня конечно же нет. Откуда он его взял? Как это можно пофиксить?

Edited by Nail Alimgulov
  • Upvote 1

Share this post


Link to post
Share on other sites

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
~ # 

 

 

Edited by TheBB
add

Share this post


Link to post
Share on other sites
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

Edited by Nail Alimgulov

Share this post


Link to post
Share on other sites
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-раздел

Share this post


Link to post
Share on other sites
1 час назад, Nail Alimgulov сказал:

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

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

Share this post


Link to post
Share on other sites
7 минут назад, TheBB сказал:

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

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

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

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

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

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

Share this post


Link to post
Share on other sites
1 час назад, Nail Alimgulov сказал:

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

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

screen_2020-07-31_20-22_ha.png

Финиш.

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

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

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

.

Share this post


Link to post
Share on other sites
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

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

Share this post


Link to post
Share on other sites
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, скорее всего да, как и надо.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...