Erreur installation antenne : Fatal error from pip prevented installation

Donc dans ce log on voit qu’il y a un problème avec cmake, essayes d’appliquer cette solution:

et ensuite relancer l’installation

Bonjour
j’essaye de suivre cette méthode

sudo apt-get install cmake
installation cmake ok mais relance de l’Installation antenne nok (
même message

installing theengsgateway...
Fatal error from pip prevented installation. Full pip output in file:
/root/.local/state/pipx/log/cmd_2024-02-08_06.39.02_pip_errors.log
pip failed to build package:
TheengsDecoder
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
/tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/TheengsDecoder/_decoder.cpp:2:10: fatal error: Python.h: No such file or directory
Error installing theengsgateway.

étape suivante
sudo python3 -m pip install
image

que manque t il ???

Le log de l’installation de cmake

Le contenu du log de pip

La fin de la commande (elle est écrite dans l’autre post)

désolé pour le log cmake c’est une copie d’écran
Ctrl C sur PuTTY ne marche pas … et je ne connais l’équivalent linux

Le contenu du log de pip
ce fichier /root/.local/state/pipx/log/cmd_2024-02-08_06.17.14_pip_errors.log ?
galère … pas la permission
je suis loger [jeedom/Mjeedom96]
image

La fin de la commande (elle est écrite dans l’autre post)
pas sûr de comprendre , je ne la trouve pas
peux tu me la donner directement ?

Passe besoin de faire control C sur putty !
Tous ce que l’on sélectionne avec la souris est directement mis dans le presse papier

Il suffit donc de sélectionner et ensuite ctrl + v là ou on veut coller.

faire un sudo -i, ré entrer le password et tu seras root ce qui te permettra de ne plus avoir la galère

il fallait faire:
image

tu as fait:

il manque la fin => --upgrade

image
Désolé, pas mieux…

Merci, @anon53349806
Mes log de ce matin de l’installation de l’antenne après sudo apt-get install cmake et redémarrage

cmd_2024-02-08_06.39.02_pip_errors.log

PIP STDOUT
----------
Collecting theengsgateway
  Using cached TheengsGateway-1.3.0-py3-none-any.whl
Collecting bleak>=0.19.0 (from theengsgateway)
  Using cached bleak-0.21.1-py3-none-any.whl.metadata (5.3 kB)
Collecting bluetooth-clocks<1.0 (from theengsgateway)
  Using cached bluetooth_clocks-0.2.0-py3-none-any.whl.metadata (10 kB)
Collecting bluetooth-numbers<2.0,>=1.0 (from theengsgateway)
  Using cached bluetooth_numbers-1.1.1-py3-none-any.whl.metadata (6.6 kB)
Collecting importlib-metadata (from theengsgateway)
  Using cached importlib_metadata-7.0.1-py3-none-any.whl.metadata (4.9 kB)
Collecting paho-mqtt>=1.6.1 (from theengsgateway)
  Using cached paho_mqtt-1.6.1-py3-none-any.whl
Collecting pycryptodomex>=3.18.0 (from theengsgateway)
  Using cached pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.4 kB)
Collecting TheengsDecoder>=1.6.4 (from theengsgateway)
  Using cached TheengsDecoder-1.6.8.tar.gz (296 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting bluetooth-adapters>=0.15.3 (from theengsgateway)
  Using cached bluetooth_adapters-0.17.0-py3-none-any.whl.metadata (5.3 kB)
Collecting async-timeout<5,>=3.0.0 (from bleak>=0.19.0->theengsgateway)
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting dbus-fast<3,>=1.83.0 (from bleak>=0.19.0->theengsgateway)
  Using cached dbus_fast-2.21.1-cp39-cp39-manylinux_2_31_aarch64.whl
Collecting typing-extensions>=4.7.0 (from bleak>=0.19.0->theengsgateway)
  Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Collecting aiohttp>=3.8.1 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiohttp-3.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.4 kB)
