Prise en charge Debian12/PHP8 ... ou pas?

BugReport

Bonjour,

Je me suis décidé à installer une alpha sur debian 12; pas vraiment de problème pour l’installation du core proprement dite, il y a quelques problèmes mineures lorsqu’on navigue dans jeedom mais ce n’est pas ce qui me pose problème pour l’instant.

Dans le changelog il est indiqué « Prise en charge Debian12/PHP8 »;
mais il est actuellement impossible d’installer le moindre plugin avec dépendances python qui se repose sur le core pour l’installation (via le packages.json) car le core utilise pip3 qui installe sur le système alors que sous debian12 il faut soit créer un venv, soit installer via pipx
Hors ce point fait bien partie du core; Et ce n’est pas le seul problème bloquant pour pouvoir parler de compatibilité avec Debian12/PHP8.

Page concernée : Installation des dépendances de plugins
Version Core : alpha 4.4.2

Etape pour reproduire le Bug :
Installer un plugin avec démon python utilisant la gestion des packages du core; exemple: plugin-rfxcom


Ceci dit, je ne suis pas tellement tracassé par la solution concernant l’installation des dépendances, elle est probablement même facile.
mais plus par la stratégie à suivre:

  • est-ce qu’on continue à fixer le core pour vraiment garantir la compatibilité debian12 (et pouvoir le garder dans le changelog et les autres documentation) (pcq ce n’est pas le seul problème, l’utilisation de com_http pose aussi problème car il y a des problèmes de passage de paramètres à curl, il y a des config apache qui sont bloquantes…)
  • est-ce qu’on vire le support debian12 pour la sortie de la 4.4, qu’elle soit stabilisé (car il y a encore du travail pour ca même sans le support debian 12) et qu’on met ce support debian 12 pour la suivante?

Bonjour,
Alors pour les dépendances python je sais mais c’est trop compliqué pour moi de ramener le venv dans le core donc la solution sera surement de ne plus supporté les dépendances pytons par le systeme du core

Pour le com_http j’aimerais bien plus de détails car je n’ai pas de soucis sur ma prod qui tourne en debian 12, idem pour apache je veux bien du détails.

En gros donne moi tout le détails et je ferais ce qu’il faut pour fixer ca et si ca prend du temps on repoussera la 4.4.

remplaces juste l’appel à pip3 par pipx (faut l’installer avant) et je pense que ca sera ok (je n’ai pas encore testé)
les plugins devront p-e adapter le daemon start, à tester, mais le core lui aura fait son job :wink:


au vu des autres réponses ce que je comprend c’est que la stratégie c’est de garder le support debian12?
ma question ici était de savoir ce que vous vouliez.

Dans ce cas je vais faire des posts dédiés à chaque soucis lorsque j’en rencontre.

1 « J'aime »

Moi je veux garder le support de debian 12 oui après c’est pas moi qui decide…

Pour pipx je viens d’essayer de le faire en alpha a tester si ca résoud le soucis.

Voyant ce post, j’ai mis a jour mon core alpha deb12

J’ai tenté un installdes dependances avec le plugin rfxcom.

