Witam. Były jakieś poprawki bo mi po:
apt update
apt upgrade
dpkg --configure -a
poszły aktualizacje i nie sypie błędami, dpkg bo w czasie aktualizacji pyta o reinstalacje pakietu i jak ma się zachować (ja dałem y)
było to na czystą bramkę po pełnym resecie aplikacji
Oczywiście podmieniamy pliki psutil po upgrade mamy wersję 5.9.2
@SebiCo dzięki za rozkminę
jak tylko wyjdzie psutil w wersji 5.9.3 to wydamy poprawkę,
osoby które mają problem po aktualizacji niech wykonają pełny reset aplikacji lub zainstalują na bramce psutil wg opisu @SebiCo i @Sebastian
kiedy można się spodziewać aktualizacji oraz jak naprawić pm2 bo co nie wpisze mam odmowę
~ $ pm2 logs
Aborted
~ $ pm2 plus
Aborted
~ $ pm2 restart ais
Aborted
A apt update oraz apt upgrade działa ?
chyba nie do końca działa jak powinno
~ $ apt update
Err:1 https://packages-cf.termux.dev/apt/termux-main stable InRelease
522 [IP: 188.114.97.13 443]
Reading package lists... Done
E: Failed to fetch https://packages-cf.termux.dev/apt/termux-main/dists/stable/InRelease 522 [IP: 188.114.97.13 443]
E: The repository 'https://packages-cf.termux.dev/apt/termux-main stable InRelease' is no longer signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible causes: unstable or tampered Internet connection, wrong sources.list, outdated keyring or host is down currently.
N: Please note that all hosting problems or other serious issues we announce on our social media pages.
N: Use termux-change-repo for switching to a mirror.
~ $ apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
~ $ dpkg --configure -a
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
nodejs
~ $
Miałem coś takiego i nie umiałem zainstalować nodejs, więc zrobiłem reset aplikacji. I na świeżym systemie apt update , apt upgrade (podmiana plików psutil) aktualizacja i ponownie apt … i poszło tylko strona z automatyzacjami się zmieniła, poprzednia była dla mnie ładniejsza
Reset aplikacji jest chyba dobry na każdy problem w AIS , troche to dla mnie niezrozumiałe i “przerażające”. Od bardzo długiego czasu używam HA na RPi3 i nigdy nie było potrzeby, przy żadnym update’cie, robić resetu HA albo instalowania od zera i wgrywania kopii konfigracji. Może dlatego nadal nie potrafię przekonać się do tej bramki a byłem już tak bliski kupna AIS PRO1 ale “pewne są tylko zmiany” dlatego pozostaje czekać na rozwój sytuacji
.
Witajcie,
Postanowiłem zacząć wszystko od nowa i zresetowałem wszystko. Zapisałem sobie konfiguracje i dodaje wszystko manualnie już po nowemu (miałem trochę nakombinowane, dlatego manualnie robię od nowa). Dzięki za super instrukcję zaczynając od wipe android, przejście na Termux i kończąc na kanale ALFA. Wszystko ładnie śmiga z wyjątkiem poprzedniej konfiguracji zigbee. Niestety urządzenia nie dodały się do AIS, po przywróceniu konfiguracji z kopii. Parowanie urządzeń na nowo działa jak należy. Urządzenia do jakich mam dostęp mogę sparować na nowo, ale czy istnieje możliwość dodania urządzeń po przez modyfikację konfiguracji (chciałbym uniknąć rozbierania włączników, aby dostać się do ZBMINI)?
Ogólnie jak się nie da, to na nowo wyjmę włączniki i dodam wszystko manualnie.
obecna konfiguracja
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost
serial:
port: /dev/ttyACM0
adapter: deconz
frontend:
port: 8099
advanced:
log_level: info
log_output:
- console
channel: 11
devices:
'0x00124b00239df2b6':
friendly_name: czujnik_lazienka_duza
poprzednia konfiguracja
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost
serial:
adapter: deconz
port: /dev/ttyACM0
frontend:
port: 8099
advanced:
log_level: info
log_output:
- console
channel: 11
devices:
'0x00124b0023446c2f':
friendly_name: Kotlownia
'0x00124b0022ff70ad':
friendly_name: WiatrolapWej
'0x847127fffe24e716':
friendly_name: swiatloTaras
'0xa4c138f6c1e201cd':
friendly_name: salonSwith
'0x847127fffe281737':
friendly_name: home_workroom
'0x847127fffe95f410':
friendly_name: Schody
'0x00124b00239df374':
friendly_name: wiatrołap
'0x5c0272fffedacf93':
friendly_name: kaloryfer Sypialnia
groups:
'1':
friendly_name: salon
Urzadzenia końcowe Zigbee maja zapisane w sobie kanał Zigbee, na którym zostały wczesniej sparowane i klucz Zigbee. Te dwa parametry muszą być takie same na koordynatorze i w konfiguracji Z2M. Jezeli zmienisz teraz te dwa parametry te nowo sparowane urzadzenia Zigbee będziesz musiał oczywiscie parować od nowa.
Dzięki, wszystko jasne.
U mnie wciąż to samo mimo iż nie przewróciłem jeszcze z kopi na świeżym systemie więc to nie rozwiązuje problemu z pm2 na termux
Po pełnym resecie miałeś ais 10.0 czy 8.7 bo jak 10 to po kisielu nodjes nie chce się zainstalować
raczej 10.0 bo przed restartem apki miałem 10.3 i przywróciłem z kopi i mam 10.0 mimo iż przed wszystkim zrobiłem kopie mając ha 10.3
edit a po przywróceniu z kopi znów mam te problemy co na początku mimo aktualizacji bramki i nawet próba reinstalacji psutils i numpy kończy się błędami mimo iż wcześniej bez problemu dało się tego dokonać więc znów nie potrzebnie robiłem format aplikacji
więc karuzela znów się kreci bo błędy sa nawet po czystej instalacji oraz nawet karty sd nie widzi że jest podłączona z historią czujników itp więc jest gorzej niż było więc zamiast ten zabieg pomoc przysporzył więcej problemów mimo posiadania kopii konfiguracji to i nawet tunel do bramki się rozkraczyl
dla zainteresowanych tak u mnie kończy się próba wykonania tego na bramce po czystej instalacji i przywróceniu z kopi
$ pip uninstall psutil
Found existing installation: psutil 5.9.1
Uninstalling psutil-5.9.1:
Would remove:
/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil-5.9.1.dist-info/*
/data/data/com.termux/files/usr/lib/python3.10/site-packages/psutil/*
Proceed (Y/n)? y
Successfully uninstalled psutil-5.9.1
~ $ pip install psutil
Collecting psutil
Using cached psutil-5.9.2-cp310-cp310-linux_armv8l.whl
Installing collected packages: psutil
Successfully installed psutil-5.9.2
~ $ pip uninstall numpy
WARNING: Skipping numpy as it is not installed.
~ $ pip install numpy
Collecting numpy
Using cached numpy-1.23.4.tar.gz (10.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [202 lines of output]
Running from numpy source directory.
setup.py:86: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/_common.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_mt19937.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/_sfc64.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/mtrand.pyx
Cythonizing sources
INFO: blas_opt_info:
INFO: blas_armpl_info:
INFO: customize UnixCCompiler
INFO: libraries armpl_lp64_mp not found in ['/data/data/com.termux/files/usr/lib']
INFO: NOT AVAILABLE
INFO:
INFO: blas_mkl_info:
INFO: libraries mkl_rt not found in ['/data/data/com.termux/files/usr/lib']
INFO: NOT AVAILABLE
INFO:
INFO: blis_info:
INFO: libraries blis not found in ['/data/data/com.termux/files/usr/lib']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_info:
INFO: C compiler: arm-linux-androideabi-clang -mfloat-abi=softfp -mfpu=vfpv3-d16 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -fPIC
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux/files
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux/files/usr
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux/files/usr/tmp
creating /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux/files/usr/tmp/tmpmqwxfbud
INFO: compile options: '-c'
INFO: arm-linux-androideabi-clang: /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/source.c
INFO: arm-linux-androideabi-clang /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/data/data/com.termux/files/usr/tmp/tmpmqwxfbud/source.o -L/data/data/com.termux/files/usr/lib -lopenblas -o /data/data/com.termux/files/usr/tmp/tmpmqwxfbud/a.out
INFO: FOUND:
INFO: libraries = ['openblas', 'openblas']
INFO: library_dirs = ['/data/data/com.termux/files/usr/lib']
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None)]
INFO:
INFO: FOUND:
INFO: libraries = ['openblas', 'openblas']
INFO: library_dirs = ['/data/data/com.termux/files/usr/lib']
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None)]
INFO:
non-existing path in 'numpy/distutils': 'site.cfg'
INFO: lapack_opt_info:
INFO: lapack_armpl_info:
INFO: libraries armpl_lp64_mp not found in ['/data/data/com.termux/files/usr/lib']
INFO: NOT AVAILABLE
INFO:
INFO: lapack_mkl_info:
INFO: libraries mkl_rt not found in ['/data/data/com.termux/files/usr/lib']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_lapack_info:
INFO: C compiler: arm-linux-androideabi-clang -mfloat-abi=softfp -mfpu=vfpv3-d16 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -fPIC
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux/files
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux/files/usr
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux/files/usr/tmp
creating /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux/files/usr/tmp/tmp7q37sosq
INFO: compile options: '-c'
INFO: arm-linux-androideabi-clang: /data/data/com.termux/files/usr/tmp/tmp7q37sosq/source.c
INFO: arm-linux-androideabi-clang /data/data/com.termux/files/usr/tmp/tmp7q37sosq/data/data/com.termux/files/usr/tmp/tmp7q37sosq/source.o -L/data/data/com.termux/files/usr/lib -lopenblas -o /data/data/com.termux/files/usr/tmp/tmp7q37sosq/a.out
INFO: FOUND:
INFO: libraries = ['openblas', 'openblas']
INFO: library_dirs = ['/data/data/com.termux/files/usr/lib']
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None)]
INFO:
INFO: FOUND:
INFO: libraries = ['openblas', 'openblas']
INFO: library_dirs = ['/data/data/com.termux/files/usr/lib']
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None)]
INFO:
Warning: attempted relative import with no known parent package
/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
INFO: build_src
INFO: building py_modules sources
creating build
creating build/src.linux-armv8l-3.10
creating build/src.linux-armv8l-3.10/numpy
creating build/src.linux-armv8l-3.10/numpy/distutils
INFO: building library "npymath" sources
WARN: Could not locate executable armflang
WARN: Could not locate executable gfortran
WARN: Could not locate executable f95
WARN: Could not locate executable ifort
WARN: Could not locate executable ifc
WARN: Could not locate executable lf95
WARN: Could not locate executable pgfortran
WARN: Could not locate executable nvfortran
WARN: Could not locate executable f90
WARN: Could not locate executable f77
WARN: Could not locate executable fort
WARN: Could not locate executable efort
WARN: Could not locate executable efc
WARN: Could not locate executable g77
WARN: Could not locate executable g95
WARN: Could not locate executable pathf95
WARN: Could not locate executable nagfor
WARN: Could not locate executable frt
WARN: don't know how to compile Fortran code on platform 'posix'
creating build/src.linux-armv8l-3.10/numpy/core
creating build/src.linux-armv8l-3.10/numpy/core/src
creating build/src.linux-armv8l-3.10/numpy/core/src/npymath
INFO: conv_template:> build/src.linux-armv8l-3.10/numpy/core/src/npymath/npy_math_internal.h
INFO: adding 'build/src.linux-armv8l-3.10/numpy/core/src/npymath' to include_dirs.
INFO: conv_template:> build/src.linux-armv8l-3.10/numpy/core/src/npymath/ieee754.c
INFO: conv_template:> build/src.linux-armv8l-3.10/numpy/core/src/npymath/npy_math_complex.c
INFO: None - nothing done with h_files = ['build/src.linux-armv8l-3.10/numpy/core/src/npymath/npy_math_internal.h']
INFO: building library "npyrandom" sources
INFO: building extension "numpy.core._multiarray_tests" sources
creating build/src.linux-armv8l-3.10/numpy/core/src/multiarray
INFO: conv_template:> build/src.linux-armv8l-3.10/numpy/core/src/multiarray/_multiarray_tests.c
INFO: building extension "numpy.core._multiarray_umath" sources
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 494, in <module>
setup_package()
File "setup.py", line 486, in setup_package
setup(**metadata)
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
dist.run_commands()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/command/build.py", line 62, in run
old_build.run(self)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-jquv5_we/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/command/build_src.py", line 161, in build_sources
self.build_extension_sources(ext)
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
sources = self.generate_sources(sources, ext)
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/core/setup.py", line 513, in generate_config_h
check_math_capabilities(config_cmd, ext, moredefs, mathlibs)
File "/data/data/com.termux/files/usr/tmp/pip-install-9rmkps5b/numpy_17d588064b5a43959ba7a6bfe127eccd/numpy/core/setup.py", line 176, in check_math_capabilities
raise SystemError("One of the required function to build numpy is not"
SystemError: One of the required function to build numpy is not available (the list is ['sin', 'cos', 'tan', 'sinh', 'cosh', 'tanh', 'fabs', 'floor', 'ceil', 'sqrt', 'log10', 'log', 'exp', 'asin', 'acos', 'atan', 'fmod', 'modf', 'frexp', 'ldexp']).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
~ $
więc problem być może leży gdzie indziej a aktualizacja z konsoli wygląda tak
~ $ curl -L https://raw.githubusercontent.com/sviete/AIS-utils/master/releases/alfa.sh -o ~/AIS/alfa.sh
chmod +x ~/AIS/alfa.sh
cd ~/AIS
./alfa.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7354 100 7354 0 0 18400 0 --:--:-- --:--:-- --:--:-- 18431
START instalacji wersji AIS ALFA 22.08.20
Hit:1 https://termux.librehat.com/apt/termux-main stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 756 100 756 0 0 1095 0 --:--:-- --:--:-- --:--:-- 1097
No mirror or mirror group selected. You might want to select one by running 'termux-change-repo'
Checking availability of current mirror:
[*] https://termux.librehat.com/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
w3m is already the newest version (0.5.3.20190105-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
nodejs
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
No mirror or mirror group selected. You might want to select one by running 'termux-change-repo'
Checking availability of current mirror:
[*] https://termux.librehat.com/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
neofetch is already the newest version (7.1.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
nodejs
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
No mirror or mirror group selected. You might want to select one by running 'termux-change-repo'
Checking availability of current mirror:
[*] https://termux.librehat.com/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python-numpy is already the newest version (1.23.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
nodejs
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
⣴⣿⣿⣆ u0_a44@localhost
⣿⣿⣿⣿⣿⣿ ----------------
⣿⣿⣿⣿⣿⣿ OS: Android 7.1.2 armv8l
⣿⣿⣿⣿⣿⣿ ⣴⣿⣿⣆ Host: Amlogic AI-Speaker.com
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ Kernel: 3.14.29
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⣴⣿⣿⣆ Uptime: 33 mins
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ Packages: 182 (dpkg), 1 (pkg)
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ Shell: bash 5.2.2
Terminal: /dev/pts/2
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ CPU: Amlogic (4) @ 1.200GHz
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ Memory: 652MiB / 959MiB
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿ ⠻⣿⣿⠏
⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿ ⠻⣿⣿⠏
⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿
⠻⣿⣿⠏
Unknown command: 'up' (run 'pkg help' for usage information)
Aktualizacja AIS z wersji 22.08.20
VERSION TEST OK
Pobieram AIS ...
ok##O=-# # ############################################################################################################################################################################################ 100.0%
Rozpakowuje AIS ...
ok
7-Zip [32] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=utf8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
Scanning the drive for archives:
1 file, 66600328 bytes (64 MiB)
Extracting archive: /data/data/com.termux/files/home/AIS/alfa_wheelhouse.tar.7z
--
Path = /data/data/com.termux/files/home/AIS/alfa_wheelhouse.tar.7z
Type = 7z
Physical Size = 66600328
Headers Size = 1532
Method = LZMA2:24
Solid = +
Blocks = 1
Everything is Ok
Folders: 1
Files: 66
Size: 74358469
Compressed: 66600328
Instaluje AIS ...
okLooking in links: wheels
Requirement already satisfied: aiohttp==3.8.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 3)) (3.8.1)
Requirement already satisfied: astral==2.2 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 4)) (2.2)
Requirement already satisfied: async_timeout==4.0.2 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 5)) (4.0.2)
Requirement already satisfied: attrs==21.2.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 6)) (21.2.0)
Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 7)) (1.4.1)
Requirement already satisfied: awesomeversion==22.9.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 8)) (22.9.0)
Requirement already satisfied: bcrypt==3.1.7 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 9)) (3.1.7)
Requirement already satisfied: certifi>=2021.5.30 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 10)) (2022.9.24)
Requirement already satisfied: ciso8601==2.2.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 11)) (2.2.0)
Requirement already satisfied: httpx==0.23.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 12)) (0.23.0)
Requirement already satisfied: home-assistant-bluetooth==1.3.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 13)) (1.3.0)
Requirement already satisfied: ifaddr==0.1.7 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 14)) (0.1.7)
Requirement already satisfied: jinja2==3.1.2 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 15)) (3.1.2)
Requirement already satisfied: lru-dict==1.1.8 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 16)) (1.1.8)
Requirement already satisfied: PyJWT==2.5.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 17)) (2.5.0)
Requirement already satisfied: cryptography==38.0.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 18)) (38.0.1)
Requirement already satisfied: orjson==3.7.11 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 19)) (3.7.11)
Requirement already satisfied: pip>=21.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 20)) (22.2.2)
Requirement already satisfied: python-slugify==4.0.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 21)) (4.0.1)
Requirement already satisfied: pyyaml==6.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 22)) (6.0)
Requirement already satisfied: requests==2.28.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 23)) (2.28.1)
Requirement already satisfied: typing-extensions<5.0,>=4.4.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 24)) (4.4.0)
Requirement already satisfied: voluptuous==0.13.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 25)) (0.13.1)
Requirement already satisfied: voluptuous-serialize==2.5.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 26)) (2.5.0)
Requirement already satisfied: yarl==1.8.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 27)) (1.8.1)
Requirement already satisfied: ais-dom-frontend==20221010.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 29)) (20221010.0)
Requirement already satisfied: aisapi==0.1.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 30)) (0.1.1)
Requirement already satisfied: tzdata in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 31)) (2022.4)
Requirement already satisfied: ais-dom==2022.10.3 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from -r wheels/requirements.txt (line 33)) (2022.10.3)
Requirement already satisfied: aiosignal>=1.1.2 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from aiohttp==3.8.1->-r wheels/requirements.txt (line 3)) (1.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from aiohttp==3.8.1->-r wheels/requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from aiohttp==3.8.1->-r wheels/requirements.txt (line 3)) (2.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from aiohttp==3.8.1->-r wheels/requirements.txt (line 3)) (6.0.2)
Requirement already satisfied: pytz in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from astral==2.2->-r wheels/requirements.txt (line 4)) (2022.1)
Requirement already satisfied: six>=1.4.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from bcrypt==3.1.7->-r wheels/requirements.txt (line 9)) (1.16.0)
Requirement already satisfied: cffi>=1.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from bcrypt==3.1.7->-r wheels/requirements.txt (line 9)) (1.15.1)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from httpx==0.23.0->-r wheels/requirements.txt (line 12)) (1.5.0)
Requirement already satisfied: sniffio in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from httpx==0.23.0->-r wheels/requirements.txt (line 12)) (1.2.0)
Requirement already satisfied: httpcore<0.16.0,>=0.15.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from httpx==0.23.0->-r wheels/requirements.txt (line 12)) (0.15.0)
Requirement already satisfied: bleak>=0.14.3 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from home-assistant-bluetooth==1.3.0->-r wheels/requirements.txt (line 13)) (0.18.1)
Requirement already satisfied: MarkupSafe>=2.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from jinja2==3.1.2->-r wheels/requirements.txt (line 15)) (2.1.1)
Requirement already satisfied: text-unidecode>=1.3 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from python-slugify==4.0.1->-r wheels/requirements.txt (line 21)) (1.3)
Requirement already satisfied: idna<4,>=2.5 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from requests==2.28.1->-r wheels/requirements.txt (line 23)) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from requests==2.28.1->-r wheels/requirements.txt (line 23)) (1.26.11)
Requirement already satisfied: dbus-fast<2.0.0,>=1.4.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from bleak>=0.14.3->home-assistant-bluetooth==1.3.0->-r wheels/requirements.txt (line 13)) (1.24.0)
Requirement already satisfied: pycparser in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from cffi>=1.1->bcrypt==3.1.7->-r wheels/requirements.txt (line 9)) (2.21)
Requirement already satisfied: anyio==3.* in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->-r wheels/requirements.txt (line 12)) (3.6.1)
Requirement already satisfied: h11<0.13,>=0.11 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->-r wheels/requirements.txt (line 12)) (0.12.0)
ZIGBEE "version": "1.28.0",
Zigbee OK...
OK. Instalacja trwała 54 sekund
ok ANDROID versionName=4.0.1
./alfa.sh: line 112: [: !=: unary operator expected
Android OK...
Restartuje usługę ais ...
ok./alfa.sh: line 128: 16270 Aborted pm2 restart ais
~/AIS $
Mi się wydaje że nodjes jest tu winny. Może ktoś wie jak sobie poradzić z nodjes. Skoro numpy nie jest zainstalowane to go nie instaluj , tylko jak masz psutil -5.9.2 to podmień pliki na podane wyżej. (sprawdź czy nodjes masz zainstalowane). Na mojej testowej bramce pomimo błędu instalacji nodjes wszystko sprawia wrażenie że chodzi !
w wersji 10.3 nie musisz kombinować z psutil bo tam jest domyślnie zainstalowana 5.9.1 która nie generowała błędów więc tu za dużo niepotrzebnie kombinujesz.
A jeśli błędy zaczynają się sypać po przywróceniu kopi zapasowej to znaczy, że tam masz coś przekombinowane i musisz szukać problemu w swoim środowisku.
tylko ciekawe co? jak przed wykonaniem pełnego resetu aplikacji działało prawie wszystko poza pm2 a po dokonaniu tego procesu i przywróceniu z kopi już nie działa 3/4 i sa identyczne objawy jak przy pierwszym zainstalowaniu ha 10.0b1 czyli wyświetla ze sa nieznane usługi oraz pozostałą litanię to trochę dziwne
edit mimo udanego “siłowego” zainstalowania z konsoli pip install --force-reinstall psutil==5.9.2
oraz MATHLIB="m" pip install numpy
to wciąż mam błędy w ha a nawet to nie pomaga
~ $ apt update && apt upgrade
Hit:1 https://termux.librehat.com/apt/termux-main stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nodejs (18.10.0) ...
Aborted
dpkg: error processing package nodejs (--configure):
installed nodejs package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
nodejs
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
~ $
nawet po po tym restarcie su -c "reboot now"
występują te błędy mimo ręcznej podmiance tych binarek psutil
oraz zauważyłem że to wszystko mam teraz niedostępne
bo niby
Ta encja nie jest już dostarczana przez systemmonitor. Jeśli encja nie jest już używana, usuń ją w ustawieniach.
a także nadal nie mam dostępu przy pomocy tunelu od bramki i nadal są te błędy po restarcie bramkiZobacz tutaj → psutil==5.9.1 · sviete/AIS-home-assistant@632fde5 (github.com)
W wersji 10.3 jest celowo zaniżony psutil do 5.9.1 żeby nie walił błędami, więc nie kombinuj z instalacja 5.9.2 bo i tak po restarcie systemmonitor i ais_ai_service wymusi 5.9.1.
Proponuje przywrócić bramkę do domyślnych, zaktualizować do 2022.10.3 i zobaczyć czy będzie ok, oczywiście bez przywracania backupu i najlepiej w tym czasie w ogóle nie dotykaj konsoli.
Jeśli w tej sytuacji będą błędy to daj loga.
W tym problem ze nie działa pm2 aby dać logi więc dlatego te wszystkie kombinację robię aby powrócić możliwość logów z konsoli
edit: oraz naprawić owy błąd wynikły z aktualizacji październikowej z waszym komponentem ?
bo pojawia się po każdym restarcie (siłowym bo przez pm2 się nie da od wprowadzenia termuxa)