Collecting mac-vendor-lookup>=0.1.12 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached mac_vendor_lookup-0.1.12-py3-none-any.whl (350 kB)
Collecting usb-devices>=0.4.5 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached usb_devices-0.4.5-py3-none-any.whl.metadata (5.3 kB)
Collecting zipp>=0.5 (from importlib-metadata->theengsgateway)
  Using cached zipp-3.17.0-py3-none-any.whl.metadata (3.7 kB)
Collecting aiosignal>=1.1.2 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting frozenlist>=1.1.1 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached frozenlist-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached multidict-6.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.2 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached yarl-1.9.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (31 kB)
Collecting aiofiles (from mac-vendor-lookup>=0.1.12->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting idna>=2.0 (from yarl<2.0,>=1.0->aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Using cached bleak-0.21.1-py3-none-any.whl (137 kB)
Using cached bluetooth_adapters-0.17.0-py3-none-any.whl (19 kB)
Using cached bluetooth_clocks-0.2.0-py3-none-any.whl (20 kB)
Using cached bluetooth_numbers-1.1.1-py3-none-any.whl (474 kB)
Using cached pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB)
Using cached importlib_metadata-7.0.1-py3-none-any.whl (23 kB)
Using cached aiohttp-3.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Using cached usb_devices-0.4.5-py3-none-any.whl (5.3 kB)
Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
Using cached frozenlist-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (239 kB)
Using cached multidict-6.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (125 kB)
Using cached yarl-1.9.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (300 kB)
Using cached aiofiles-23.2.1-py3-none-any.whl (15 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Building wheels for collected packages: TheengsDecoder
  Building wheel for TheengsDecoder (pyproject.toml): started
  Building wheel for TheengsDecoder (pyproject.toml): finished with status 'error'
Failed to build TheengsDecoder

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × Building wheel for TheengsDecoder (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [125 lines of output]
      WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
      
      
      --------------------------------------------------------------------------------
      -- Trying 'Ninja' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.
      
      Not searching for unused variables given on the command line.
      
      -- The C compiler identification is GNU 10.2.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is GNU 10.2.1
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done (1.2s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja' generator - success
      --------------------------------------------------------------------------------
      
      Configuring Project
        Working directory:
          /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/_skbuild/linux-aarch64-3.9/cmake-build
        Command:
          /tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1 -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/_skbuild/linux-aarch64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.2 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPython_ROOT_DIR:PATH=/root/.local/share/pipx/venvs/theengsgateway -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython3_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPython3_ROOT_DIR:PATH=/root/.local/share/pipx/venvs/theengsgateway -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.9 -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release
      
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.
      
      Not searching for unused variables given on the command line.
      
      -- The C compiler identification is GNU 10.2.1
      -- The CXX compiler identification is GNU 10.2.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Warning (dev) at /tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package):
        Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
        are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
        the cmake_policy command to set the policy and suppress this warning.
      
      Call Stack (most recent call first):
        CMakeLists.txt:4 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found PythonInterp: /root/.local/share/pipx/venvs/theengsgateway/bin/python (found version "3.9.2")
      CMake Warning (dev) at /tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:248 (find_package):
        Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
        are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
        the cmake_policy command to set the policy and suppress this warning.
      
      Call Stack (most recent call first):
        CMakeLists.txt:4 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found PythonLibs: no-library-required
      _modinit_prefix:PyInit_
      -- Configuring done (1.7s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/_skbuild/linux-aarch64-3.9/cmake-build
      [1/4] Building CXX object CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o
      FAILED: CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o
      /usr/bin/c++ -D_decoder_EXPORTS -I/usr/include/python3.9 -I/tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/src/arduino_json/src -I/tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/src -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o -MF CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o.d -o CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o -c /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/TheengsDecoder/_decoder.cpp
      /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/TheengsDecoder/_decoder.cpp:2:10: fatal error: Python.h: No such file or directory
          2 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      [2/4] Building CXX object CMakeFiles/_decoder.dir/src/decoder.cpp.o
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
          cmkr.make(make_args, install_target=cmake_install_target, env=env)
        File "/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 697, in make
          self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
        File "/tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 742, in make_impl
          raise SKBuildError(msg)
      
      An error occurred while building with CMake.
        Command:
          /tmp/pip-build-env-793b5yeb/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
        Install target:
          install
        Source directory:
          /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1
        Working directory:
          /tmp/pip-install-1jve9eiz/theengsdecoder_515c542634864e0388f9f995d7e4bce1/_skbuild/linux-aarch64-3.9/cmake-build
      Please check the install target is valid and see CMake's output for more information.
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for TheengsDecoder
ERROR: Could not build wheels for TheengsDecoder, which is required to install pyproject.toml-based projects

cmd_2024-02-08_06.39.02.log

   344.5ms (setup:858): 2024-02-08 06:39:02
   345.0ms (setup:859): /usr/local/bin/pipx install TheengsGateway
   345.2ms (setup:860): pipx version is 1.4.3
   345.3ms (setup:861): Default python interpreter is '/usr/bin/python3'
   348.9ms (package_name_from_spec:370): Determined package name: theengsgateway
   349.2ms (package_name_from_spec:371): Package name determined in 0.0s
   350.2ms (run_subprocess:168): running /usr/bin/python3 -m venv --without-pip /root/.local/share/pipx/venvs/theengsgateway
   547.4ms (run_subprocess:190): stdout:
   548.2ms (run_subprocess:192): stderr:
   548.7ms (run_subprocess:193): returncode: 0
   550.1ms (run_subprocess:168): running <checking pip's availability>
   668.4ms (run_subprocess:190): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0xffffae440eb0>, origin='/root/.local/share/pipx/shared/lib/python3.9/site-packages/pip/__init__.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.9/site-packages/pip'])
   669.1ms (run_subprocess:193): returncode: 0
   669.9ms (run_subprocess:168): running /root/.local/share/pipx/venvs/theengsgateway/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
   739.5ms (run_subprocess:190): stdout: /root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages
   739.9ms (run_subprocess:193): returncode: 0
   740.6ms (run_subprocess:168): running /root/.local/share/pipx/shared/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))
   804.6ms (run_subprocess:190): stdout: /root/.local/share/pipx/shared/lib/python3.9/site-packages
   805.3ms (run_subprocess:193): returncode: 0
   807.2ms (run_subprocess:168): running /root/.local/share/pipx/venvs/theengsgateway/bin/python --version
   818.0ms (run_subprocess:190): stdout: Python 3.9.2
   818.7ms (run_subprocess:192): stderr:
   819.3ms (run_subprocess:193): returncode: 0
   821.1ms (_parsed_package_to_package_or_url:137): cleaned package spec: theengsgateway
   822.3ms (run_subprocess:168): running /root/.local/share/pipx/venvs/theengsgateway/bin/python -m pip --no-input install theengsgateway
 41884.2ms (run_subprocess:193): returncode: 1
 41884.9ms (subprocess_post_check_handle_pip_error:327): '/root/.local/share/pipx/venvs/theengsgateway/bin/python -m pip --no-input install theengsgateway' failed
 41886.2ms (subprocess_post_check_handle_pip_error:342): Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-02-08_06.39.02_pip_errors.log
 41898.7ms (analyze_pip_output:298): pip failed to build package:
    TheengsDecoder
 41899.9ms (rmdir:55): removing directory /root/.local/share/pipx/venvs/theengsgateway
 41903.2ms (cli:924): PipxError: Error installing theengsgateway.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pipx/main.py", line 921, in cli
    return run_pipx_command(parsed_pipx_args)
  File "/usr/local/lib/python3.9/dist-packages/pipx/main.py", line 219, in run_pipx_command
    return commands.install(
  File "/usr/local/lib/python3.9/dist-packages/pipx/commands/install.py", line 91, in install
    venv.install_package(
  File "/usr/local/lib/python3.9/dist-packages/pipx/venv.py", line 254, in install_package
    raise PipxError(f"Error installing {full_package_description(package_name, package_or_url)}.")
pipx.util.PipxError: Error installing theengsgateway.
 41906.3ms (cli:932): pipx finished.

Ben tant qu’il y a des erreurs ca ne fonctionnera pas

Bonjour @Mips @anon53349806

J’ai changé de méthode
Je suis parti sur mon Atlas avec « image usine » en debian 11.8
Sur laquelle j’ai restauré une sauvegarde de l’application de ma Smart en 4.3.22

Avant d’installer Theengs Gateway (tgw)
J’ai supprimé TOUS les équipements BLEA et le plugin BLEA
(c’est pour un test, je ne suis en encore à vouloir migrer mon installation sur l’Atlas)

/!\ Mais comme MQTT Manager (MQTT2) et un broker MQTT étaient installés sur la Smart :
ils sont venus avec la restauration de la sauvegarde de la Smart
J’ai Arrêté / Désinstallé puis Réinstallé / Démarré le Broker Mosquitto (vous verrez pourquoi ci-dessous)
J’ai vérifié et l’état du broker est OK
image
image

Puis j’ai installé le plugin Theengs Gateway (tgw) avec pour Authentification les informations déjà configurée par MQTT Manager (MQTT2)

J’ai ajouté un équipement « Antenne » « dans » le plugin Theengs Gateway
En Mode : Local et l’Adaptateur : Défaut (hci0) et le Niveau de log : Debug
Puis Sauvegarder et Installer l’antenne
et cette fois l’installation de l’antenne est bien passée :grin:
image

J’ai Configurer le service et (re)démarrer, mais cela ne passe pas :sob: (log ci-dessous)
image

et le plus étrange est cette @ [host] => 192.168.1.100

Est ce l’adresse du Broker Mosquitto recherché par l’antenne (malgré le Mode Local de l’antenne) ???
De plus cette @ IP 192.168.1.100 est celle de ma Smart, celle de l’Atlas (et de son broker) étant 192.168.1.69

Comment cette @ est elle arrivée la ?
A aucun moment dans l’installation du plugin ou de l’antenne on ne donne l’adresse du broker, du moins qd l’installation est locale ?? ou alors elle est venue avec la sauvegarde de la Smart :thinking:
Mais, rappel : j’ai Arrêté / Désinstallé puis Réinstallé / Démarré le Broker Mosquitto (AVANT d’installer le plugin et l’antenne), l’adresse est écrite ailleurs??

Et comment changer cette adresse ? en 192.168.1.69 celle de l’Atlas ?

Merci

tgw_1199.txt

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas #2        |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff9b279e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.100",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}


## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas         |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas #2        |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |


tgw_1199_update.txt

[2024-02-11 07:34:23] *************************************
[2024-02-11 07:34:23] *   Launch install of dependencies  *
[2024-02-11 07:34:23] *************************************
[2024-02-11 07:34:23] Reading package lists...
[2024-02-11 07:34:24] Building dependency tree...
[2024-02-11 07:34:24] Reading state information...
[2024-02-11 07:34:26] curl is already the newest version (7.74.0-1.3+deb11u11).
[2024-02-11 07:34:26] 0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   199  100   199    0     0  18090      0 --:--:-- --:--:-- --:--:-- 18090
[2024-02-11 07:34:26] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[2024-02-11 07:34:26] <html><head>
[2024-02-11 07:34:26] <title>403 Forbidden</title>
[2024-02-11 07:34:26] </head><body>
[2024-02-11 07:34:26] <h1>Forbidden</h1>
[2024-02-11 07:34:26] <p>You don't have permission to access this resource.</p>
[2024-02-11 07:34:26] </body></html>
[2024-02-11 07:34:26] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2024-02-11 07:34:26] Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
[2024-02-11 07:34:26] Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
[2024-02-11 07:34:26] Hit:4 http://security.debian.org bullseye-security InRelease
[2024-02-11 07:34:26] Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
[2024-02-11 07:34:27] Hit:6 http://armbian.systemonachip.net/apt buster InRelease
[2024-02-11 07:34:28] Hit:7 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
[2024-02-11 07:34:32] Reading package lists...
[2024-02-11 07:34:32] ***************************************
[2024-02-11 07:34:32] *  Install dependencies, venv & pipx  *
[2024-02-11 07:34:32] ***************************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   199  100   199    0     0  49750      0 --:--:-- --:--:-- --:--:-- 49750
[2024-02-11 07:34:32] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[2024-02-11 07:34:32] <html><head>
[2024-02-11 07:34:32] <title>403 Forbidden</title>
[2024-02-11 07:34:32] </head><body>
[2024-02-11 07:34:32] <h1>Forbidden</h1>
[2024-02-11 07:34:32] <p>You don't have permission to access this resource.</p>
[2024-02-11 07:34:32] </body></html>
[2024-02-11 07:34:33] Reading package lists...
[2024-02-11 07:34:34] Building dependency tree...
[2024-02-11 07:34:34] Reading state information...
[2024-02-11 07:34:35] logrotate is already the newest version (3.18.0-2+deb11u2).
[2024-02-11 07:34:35] python3-pip is already the newest version (20.3.4-4+deb11u1).
[2024-02-11 07:34:35] python3 is already the newest version (3.9.2-3).
[2024-02-11 07:34:35] python3-venv is already the newest version (3.9.2-3).
[2024-02-11 07:34:35] 0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 45 not upgraded.
Need to get 1037 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 bluez arm64 5.55-3.1+deb11u1 [1037 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 1037 kB in 0s (12.3 MB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 65063 files and directories currently installed.)
Preparing to unpack .../bluez_5.55-3.1+deb11u1_arm64.deb ...
Unpacking bluez (5.55-3.1+deb11u1) over (5.55-3.1+deb11u1) ...
Setting up bluez (5.55-3.1+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.28-0+deb11u1) ...
[2024-02-11 07:35:08] Version debian:11
[2024-02-11 07:35:08] Install pipx via pip
[2024-02-11 07:35:10] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.4.3)
[2024-02-11 07:35:10] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.2.2)
[2024-02-11 07:35:10] Requirement already satisfied: packaging>=20 in /usr/local/lib/python3.9/dist-packages (from pipx) (23.2)
[2024-02-11 07:35:10] Requirement already satisfied: platformdirs>=2.1 in /usr/local/lib/python3.9/dist-packages (from pipx) (4.2.0)
[2024-02-11 07:35:10] Requirement already satisfied: tomli in /usr/local/lib/python3.9/dist-packages (from pipx) (2.0.1)
[2024-02-11 07:35:10] Requirement already satisfied: userpath!=1.9.0,>=1.6 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2024-02-11 07:35:10] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath!=1.9.0,>=1.6->pipx) (8.1.7)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[2024-02-11 07:35:12] /root/.local/bin has been been added to PATH, but you need to open a new
[2024-02-11 07:35:12] terminal or re-login for this PATH change to take effect.
[2024-02-11 07:35:12] 
[2024-02-11 07:35:12] You will need to open a new terminal or re-login for the PATH changes to take
[2024-02-11 07:35:12] effect.
[2024-02-11 07:35:12] 
[2024-02-11 07:35:12] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2024-02-11 07:35:12] ****************************
[2024-02-11 07:35:12] *  Install TheengsGateway  *
[2024-02-11 07:35:12] ****************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   199  100   199    0     0  49750      0 --:--:-- --:--:-- --:--:-- 49750
[2024-02-11 07:35:12] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[2024-02-11 07:35:12] <html><head>
[2024-02-11 07:35:12] <title>403 Forbidden</title>
[2024-02-11 07:35:12] </head><body>
[2024-02-11 07:35:12] <h1>Forbidden</h1>
[2024-02-11 07:35:12] <p>You don't have permission to access this resource.</p>
[2024-02-11 07:35:12] </body></html>
creating virtual environment...
installing theengsgateway...
⚠️  Note: '/root/.local/bin' is not on your PATH environment variable. These
    apps will not be globally accessible until your PATH is updated. Run `pipx
    ensurepath` to automatically add it, or manually modify your PATH in your
    shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
