Soucis avec beta MyModbus du 03/12

Salut @Michel_F

Je n’avais pas vu ce post :

J’ai donc installé la beta du 03/12 en vain → retour arrière vers 28/11.
Je ne touche plus à rien pour l’instant… Ci-dessous le log d’installation :

@+

[edit] je suis encore sous Debian 10.

-------------------------------------------------------------------------------------------
logs mymodbus_packages
-------------------------------------------------------------------------------------------
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_mymodbus
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/mymodbus/ressources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/mymodbus/ressources/post-install.sh
********************************************************
*           Nettoyage de l'ancienne version            *
********************************************************
Sat Dec  2 22:23:34 CET 2023
********************************************************
*            Installation de pyenv                     *
********************************************************
Sat Dec  2 22:23:34 CET 2023
****  Configuration de pyenv...
****  Suppression des anciennes versions de pyenv...
********************************************************
*    Installation de python 3.11.6 (dure longtemps)    *
********************************************************
Sat Dec  2 22:23:34 CET 2023
**** Mise à jour de pyenv
fatal: not a git repository (or any of the parent directories): .git
**** Mise à jour de pyenv terminée, installation de python 3.11.6
python-build: definition not found: 3.11.6
See all available versions with `pyenv install --list'.
If the version you need is missing, try upgrading pyenv.
********************************************************
*      Configuration de pyenv avec python 3.11.6       *
********************************************************
Sat Dec  2 22:23:35 CET 2023
/var/www/html/core/class/../../plugins/mymodbus/ressources/post-install.sh: 166: cd: can't cd to ressources/mymodbusd
pyenv: version `3.11.6' not installed
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (23.2.1)
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl.metadata
Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (68.0.0)
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 28.0 MB/s eta 0:00:00
DEPRECATION: reportbug 7.5.3-deb10u1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of reportbug or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: pip
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python3 -m pip install --upgrade pip
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
Collecting requests
Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (3.4)
Collecting pyserial
Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 4.7 MB/s eta 0:00:00
Requirement already satisfied: pyudev in /usr/lib/python3/dist-packages (0.21.0)
Collecting pyudev
Downloading pyudev-0.24.1-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.9/62.9 kB 41.4 MB/s eta 0:00:00
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.7/dist-packages (from requests) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests) (2.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests) (2018.8.24)
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 27.5 MB/s eta 0:00:00
DEPRECATION: reportbug 7.5.3-deb10u1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of reportbug or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: pyserial, requests, pyudev
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python3 -m pip install --upgrade pip
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
ERROR: Ignored the following versions that require a different python version: 3.0.0 Requires-Python >=3.8.0; 3.0.0.dev4 Requires-Python >=3.8.0; 3.0.0.dev5 Requires-Python >=3.8.0; 3.0.0rc1 Requires-Python >=3.8.0; 3.0.1 Requires-Python >=3.8.0; 3.0.2 Requires-Python >=3.8.0; 3.1.0 Requires-Python >=3.8.0; 3.1.1 Requires-Python >=3.8.0; 3.1.2 Requires-Python >=3.8.0; 3.1.3 Requires-Python >=3.8.0; 3.2.0 Requires-Python >=3.8.0; 3.2.1 Requires-Python >=3.8.0; 3.2.2 Requires-Python >=3.8.0; 3.3.0 Requires-Python >=3.8.0; 3.3.1 Requires-Python >=3.8.0; 3.3.2 Requires-Python >=3.8.0; 3.4.0 Requires-Python >=3.8.0; 3.4.1 Requires-Python >=3.8.0; 3.5.0 Requires-Python >=3.8.0; 3.5.1 Requires-Python >=3.8.0; 3.5.2 Requires-Python >=3.8.0; 3.5.3 Requires-Python >=3.8.0; 3.5.4 Requires-Python >=3.8.0
ERROR: Could not find a version that satisfies the requirement pymodbus==3.2.2 (from versions: 0.9.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0rc1, 1.3.0rc2, 1.3.1, 1.3.2, 1.4.0rc3, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 2.0.0, 2.0.1, 2.1.0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc1, 2.3.0, 2.4.0rc1, 2.4.0, 2.5.0rc1, 2.5.0rc2, 2.5.0, 2.5.1rc1, 2.5.1, 2.5.2, 2.5.3rc1, 2.5.3, 3.0.0.dev2, 3.0.0.dev3)
ERROR: No matching distribution found for pymodbus==3.2.2
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python3 -m pip install --upgrade pip
********************************************************
*           Installation terminée                      *
********************************************************
Sat Dec  2 22:23:37 CET 2023
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mymodbus
+ rm /tmp/jeedom_install_in_progress_mymodbus
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Salut @dvb,