Je ne sais pas si c’est relevant mais j’ai des erreurs pipx

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_rfxcom
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/rfxcom/resources/pre-install.sh
+ sudo /var/www/html/core/class/../../plugins/rfxcom/resources/pre-install.sh
Launch pre-install of rfxcom dependancy
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
python3-serial
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 470 kB disk space will be freed.
(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 ... 104064 files and directories currently installed.)
Removing python3-serial (3.5-1.1) ...
+ echo 3
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://deb.nodesource.com/node_16.x bookworm InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
+ echo 4
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 5
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-pip
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (23.0.1+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 6
+ sudo apt install -o Dpkg::Options::=--force-confdef -y build-essential
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 7
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-pyudev
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pyudev is already the newest version (0.24.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 8
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-dev
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-dev is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 9
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-requests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-requests is already the newest version (2.28.1+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 10
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-setuptools
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (66.1.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 11
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://deb.nodesource.com/node_16.x bookworm InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
+ sudo apt install -y pipx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
blt fonts-font-awesome fonts-lato ghp-import libjs-bootstrap4
libjs-highlight.js libjs-lunr libjs-modernizr libjs-popper.js libjs-sizzle
mkdocs node-jquery python-babel-localedata python3-argcomplete python3-attr
python3-babel python3-click python3-colorama python3-dateutil
python3-iniconfig python3-jinja2 python3-joblib python3-livereload
python3-lunr python3-markdown python3-markupsafe python3-mergedeep
python3-more-itertools python3-nltk python3-numpy python3-packaging
python3-pluggy python3-psutil python3-py python3-pytest
python3-pyyaml-env-tag python3-regex python3-simplejson python3-tk
python3-tornado python3-tqdm python3-tz python3-userpath python3-watchdog
sphinx-rtd-theme-common tk8.6-blt2.5
Suggested packages:
blt-demo libjs-es5-shim mkdocs-doc python-attr-doc python-jinja2-doc
coffeescript node-less node-uglify python-livereload-doc python3-django
python3-flask python3-slimmer python-lunr-doc python-markdown-doc gfortran
python-psutil-doc subversion tix python3-tk-dbg python-tornado-doc
python3-twisted
Recommended packages:
prover9
The following NEW packages will be installed:
blt fonts-font-awesome fonts-lato ghp-import libjs-bootstrap4
libjs-highlight.js libjs-lunr libjs-modernizr libjs-popper.js libjs-sizzle
mkdocs node-jquery pipx python-babel-localedata python3-argcomplete
python3-attr python3-babel python3-click python3-colorama python3-dateutil
python3-iniconfig python3-jinja2 python3-joblib python3-livereload
python3-lunr python3-markdown python3-markupsafe python3-mergedeep
python3-more-itertools python3-nltk python3-numpy python3-packaging
python3-pluggy python3-psutil python3-py python3-pytest
python3-pyyaml-env-tag python3-regex python3-simplejson python3-tk
python3-tornado python3-tqdm python3-tz python3-userpath python3-watchdog
sphinx-rtd-theme-common tk8.6-blt2.5
0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.1 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 fonts-lato all 2.0-2.1 [2696 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4.1 [593 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 blt amd64 2.5.3+dfsg-4.1 [14.9 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [517 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 python3-dateutil all 2.8.2-2 [78.3 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 ghp-import all 2.1.0-3 [12.3 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 libjs-popper.js all 1.16.1+ds-6 [52.4 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 libjs-bootstrap4 all 4.6.1+dfsg1-4 [517 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 libjs-highlight.js all 9.18.5+dfsg1-2 [397 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 libjs-lunr all 2.3.9~dfsg-2 [76.6 kB]
Get:11 http://deb.debian.org/debian bookworm/main amd64 libjs-modernizr all 2.6.2+ds1-5 [47.1 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libjs-sizzle all 2.3.6+ds+~2.3.3-2 [31.6 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 python3-tornado amd64 6.2.0-3 [337 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 python3-livereload all 2.6.3-2 [26.4 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 python3-colorama all 0.4.6-2 [36.8 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 python3-click all 8.1.3-2 [92.2 kB]
Get:17 http://deb.debian.org/debian bookworm/main amd64 python3-joblib all 1.2.0-4 [211 kB]
Get:18 http://deb.debian.org/debian bookworm/main amd64 python3-regex amd64 0.1.20221031-1+b1 [266 kB]
Get:19 http://deb.debian.org/debian bookworm/main amd64 python3-tqdm all 4.64.1-1 [97.7 kB]
Get:20 http://deb.debian.org/debian bookworm/main amd64 python3-nltk all 3.8-1 [1004 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 python3-lunr all 0.6.2-2 [29.1 kB]
Get:22 http://deb.debian.org/debian bookworm/main amd64 sphinx-rtd-theme-common all 1.2.0+dfsg-1 [997 kB]
Get:23 http://deb.debian.org/debian bookworm/main amd64 python3-markupsafe amd64 2.1.2-1+b1 [13.2 kB]
Get:24 http://deb.debian.org/debian bookworm/main amd64 python3-jinja2 all 3.1.2-1 [119 kB]
Get:25 http://deb.debian.org/debian bookworm/main amd64 python3-markdown all 3.4.1-2 [64.7 kB]
Get:26 http://deb.debian.org/debian bookworm/main amd64 python3-mergedeep all 1.3.4-3 [6556 B]
Get:27 http://deb.debian.org/debian bookworm/main amd64 python3-packaging all 23.0-1 [32.5 kB]
Get:28 http://deb.debian.org/debian bookworm/main amd64 python3-pyyaml-env-tag all 0.1-3 [5252 B]
Get:29 http://deb.debian.org/debian bookworm/main amd64 python3-watchdog all 2.2.1-1 [124 kB]
Get:30 http://deb.debian.org/debian bookworm/main amd64 mkdocs all 1.4.2+dfsg-2 [2252 kB]
Get:31 http://deb.debian.org/debian bookworm/main amd64 node-jquery all 3.6.1+dfsg+~3.5.14-1 [160 kB]
Get:32 http://deb.debian.org/debian bookworm/main amd64 python3-argcomplete all 2.0.0-1 [34.7 kB]
Get:33 http://deb.debian.org/debian bookworm/main amd64 python3-userpath all 1.8.0-1 [10.6 kB]
Get:34 http://deb.debian.org/debian bookworm/main amd64 pipx all 1.1.0-1 [393 kB]
Get:35 http://deb.debian.org/debian bookworm/main amd64 python-babel-localedata all 2.10.3-1 [5615 kB]
Get:36 http://deb.debian.org/debian bookworm/main amd64 python3-attr all 22.2.0-1 [65.4 kB]
Get:37 http://deb.debian.org/debian bookworm/main amd64 python3-tz all 2022.7.1-4 [30.1 kB]
Get:38 http://deb.debian.org/debian bookworm/main amd64 python3-babel all 2.10.3-1 [103 kB]
Get:39 http://deb.debian.org/debian bookworm/main amd64 python3-iniconfig all 1.1.1-2 [6396 B]
Get:40 http://deb.debian.org/debian bookworm/main amd64 python3-more-itertools all 8.10.0-2 [53.0 kB]
Get:41 http://deb.debian.org/debian bookworm/main amd64 python3-numpy amd64 1:1.24.2-1 [5209 kB]
Get:42 http://deb.debian.org/debian bookworm/main amd64 python3-pluggy all 1.0.0+repack-1 [19.7 kB]
Get:43 http://deb.debian.org/debian bookworm/main amd64 python3-psutil amd64 5.9.4-1+b1 [189 kB]
Get:44 http://deb.debian.org/debian bookworm/main amd64 python3-py all 1.11.0-1 [89.2 kB]
Get:45 http://deb.debian.org/debian bookworm/main amd64 python3-pytest all 7.2.1-2 [236 kB]
Get:46 http://deb.debian.org/debian bookworm/main amd64 python3-simplejson amd64 3.18.3-1 [59.8 kB]
Get:47 http://deb.debian.org/debian bookworm/main amd64 python3-tk amd64 3.11.2-3 [98.3 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 23.1 MB in 13s (1737 kB/s)
Selecting previously unselected package fonts-lato.
(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 ... 104006 files and directories currently installed.)
Preparing to unpack .../00-fonts-lato_2.0-2.1_all.deb ...
Unpacking fonts-lato (2.0-2.1) ...
Selecting previously unselected package tk8.6-blt2.5.
Preparing to unpack .../01-tk8.6-blt2.5_2.5.3+dfsg-4.1_amd64.deb ...
Unpacking tk8.6-blt2.5 (2.5.3+dfsg-4.1) ...
Selecting previously unselected package blt.
Preparing to unpack .../02-blt_2.5.3+dfsg-4.1_amd64.deb ...
Unpacking blt (2.5.3+dfsg-4.1) ...
Selecting previously unselected package fonts-font-awesome.
Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ...
Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ...
Selecting previously unselected package python3-dateutil.
Preparing to unpack .../04-python3-dateutil_2.8.2-2_all.deb ...
Unpacking python3-dateutil (2.8.2-2) ...
Selecting previously unselected package ghp-import.
Preparing to unpack .../05-ghp-import_2.1.0-3_all.deb ...
Unpacking ghp-import (2.1.0-3) ...
Selecting previously unselected package libjs-popper.js.
Preparing to unpack .../06-libjs-popper.js_1.16.1+ds-6_all.deb ...
Unpacking libjs-popper.js (1.16.1+ds-6) ...
Selecting previously unselected package libjs-bootstrap4.
Preparing to unpack .../07-libjs-bootstrap4_4.6.1+dfsg1-4_all.deb ...
Unpacking libjs-bootstrap4 (4.6.1+dfsg1-4) ...
Selecting previously unselected package libjs-highlight.js.
Preparing to unpack .../08-libjs-highlight.js_9.18.5+dfsg1-2_all.deb ...
Unpacking libjs-highlight.js (9.18.5+dfsg1-2) ...
Selecting previously unselected package libjs-lunr.
Preparing to unpack .../09-libjs-lunr_2.3.9~dfsg-2_all.deb ...
Unpacking libjs-lunr (2.3.9~dfsg-2) ...
Selecting previously unselected package libjs-modernizr.
Preparing to unpack .../10-libjs-modernizr_2.6.2+ds1-5_all.deb ...
Unpacking libjs-modernizr (2.6.2+ds1-5) ...
Selecting previously unselected package libjs-sizzle.
Preparing to unpack .../11-libjs-sizzle_2.3.6+ds+~2.3.3-2_all.deb ...
Unpacking libjs-sizzle (2.3.6+ds+~2.3.3-2) ...
Selecting previously unselected package python3-tornado.
Preparing to unpack .../12-python3-tornado_6.2.0-3_amd64.deb ...
Unpacking python3-tornado (6.2.0-3) ...
Selecting previously unselected package python3-livereload.
Preparing to unpack .../13-python3-livereload_2.6.3-2_all.deb ...
Unpacking python3-livereload (2.6.3-2) ...
Selecting previously unselected package python3-colorama.
Preparing to unpack .../14-python3-colorama_0.4.6-2_all.deb ...
Unpacking python3-colorama (0.4.6-2) ...
Selecting previously unselected package python3-click.
Preparing to unpack .../15-python3-click_8.1.3-2_all.deb ...
Unpacking python3-click (8.1.3-2) ...
Selecting previously unselected package python3-joblib.
Preparing to unpack .../16-python3-joblib_1.2.0-4_all.deb ...
Unpacking python3-joblib (1.2.0-4) ...
Selecting previously unselected package python3-regex.
Preparing to unpack .../17-python3-regex_0.1.20221031-1+b1_amd64.deb ...
Unpacking python3-regex (0.1.20221031-1+b1) ...
Selecting previously unselected package python3-tqdm.
Preparing to unpack .../18-python3-tqdm_4.64.1-1_all.deb ...
Unpacking python3-tqdm (4.64.1-1) ...
Selecting previously unselected package python3-nltk.
Preparing to unpack .../19-python3-nltk_3.8-1_all.deb ...
Unpacking python3-nltk (3.8-1) ...
Selecting previously unselected package python3-lunr.
Preparing to unpack .../20-python3-lunr_0.6.2-2_all.deb ...
Unpacking python3-lunr (0.6.2-2) ...
Selecting previously unselected package sphinx-rtd-theme-common.
Preparing to unpack .../21-sphinx-rtd-theme-common_1.2.0+dfsg-1_all.deb ...
Unpacking sphinx-rtd-theme-common (1.2.0+dfsg-1) ...
Selecting previously unselected package python3-markupsafe.
Preparing to unpack .../22-python3-markupsafe_2.1.2-1+b1_amd64.deb ...
Unpacking python3-markupsafe (2.1.2-1+b1) ...
Selecting previously unselected package python3-jinja2.
Preparing to unpack .../23-python3-jinja2_3.1.2-1_all.deb ...
Unpacking python3-jinja2 (3.1.2-1) ...
Selecting previously unselected package python3-markdown.
Preparing to unpack .../24-python3-markdown_3.4.1-2_all.deb ...
Unpacking python3-markdown (3.4.1-2) ...
Selecting previously unselected package python3-mergedeep.
Preparing to unpack .../25-python3-mergedeep_1.3.4-3_all.deb ...
Unpacking python3-mergedeep (1.3.4-3) ...
Selecting previously unselected package python3-packaging.
Preparing to unpack .../26-python3-packaging_23.0-1_all.deb ...
Unpacking python3-packaging (23.0-1) ...
Selecting previously unselected package python3-pyyaml-env-tag.
Preparing to unpack .../27-python3-pyyaml-env-tag_0.1-3_all.deb ...
Unpacking python3-pyyaml-env-tag (0.1-3) ...
Selecting previously unselected package python3-watchdog.
Preparing to unpack .../28-python3-watchdog_2.2.1-1_all.deb ...
Unpacking python3-watchdog (2.2.1-1) ...
Selecting previously unselected package mkdocs.
Preparing to unpack .../29-mkdocs_1.4.2+dfsg-2_all.deb ...
Unpacking mkdocs (1.4.2+dfsg-2) ...
Selecting previously unselected package node-jquery.
Preparing to unpack .../30-node-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ...
Unpacking node-jquery (3.6.1+dfsg+~3.5.14-1) ...
Selecting previously unselected package python3-argcomplete.
Preparing to unpack .../31-python3-argcomplete_2.0.0-1_all.deb ...
Unpacking python3-argcomplete (2.0.0-1) ...
Selecting previously unselected package python3-userpath.
Preparing to unpack .../32-python3-userpath_1.8.0-1_all.deb ...
Unpacking python3-userpath (1.8.0-1) ...
Selecting previously unselected package pipx.
Preparing to unpack .../33-pipx_1.1.0-1_all.deb ...
Unpacking pipx (1.1.0-1) ...
Selecting previously unselected package python-babel-localedata.
Preparing to unpack .../34-python-babel-localedata_2.10.3-1_all.deb ...
Unpacking python-babel-localedata (2.10.3-1) ...
Selecting previously unselected package python3-attr.
Preparing to unpack .../35-python3-attr_22.2.0-1_all.deb ...
Unpacking python3-attr (22.2.0-1) ...
Selecting previously unselected package python3-tz.
Preparing to unpack .../36-python3-tz_2022.7.1-4_all.deb ...
Unpacking python3-tz (2022.7.1-4) ...
Selecting previously unselected package python3-babel.
Preparing to unpack .../37-python3-babel_2.10.3-1_all.deb ...
Unpacking python3-babel (2.10.3-1) ...
Selecting previously unselected package python3-iniconfig.
Preparing to unpack .../38-python3-iniconfig_1.1.1-2_all.deb ...
Unpacking python3-iniconfig (1.1.1-2) ...
Selecting previously unselected package python3-more-itertools.
Preparing to unpack .../39-python3-more-itertools_8.10.0-2_all.deb ...
Unpacking python3-more-itertools (8.10.0-2) ...
Selecting previously unselected package python3-numpy.
Preparing to unpack .../40-python3-numpy_1%3a1.24.2-1_amd64.deb ...
Unpacking python3-numpy (1:1.24.2-1) ...
Selecting previously unselected package python3-pluggy.
Preparing to unpack .../41-python3-pluggy_1.0.0+repack-1_all.deb ...
Unpacking python3-pluggy (1.0.0+repack-1) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../42-python3-psutil_5.9.4-1+b1_amd64.deb ...
Unpacking python3-psutil (5.9.4-1+b1) ...
Selecting previously unselected package python3-py.
Preparing to unpack .../43-python3-py_1.11.0-1_all.deb ...
Unpacking python3-py (1.11.0-1) ...
Selecting previously unselected package python3-pytest.
Preparing to unpack .../44-python3-pytest_7.2.1-2_all.deb ...
Unpacking python3-pytest (7.2.1-2) ...
Selecting previously unselected package python3-simplejson.
Preparing to unpack .../45-python3-simplejson_3.18.3-1_amd64.deb ...
Unpacking python3-simplejson (3.18.3-1) ...
Selecting previously unselected package python3-tk:amd64.
Preparing to unpack .../46-python3-tk_3.11.2-3_amd64.deb ...
Unpacking python3-tk:amd64 (3.11.2-3) ...
Setting up python3-more-itertools (8.10.0-2) ...
Setting up python3-iniconfig (1.1.1-2) ...
Setting up python3-attr (22.2.0-1) ...
Setting up python3-tornado (6.2.0-3) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4.1) ...
Setting up fonts-lato (2.0-2.1) ...
Setting up python3-py (1.11.0-1) ...
Setting up python3-joblib (1.2.0-4) ...
Setting up libjs-popper.js (1.16.1+ds-6) ...
Setting up python3-colorama (0.4.6-2) ...
Setting up python3-watchdog (2.2.1-1) ...
Setting up libjs-lunr (2.3.9~dfsg-2) ...
Setting up blt (2.5.3+dfsg-4.1) ...
Setting up python3-tqdm (4.64.1-1) ...
Setting up python3-tk:amd64 (3.11.2-3) ...
Setting up python3-click (8.1.3-2) ...
Setting up libjs-sizzle (2.3.6+ds+~2.3.3-2) ...
Setting up python3-markupsafe (2.1.2-1+b1) ...
Setting up libjs-modernizr (2.6.2+ds1-5) ...
Setting up python3-psutil (5.9.4-1+b1) ...
Setting up python3-tz (2022.7.1-4) ...
Setting up python-babel-localedata (2.10.3-1) ...
Setting up python3-pyyaml-env-tag (0.1-3) ...
Setting up python3-simplejson (3.18.3-1) ...
Setting up python3-jinja2 (3.1.2-1) ...
Setting up python3-packaging (23.0-1) ...
Setting up python3-markdown (3.4.1-2) ...
Setting up python3-mergedeep (1.3.4-3) ...
Setting up python3-regex (0.1.20221031-1+b1) ...
Setting up python3-numpy (1:1.24.2-1) ...
Setting up python3-pluggy (1.0.0+repack-1) ...
Setting up libjs-highlight.js (9.18.5+dfsg1-2) ...
Setting up python3-livereload (2.6.3-2) ...
Setting up python3-dateutil (2.8.2-2) ...
Setting up libjs-bootstrap4 (4.6.1+dfsg1-4) ...
Setting up python3-argcomplete (2.0.0-1) ...
Setting up python3-nltk (3.8-1) ...
Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ...
Setting up sphinx-rtd-theme-common (1.2.0+dfsg-1) ...
Setting up node-jquery (3.6.1+dfsg+~3.5.14-1) ...
Setting up python3-userpath (1.8.0-1) ...
Setting up python3-lunr (0.6.2-2) ...
Setting up python3-babel (2.10.3-1) ...
update-alternatives: using /usr/bin/pybabel-python3 to provide /usr/bin/pybabel (pybabel) in auto mode
Setting up python3-pytest (7.2.1-2) ...
Setting up pipx (1.1.0-1) ...
Setting up ghp-import (2.1.0-3) ...
Setting up mkdocs (1.4.2+dfsg-2) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for fontconfig (2.14.1-4) ...
+ echo 12
+ sudo pipx install --force-reinstall --upgrade six
usage: pipx [-h] [--version]
{install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions}
...
pipx: error: unrecognized arguments: --force-reinstall --upgrade
+ echo 13
+ sudo pipx install --force-reinstall --upgrade requests
usage: pipx [-h] [--version]
{install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions}
...
pipx: error: unrecognized arguments: --force-reinstall --upgrade
+ echo 14
+ sudo pipx install --force-reinstall --upgrade setuptools
usage: pipx [-h] [--version]
{install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions}
...
pipx: error: unrecognized arguments: --force-reinstall --upgrade
+ echo 15
+ sudo pipx install --force-reinstall --upgrade pyudev
usage: pipx [-h] [--version]
{install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions}
...
pipx: error: unrecognized arguments: --force-reinstall --upgrade
+ echo 16
+ sudo pipx install --force-reinstall --upgrade pyserial
usage: pipx [-h] [--version]
{install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions}
...
pipx: error: unrecognized arguments: --force-reinstall --upgrade
+ echo 17
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end rfxcom
+ rm /tmp/jeedom_install_in_progress_rfxcom
+ echo '*******************End of package installation******************'
*******************End of package installation******************

pip3 install --force-reinstall --upgrade
Ne peut pas être remplacé par
pipx install --force-reinstall --upgrade

akenad :slight_smile:

Ah mais j’ai rien remplacé moi

Je pense que ca casse toutes les installa de dependances, car avec broadlink même souci que ci dessus

Oui il ne faut pas mettre les flags, juste pipx install xxx

Mais en y réfléchissant de nouveau pas sur que ca va fonctionner (j’étais déjà pas certain mais là encore moins :joy:).
Pas eu le temps de tester cette après-midi.

@Mips en mode je dis ça, je dis rien
Carrément pas l’habitude de voir ça, je me devais de le souligner !!

:sweat_smile: :innocent: :rofl:

C’est Loïc:

akenad :slight_smile:

J’ai réfléchi un peu plus que 2 minutes à ça.

Alors on peut imaginer que le core se charge de créer l’env et installe les dépendances (via pipx ou pas c’est encore un choix), y a un peu de boulot mais c’est faisable.
Mais le problème c’est que jusqu’ici ce sont les plugins qui donnent la ligne de commande pour lancer le démon, y compris le path (ou pas) vers le bin python; Hors ce point devra changer quoi qu’il arrive; pour la compatibilité debian12, les plugins utilisant python doivent s’adapter.

concernant les dépendances:

  • si le core continue à gérer il va y avoir un breaking change sérieux pour tous ces plugins car s’il commence à créer les venv et installer les dépendances dans ces venv, les démons ne démarreront plus
    ce qui me dérange c’est de faire un breaking change dans jeedom alors que c’est un problème système: pourquoi imposer ca en v4.4 alors que c’est un pré-requis pour debian 12 qui n’est pas pré-requis pour la v4.4; ca ne va pas
    ou alors faut gérer un flag dans le packages.json qui permet au plugin de dire s’il veut un virtual env ou pas; ca permettrait de garder la retro-compatibilité et de laisser le temps au plugin de migrer mais ca me parait lourd à gérer.
  • le core ne gère pas (on garde le comportement actuel qui fonctionnera si < debian12) mais c’est un peu moche de drop cette idée
    le jour où debian 12 est pré-requis, cela pourrait être rétabli
    et du coup on peut adapter les plugins un par un pour qu’ils gèrent à nouveau leur dépendances (via post_install par exemple); on peut écrire une doc pour guider; et ca sera retro-compatible sur les anciennes versions

un avis? une idée?

Bonjour,
Je me permet de rajouter @Salvialf pour qu’il puisse aussi donner son avis.

De mon coté je suis pas sur qu’une solution soit meilleure qu’une autre. Si on part sur la 1er pourrait on imaginer que le core passe en installation venv si debian >=12 (pas le choix de toute facon) et on laisse les plugins intégrer petit a petit le même tests pour lancer en mode venv si debian >=12 ? L’idée c’est le core est deja prêt debian 12 comme ca il ne ralenti pas la compatibilité et les plugins pourront l’ajouter petit a petit (on devra bien évidement faire un guide).

Bonjour,

Pour moi, il faut garder la 1ère solution pour une future version. « breaking change » => nouvelle version direct, normalement v5 :smiley:

La version qui conserve la rétro-compatibilité peut être mieux pour nous, pour la roadmap, mais encore, je me répète peut-être mais il vaudrait mieux arrêter la 4.4 et la sortir stable :slight_smile: quitte à avoir pour le futur 2 branches alpha: une v4.5 et une 5.0 ! préparons l’avenir :innocent:

Concernant les breaking changes on est d’accord.

J’ai déjà dit ca aussi mais c’est justement le sujet du post: garder la compatibilité et donc repousser cette version car ce n’est pas prêt ou supprimer la compatibilité du scope v4.4? La question reste ouverte.

Si vous voulez mon avis de beta testeurs qui ne connait rien à la programmation,

Je pense qu’il y a déjà bien à faire avec la v4.4 comme cela !
Qu’il faut la sortir asap pour debian 11 et voir une 4.5 pour debian 12

Les tests ne suivront pas vu la masse de choses à faire.
Sans parler du nombre de posts qui vont exploser ici et les tickets chez Jeedom !

Il vaut mieux monter un escalier marche par marche et assurer que de faire le grand écart et se bucher !

My 2 cents !

1 « J'aime »