[2024-02-11 07:40:42] installed package theengsgateway 1.3.0, installed using Python 3.9.2
[2024-02-11 07:40:42] These apps are now globally available
[2024-02-11 07:40:42] - TheengsGateway
[2024-02-11 07:40:42] ***************************
[2024-02-11 07:40:42] *      Install ended      *
[2024-02-11 07:40:42] ***************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   199  100   199    0     0  39800      0 --:--:-- --:--:-- --:--:-- 39800
[2024-02-11 07:40:42] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[2024-02-11 07:40:42] <html><head>
[2024-02-11 07:40:42] <title>403 Forbidden</title>
[2024-02-11 07:40:42] </head><body>
[2024-02-11 07:40:42] <h1>Forbidden</h1>
[2024-02-11 07:40:42] <p>You don't have permission to access this resource.</p>
[2024-02-11 07:40:42] </body></html>

Cette adresse est celle fournie par mqtt2 et/ou celle de ta config reseau interne

Que dis la page santé jeedom?

Si tu as restauré un backup de la smart tu dois modifier certaines configs sur l’atlas, notamment l’adresse ip interne.

Donc ton atlas a la même clé d’installation que la Smart
image
Pas bien pour la distinguer sur le market !

Y a des chances que la config réseaux soit pareil !

Il faudrait déjà faire en sorte que les 2 boxes soient bien distinctes coté market
Que chacune aie sa réservation IP sur le DHCP
Que la conf réseau jeedom soit ok