j’ai fait mes essais sous Debian 10, ce n’est pas de là que vient le problème.

Chez moi le log est comme ça :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_mymodbus
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/mymodbus/ressources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/mymodbus/ressources/post-install.sh
********************************************************
*           Nettoyage de l'ancienne version            *
********************************************************
Sat Dec  2 16:23:21 CET 2023
********************************************************
*            Installation de pyenv                     *
********************************************************
Sat Dec  2 16:23:21 CET 2023
****  Configuration de pyenv...
****  Suppression des anciennes versions de pyenv...
pyenv: 3.9.16 uninstalled
********************************************************
*    Installation de python 3.11.6 (dure longtemps)    *
********************************************************
Sat Dec  2 16:23:21 CET 2023
**** Mise à jour de pyenv
HEAD is now at 4ef81b5 Add Miniforge3-22.11.1-4 (#2642)
Skipping repository plugins/pyenv-doctor/
Skipping repository plugins/pyenv-installer/
Skipping repository plugins/pyenv-update/
Skipping repository plugins/pyenv-virtualenv/
Removing shims/
Removing versions/
From https://github.com/pyenv/pyenv
   4ef81b5..3e1b4e0  master     -> origin/master
 * [new tag]         2.3.30     -> 2.3.30
 * [new tag]         v2.3.16    -> v2.3.16
 * [new tag]         v2.3.17    -> v2.3.17
 * [new tag]         v2.3.18    -> v2.3.18
 * [new tag]         v2.3.19    -> v2.3.19
 * [new tag]         v2.3.20    -> v2.3.20
 * [new tag]         v2.3.21    -> v2.3.21
 * [new tag]         v2.3.22    -> v2.3.22
 * [new tag]         v2.3.23    -> v2.3.23
 * [new tag]         v2.3.24    -> v2.3.24
 * [new tag]         v2.3.25    -> v2.3.25
 * [new tag]         v2.3.26    -> v2.3.26
 * [new tag]         v2.3.27    -> v2.3.27
 * [new tag]         v2.3.28    -> v2.3.28
 * [new tag]         v2.3.29    -> v2.3.29
 * [new tag]         v2.3.31    -> v2.3.31
 * [new tag]         v2.3.32    -> v2.3.32
 * [new tag]         v2.3.33    -> v2.3.33
Updating 4ef81b5..3e1b4e0
Fast-forward
 .github/workflows/macos_build.yml                  |   2 +-
 .github/workflows/modified_scripts_build.yml       |   5 +-
 .github/workflows/ubuntu_build.yml                 |   2 +-
 CHANGELOG.md                                       | 111 ++++++++
 CONTRIBUTING.md                                    |   4 +-
 README.md                                          |  67 +++--
 libexec/pyenv                                      |   2 +-
 libexec/pyenv---version                            |   2 +-
 libexec/pyenv-hooks                                |   2 +-
 libexec/pyenv-init                                 |  15 +-
 libexec/pyenv-latest                               |   2 +-
 libexec/pyenv-versions                             |   4 +-
 man/man1/pyenv.1                                   |  11 +-
 plugins/.gitignore                                 |   1 +
 plugins/python-build/README.md                     |   4 +-
 plugins/python-build/bin/python-build              |  65 ++++-
 plugins/python-build/scripts/add_miniconda.py      |  28 +-
 plugins/python-build/share/python-build/2.7.18     |   6 +-
 plugins/python-build/share/python-build/3.10.11    |   9 +
 plugins/python-build/share/python-build/3.10.12    |   9 +
 plugins/python-build/share/python-build/3.10.13    |   9 +
 .../share/python-build/{3.12.0a6 => 3.11.3}        |   5 +-
 plugins/python-build/share/python-build/3.11.4     |  10 +
 plugins/python-build/share/python-build/3.11.5     |  10 +
 plugins/python-build/share/python-build/3.11.6     |  10 +
 plugins/python-build/share/python-build/3.12-dev   |   6 +-
 plugins/python-build/share/python-build/3.12.0     |   9 +
 plugins/python-build/share/python-build/3.13-dev   |   7 +
 plugins/python-build/share/python-build/3.13.0a2   |   9 +
 plugins/python-build/share/python-build/3.7.17     |   9 +
 plugins/python-build/share/python-build/3.8.17     |  12 +
 plugins/python-build/share/python-build/3.8.18     |  12 +
 plugins/python-build/share/python-build/3.9.17     |  12 +
 plugins/python-build/share/python-build/3.9.18     |  12 +
 .../share/python-build/anaconda3-2023.03           |  28 ++
 .../share/python-build/anaconda3-2023.03-0         |  28 ++
 .../share/python-build/anaconda3-2023.03-1         |  28 ++
 .../share/python-build/anaconda3-2023.07-0         |  28 ++
 .../share/python-build/anaconda3-2023.07-1         |  28 ++
 .../share/python-build/anaconda3-2023.07-2         |  28 ++
 .../share/python-build/anaconda3-2023.09-0         |  28 ++
 .../share/python-build/cinder-3.10-dev             |  43 +++
 .../python-build/share/python-build/cinder-3.8-dev |  60 ++--
 .../python-build/share/python-build/graalpy-23.0.0 |  54 ++++
 .../python-build/share/python-build/graalpy-23.1.0 |  63 +++++
 .../share/python-build/graalpy-community-23.1.0    |  54 ++++
 .../share/python-build/miniconda3-3.10-23.10.0-1   |  28 ++
 .../share/python-build/miniconda3-3.10-23.3.1-0    |  28 ++
 .../share/python-build/miniconda3-3.10-23.5.0-3    |  28 ++
 .../share/python-build/miniconda3-3.10-23.5.1-0    |  28 ++
 .../share/python-build/miniconda3-3.10-23.5.2-0    |  28 ++
 .../share/python-build/miniconda3-3.10-23.9.0-0    |  28 ++
 .../share/python-build/miniconda3-3.11-23.10.0-1   |  28 ++
 .../share/python-build/miniconda3-3.11-23.5.0-3    |  28 ++
 .../share/python-build/miniconda3-3.11-23.5.1-0    |  28 ++
 .../share/python-build/miniconda3-3.11-23.5.2-0    |  28 ++
 .../share/python-build/miniconda3-3.11-23.9.0-0    |  28 ++
 .../share/python-build/miniconda3-3.8-23.10.0-1    |  28 ++
 .../share/python-build/miniconda3-3.8-23.3.1-0     |  28 ++
 .../share/python-build/miniconda3-3.8-23.5.0-3     |  28 ++
 .../share/python-build/miniconda3-3.8-23.5.1-0     |  28 ++
 .../share/python-build/miniconda3-3.8-23.5.2-0     |  28 ++
 .../share/python-build/miniconda3-3.8-23.9.0-0     |  28 ++
 .../share/python-build/miniconda3-3.9-23.10.0-1    |  28 ++
 .../share/python-build/miniconda3-3.9-23.3.1-0     |  28 ++
 .../share/python-build/miniconda3-3.9-23.5.0-3     |  28 ++
 .../share/python-build/miniconda3-3.9-23.5.1-0     |  28 ++
 .../share/python-build/miniconda3-3.9-23.5.2-0     |  28 ++
 .../share/python-build/miniconda3-3.9-23.9.0-0     |  28 ++
 .../share/python-build/miniforge3-23.3.1-1         |  25 ++
 ...upport-building-on-macOS-without-usr-incl.patch |  20 +-
 ...void-error-when-opening-header-with-non-U.patch |  28 ++
 ...-and-system-libffi-patches-for-arm64-macO.patch | 310 +++++++++++++++++++++
 ...00-fix-_decimal-for-arm64-Mac-OS-GH-21228.patch |  37 +++
 ...void-error-when-opening-header-with-non-U.patch |  30 ++
 .../Cinder-3.10-dev/001-disable-werror.patch       |  30 ++
 .../Cinder-3.8-dev/001-disable-werror.patch        |  30 ++
 .../python-build/share/python-build/pypy2.7-7.3.12 |  81 ++++++
 .../share/python-build/pypy2.7-7.3.12-src          |  14 +
 .../python-build/share/python-build/pypy2.7-7.3.13 |  81 ++++++
 .../share/python-build/pypy2.7-7.3.13-src          |  14 +
 .../share/python-build/pypy3.10-7.3.12             |  81 ++++++
 .../share/python-build/pypy3.10-7.3.12-src         |  14 +
 .../share/python-build/pypy3.10-7.3.13             |  81 ++++++
 .../share/python-build/pypy3.10-7.3.13-src         |  14 +
 .../python-build/share/python-build/pypy3.9-7.3.12 |  81 ++++++
 .../share/python-build/pypy3.9-7.3.12-src          |  14 +
 .../python-build/share/python-build/pypy3.9-7.3.13 |  81 ++++++
 .../share/python-build/pypy3.9-7.3.13-src          |  14 +
 plugins/python-build/test/build.bats               | 129 ++++++---
 plugins/python-build/test/compiler.bats            |   2 +-
 plugins/python-build/test/pyenv_ext.bats           |  62 ++++-
 pyenv.d/rehash/conda.bash                          |   2 +-
 test/versions.bats                                 |   9 +-
 94 files changed, 2733 insertions(+), 148 deletions(-)
 create mode 100644 plugins/python-build/share/python-build/3.10.11
 create mode 100644 plugins/python-build/share/python-build/3.10.12
 create mode 100644 plugins/python-build/share/python-build/3.10.13
 rename plugins/python-build/share/python-build/{3.12.0a6 => 3.11.3} (51%)
 create mode 100644 plugins/python-build/share/python-build/3.11.4
 create mode 100644 plugins/python-build/share/python-build/3.11.5
 create mode 100644 plugins/python-build/share/python-build/3.11.6
 create mode 100644 plugins/python-build/share/python-build/3.12.0
 create mode 100644 plugins/python-build/share/python-build/3.13-dev
 create mode 100644 plugins/python-build/share/python-build/3.13.0a2
 create mode 100644 plugins/python-build/share/python-build/3.7.17
 create mode 100644 plugins/python-build/share/python-build/3.8.17
 create mode 100644 plugins/python-build/share/python-build/3.8.18
 create mode 100644 plugins/python-build/share/python-build/3.9.17
 create mode 100644 plugins/python-build/share/python-build/3.9.18
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.03
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.03-0
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.03-1
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.07-0
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.07-1
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.07-2
 create mode 100644 plugins/python-build/share/python-build/anaconda3-2023.09-0
 create mode 100644 plugins/python-build/share/python-build/cinder-3.10-dev
 create mode 100644 plugins/python-build/share/python-build/graalpy-23.0.0
 create mode 100644 plugins/python-build/share/python-build/graalpy-23.1.0
 create mode 100644 plugins/python-build/share/python-build/graalpy-community-23.1.0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.10.0-1
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.3.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.5.0-3
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.5.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.5.2-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.10-23.9.0-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.11-23.10.0-1
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.11-23.5.0-3
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.11-23.5.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.11-23.5.2-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.11-23.9.0-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.10.0-1
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.3.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.5.0-3
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.5.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.5.2-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.8-23.9.0-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.10.0-1
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.3.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.5.0-3
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.5.1-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.5.2-0
 create mode 100644 plugins/python-build/share/python-build/miniconda3-3.9-23.9.0-0
 create mode 100644 plugins/python-build/share/python-build/miniforge3-23.3.1-1
 create mode 100644 plugins/python-build/share/python-build/patches/3.5.10/Python-3.5.10/0009-bpo-42351-Avoid-error-when-opening-header-with-non-U.patch
 create mode 100644 plugins/python-build/share/python-build/patches/3.7.17/Python-3.7.17/0001-Port-ctypes-and-system-libffi-patches-for-arm64-macO.patch
 create mode 100644 plugins/python-build/share/python-build/patches/3.7.17/Python-3.7.17/0002-bpo-41100-fix-_decimal-for-arm64-Mac-OS-GH-21228.patch
 create mode 100644 plugins/python-build/share/python-build/patches/3.7.17/Python-3.7.17/0003-bpo-42351-Avoid-error-when-opening-header-with-non-U.patch
 create mode 100644 plugins/python-build/share/python-build/patches/cinder-3.10-dev/Cinder-3.10-dev/001-disable-werror.patch
 create mode 100644 plugins/python-build/share/python-build/patches/cinder-3.8-dev/Cinder-3.8-dev/001-disable-werror.patch
 create mode 100644 plugins/python-build/share/python-build/pypy2.7-7.3.12
 create mode 100644 plugins/python-build/share/python-build/pypy2.7-7.3.12-src
 create mode 100644 plugins/python-build/share/python-build/pypy2.7-7.3.13
 create mode 100644 plugins/python-build/share/python-build/pypy2.7-7.3.13-src
 create mode 100644 plugins/python-build/share/python-build/pypy3.10-7.3.12
 create mode 100644 plugins/python-build/share/python-build/pypy3.10-7.3.12-src
 create mode 100644 plugins/python-build/share/python-build/pypy3.10-7.3.13
 create mode 100644 plugins/python-build/share/python-build/pypy3.10-7.3.13-src
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.12
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.12-src
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.13
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.13-src
/var/www/html/plugins/mymodbus
**** Mise à jour de pyenv terminée, installation de python 3.11.6
Downloading Python-3.11.6.tar.xz...
-> https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tar.xz
Installing Python-3.11.6...
Installed Python-3.11.6 to /var/www/html/plugins/mymodbus/ressources/_pyenv/versions/3.11.6
********************************************************
*      Configuration de pyenv avec python 3.11.6       *
********************************************************
Sat Dec  2 16:30:07 CET 2023
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that director
Requirement already satisfied: pip in /var/www/html/plugins/mymodbus/ressources/_pyenv/versions/3.11.6/lib/python3.11/site-packages (23.2.1)
Collecting pip
  Obtaining dependency information for pip from https://files.pythonhosted.org/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl.metadata
  Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: setuptools in /var/www/html/plugins/mymodbus/ressources/_pyenv/versions/3.11.6/lib/python3.11/site-packages (65.5.0)
Collecting setuptools
  Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/bb/e1/ed2dd0850446b8697ad28d118df885ad04140c64ace06c4bd559f7c8a94f/setuptools-69.0.2-py3-none-any.whl
  Downloading setuptools-69.0.2-py3-none-any.whl.metadata (6.3 kB)
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 24.5 MB/s eta 0:00:00
Downloading setuptools-69.0.2-py3-none-any.whl (819 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.5/819.5 kB 157.5 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
  Attempting uninstall: pip
    Found existing installation: pip 23.2.1
    Uninstalling pip-23.2.1:
      Successfully uninstalled pip-23.2.1
Successfully installed pip-23.3.1 setuptools-69.0.2
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that director
Collecting requests
  Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting pyserial
  Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 4.2 MB/s eta 0:00:00
Collecting pyudev
  Downloading pyudev-0.24.1-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.9/62.9 kB 128.5 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2 (from requests)
  Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests)
  Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests)
  Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests)
  Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 56.2 MB/s eta 0:00:00
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 14.1 MB/s eta 0:00:00
Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.3/140.3 kB 154.9 MB/s eta 0:00:00
Downloading idna-3.6-py3-none-any.whl (61 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 97.0 MB/s eta 0:00:00
Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 112.4 MB/s eta 0:00:00
Installing collected packages: pyserial, urllib3, pyudev, idna, charset-normalizer, certifi, requests
Successfully installed certifi-2023.11.17 charset-normalizer-3.3.2 idna-3.6 pyserial-3.5 pyudev-0.24.1 requests-2.31.0 urllib3-2.1.0
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that director
Collecting pymodbus==3.2.2
  Downloading pymodbus-3.2.2-py3-none-any.whl (166 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.5/166.5 kB 4.9 MB/s eta 0:00:00
Collecting setuptools<66.0.0 (from pymodbus==3.2.2)
  Downloading setuptools-65.7.0-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 34.0 MB/s eta 0:00:00
Installing collected packages: setuptools, pymodbus
  Attempting uninstall: setuptools
    Found existing installation: setuptools 69.0.2
    Uninstalling setuptools-69.0.2:
      Successfully uninstalled setuptools-69.0.2
Successfully installed pymodbus-3.2.2 setuptools-65.7.0
********************************************************
*           Installation terminée                      *
********************************************************
Sat Dec  2 16:30:24 CET 2023
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mymodbus
+ rm /tmp/jeedom_install_in_progress_mymodbus
+ echo '*******************End of package installation******************'
*******************End of package installation******************

C’est une mise à jour sur une version du mois de mars 2023


2 choses me surprennent dans ton fichier log.

  1. La suppression de la version python 3.9.16

Chez toi la dernière ligne de cet extrait n’apparait pas :

********************************************************
*            Installation de pyenv                     *
********************************************************
Sat Dec  2 16:23:21 CET 2023
****  Configuration de pyenv...
****  Suppression des anciennes versions de pyenv...
pyenv: 3.9.16 uninstalled
  1. La mise à jour de pyenv

Chez toi toutes les lignes concernant la mise à jour de pyenv n’apparaissent pas non plus

********************************************************
*    Installation de python 3.11.6 (dure longtemps)    *
********************************************************
Sat Dec  2 16:23:21 CET 2023
**** Mise à jour de pyenv
HEAD is now at 4ef81b5 Add Miniforge3-22.11.1-4 (#2642)
Skipping repository plugins/pyenv-doctor/
Skipping repository plugins/pyenv-installer/
Skipping repository plugins/pyenv-update/
Skipping repository plugins/pyenv-virtualenv/
Removing shims/
Removing versions/
From https://github.com/pyenv/pyenv
   4ef81b5..3e1b4e0  master     -> origin/master
 * [new tag]         2.3.30     -> 2.3.30
(... tout ça, tout ça ...)
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.13
 create mode 100644 plugins/python-build/share/python-build/pypy3.9-7.3.13-src
/var/www/html/plugins/mymodbus

Chez toi on voit la ligne

fatal: not a git repository (or any of the parent directories): .git

qui signifie que la commande git de mise à jour du repo pyenv a été lancée depuis le mauvais répertoire, ce que je ne comprends pas…

Les lignes

python-build: definition not found: 3.11.6
See all available versions with `pyenv install --list'.
If the version you need is missing, try upgrading pyenv.

Sont dues au fait que pyenv n’est pas à jour, il ne trouve donc pas la version 3.11.6

Tu peux poster le contenu du fichier plugins/mymodbus/ressources/post-install.sh de la ligne 140 à la ligne 178 STP ?

A+
Michel

edit: je viens de restaurer le snapshot Debian 10 du 03.03.2023 que j’avais en Jeedom 4.3.15, j’ai mis à jour Jeedom (ce qui a mis à jour MyModbus) et relancé l’installation des dépendances, tout se passe bien avec la version présente sur le market. Tu peux donner plus de détails sur ton installation STP ?

Effectivement c’est étrange.

Le script post-install :
post-install.sh.txt (5,3 Ko)

La récap de mon installation :
(VM Debian 10 sous Proxmox 8.04)

Impossible que ce script ait généré les logs du premier post. Tu es bien sûr de ton coup ?
Le script est mis à jour avec le plugin, là ça doit être une ancienne version de ce script…

Mince tu as raison désolé !
→ J’ai fait un retour arrière, donc c’est l’ancien script que j’ai.

Je vais relancer une installation, et si cela rebloque je posterai le script avant de restaurer mon snapshot.

@Michel_F
Je viens de retenter → KO.
Ce que j’ai fait :

  1. Lancement mise à jour plugin.
  2. Arrêt manuel démon.
  3. Lancement manuel dépendances → KO
********************************************************
*           Nettoyage de l'ancienne version            *
********************************************************
Sun Dec  3 19:36:45 CET 2023
********************************************************
*            Installation de pyenv                     *
********************************************************
Sun Dec  3 19:36:45 CET 2023
****  Configuration de pyenv...
****  Suppression des anciennes versions de pyenv...
pyenv: 3.9.16 uninstalled
********************************************************
*    Installation de python 3.11.6 (dure longtemps)    *
********************************************************
Sun Dec  3 19:36:45 CET 2023
**** Mise à jour de pyenv
fatal: not a git repository (or any of the parent directories): .git
**** Mise à jour de pyenv terminée, installation de python 3.11.6
python-build: definition not found: 3.11.6
See all available versions with `pyenv install --list'.
If the version you need is missing, try upgrading pyenv.

Voici le script installé par la mise à jour :
post-install.sh_maj_ko.txt (6,0 Ko)

C’est bien la bonne version du script. Donc c’est autre chose ou alors j’ai loupé un gros truc chez moi.

Et si tu supprimes le répertoire plugins/mymodbus/ressources/_pyenv et que tu relances les dépendances ?
Pour être sûr, il faudrait même les relancer une fois terminé. Ca durera bien moins longtemps la 2ème fois mais au mois je saurai (avec les logs) si tout est correctement installé chez toi.

Si tu as un accès ssh tu peux me donner le retour de la commande git --version STP ?

Pour être sûr, manips dans cet ordre ?

  1. Arrêt démon
  2. Suppression du répertoire.
  3. Installation maj plugin.
  4. Relance dépendances deux fois de suite.
  5. Réactivation démon (si c’est possible).

La voici :
git version 2.39.2

  1. Arrêt démon
  2. Suppression du répertoire plugins/mymodbus/ressources/_pyenv
  3. Installation maj plugin.
  4. Relance dépendances.
  5. Sauvegarde du log mymodbus_packages
  6. Relance dépendances.
  7. Sauvegarde du log mymodbus_packages
  8. Réactivation démon (si c’est possible).

D’après le site de Debian, la version git installée est la 2.20.2. Comment tu as fait pour avoir cette version de git ?
Sous Debian 12, par contre, c’est la version 2.39.2 qui est installée
→ Je ne sais pas si ça peut avoir un impact.

OK je refais des manips ce soir.

Tu as raison pour git, la version est : git version 2.20.1
(Ma session ssh avait sauté, la commande portait sur la machine hôte Debian 12).

Tu as l’air de faire les choses trop vite et de ne pas bien tout vérifier.
Fais ça tranquillement, sans stress, step by step, en vérifiant bien tout partout.

+1
Sur ce coup-là, je reconnais …

Après suppression du répertoire + double installation dépendances, le démon est monté :+1:

Par contre, il y a des soucis dans le second log (je partage les deux comme prévu) :

mymodbus_packages_après_1er_lancement_dependances.txt (9,0 Ko)

mymodbus_packages_après_2eme_lancement_dependances.txt (5,1 Ko)

PS : j’ai conservé cette version en prod.

Ce sont des erreurs normales : setuptools est mis à jour mais n’est pas compatible avec la version de pymodbus imposée (une ancienne version pour des raisons de compatibilité avec MyModbus, work in progress). Donc pip installe une version plus ancienne de setuptools qui est compatible avec pymodbus V3.2.2

→ Tout est donc OK

Parfait !

Question subsidiaire sur les dépendances : faut-il les lancer deux fois ou pas ?
En beta ce n’est pas un sujet, mais en stable ce ne sera pas nécessaire n’est-ce pas ?

Je voulais savoir comment, chez toi, l’installation des dépendances se comportaient :

  • en mettant python à jour
  • en vérifient si python est à jour

Mais finalement, comme le répertoire _pyenv a été supprimé, le test est tombé à l’eau. Et je ne sais toujours pas pourquoi, chez toi, la mise à jour n’a pas fonctionné. Mystère…

→ Donc, non (et heureusement pour les utilisateurs et pour ma fierté)

Compris merci !