1 « J'aime »


les 2 plugins NOK sont Theengs Gateway (tgw) et Google Cast (googlecast) un autre pb de migration…

J’ai changé l’IP interne

Sur le Market il y a bien 2 adresses
image

Avec Configurer le service et redémarrer j’ai la bonne adresse [host]

Mais le status : Hors ligne
image

Nouveau log
tgw_1199.txt

Exception ignored in: <function Client.__del__ at 0xffff84f84e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}

## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff86107e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}

## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff9e496e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}

## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'

Désinstallation puis Réinstallation de l’antenne : même problème

TypeError: init() missing 1 required positional argument: ‹ callback_api_version ›
AttributeError: ‹ Client › object has no attribute ‹ _sock ›


| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffffac87fe50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
INFO:BLEGateway:Starting BLE scan
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}


## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff84f8ee50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
INFO:BLEGateway:Starting BLE scan
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}


## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffffb9948e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}


## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff834b1e50>
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
    self._reset_sockets()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
    self._sock_close()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
    if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics

## Package Versions

| Name               | Value  |
|--------------------|--------|
| Theengs Gateway    | 1.3.0  |
| Theengs Decoder    | 1.6.8  |
| Bleak              | 0.21.1 |
| Bluetooth Clocks   | 0.2.0  |
| Bluetooth Numbers  | 1.1.1  |
| Paho MQTT          | 2.0.0  |
| Bluetooth Adapters | 0.17.0 |

## Python

| Name           | Value                                                   |
|----------------|---------------------------------------------------------|
| Version        | 3.9.2                                                   |
| Implementation | CPython                                                 |
| Compiler       | GCC 10.2.1 20210110                                     |
| Executable     | /root/.local/share/pipx/venvs/theengsgateway/bin/python |

## Operating System

| Name         | Value                                             |
|--------------|---------------------------------------------------|
| System       | Linux                                             |
| Release      | 5.15.93-rockchip64                                |
| Version      | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64                                           |

## Configuration

File: /root/theengsgw.conf

{
    "adapter": "hci0",
    "bindkeys": {},
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 5,
    "discovery": 1,
    "discovery_device_name": "Antenne Bluetooth",
    "discovery_filter": [
        "IBEACON",
        "GAEN",
        "MS-CDP",
        "APPLE_CONT",
        "APPLE_CONTAT"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "hass_discovery": 1,
    "host": "192.168.1.69",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "tgw/1199/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TGW_1199/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TGW_1199/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tracker_timeout": 120,
    "user": "***"
}


## Bluetooth adapters

Default adapter: hci0

### hci0

| Name         | Value               |
|--------------|---------------------|
| address      | 5C:F3:70:XX:XX:XX   |
| sw_version   | JeedomAtlas #1      |
| hw_version   | usb:v1D6Bp0246d0537 |
| passive_scan | False               |
| manufacturer | Broadcom Corp       |
| product      | BCM20702A0          |
| vendor_id    | 0b05                |
| product_id   | 17cb                |

### hci1

| Name         | Value                 |
|--------------|-----------------------|
| address      | B8:13:32:XX:XX:XX     |
| sw_version   | JeedomAtlas           |
| hw_version   | usb:v1D6Bp0246d0537   |
| passive_scan | False                 |
| manufacturer | AMPAK Technology,Inc. |
| product      | None                  |
| vendor_id    | None                  |
| product_id   | None                  |

Traceback (most recent call last):
  File "/root/.local/bin/TheengsGateway", line 4, in <module>
    main()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 55, in main
    run(configuration, config_path)
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
    gw.connect_mqtt()
  File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
    self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'

Est ce que tu peux essayer de mettre paho-mqtt en 1.6.1 ?

Autre chose au cas ou cmake soit le pb !!
image

Pas mieux
image

Toujours les mêmes msg dans le log tgw_1199.txt
TypeError: init() missing 1 required positional argument: ‹ callback_api_version ›
AttributeError: ‹ Client › object has no attribute ‹ _sock ›

Comment je fais cela, stp ?

pip uninstall paho-mqtt
pip install paho-mqtt==1.6.1
jeedom@JeedomAtlas:~$ pip uninstall paho-mqtt
Found existing installation: paho-mqtt 2.0.0
Uninstalling paho-mqtt-2.0.0:
  Would remove:
    /usr/local/lib/python3.9/dist-packages/paho/*
    /usr/local/lib/python3.9/dist-packages/paho_mqtt-2.0.0.dist-info/*
Proceed (Y/n)? y
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/shutil.py", line 806, in move
    os.rename(src, real_dst)
OSError: [Errno 18] Lien physique inter-périphérique invalide: '/usr/local/lib/python3.9/dist-packages/paho/' ->                                                    '/tmp/pip-uninstall-js_dg3ny'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrap                                                   per
    status = run_func(*args)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/commands/uninstall.py", line 105, in run
    uninstall_pathset = req.uninstall(
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/req/req_install.py", line 727, in uninstall
    uninstalled_pathset.remove(auto_confirm, verbose)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/req/req_uninstall.py", line 380, in remove
    moved.stash(path)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/req/req_uninstall.py", line 271, in stash
    renames(path, new_path)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/misc.py", line 358, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.9/shutil.py", line 818, in move
    rmtree(src)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission non accordée: 'reasoncodes.py'
jeedom@JeedomAtlas:~$

jeedom@JeedomAtlas:~$ pip install paho-mqtt==1.6.1
Defaulting to user installation because normal site-packages is not writeable
Collecting paho-mqtt==1.6.1
  Downloading paho-mqtt-1.6.1.tar.gz (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.4/99.4 kB 2.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: paho-mqtt
  Building wheel for paho-mqtt (setup.py) ... done
  Created wheel for paho-mqtt: filename=paho_mqtt-1.6.1-py3-none-any.whl size=62120 sha256=6d839f1be783f012a3b340bedc6997524a2d4547e3b8c91ef8f1103c23cd6ed5
  Stored in directory: /home/jeedom/.cache/pip/wheels/0f/90/29/db29bb8ddc98ec5f2363b959130c9ddbcf5cfdb4a00b6184dd
Successfully built paho-mqtt
Installing collected packages: paho-mqtt
Successfully installed paho-mqtt-1.6.1
jeedom@JeedomAtlas:~$

Installer l’antenne
image

Configurer le service et redémarrer
image

Pas mieux
Tout ceci donne le sentiment d’une grande maitrise…

Essaye en sudo:

sudo pip uninstall paho-mqtt
sudo pip install paho-mqtt==1.6.1

Que veux tu dire ?

Theengs Gateway a été mis à jour pour fonctionner avec paho-mqtt 2.0.0, et il contient d’autres ajouts.

Pour que vous puissiez faire

pip install --upgrade TheengsGateway
et aussie
pip install --upgrade TheengsDecoder

pour obtenir

TheengsDecoder     1.7.0
TheengsGateway     1.4.0