Suite dernière maj de mymodbus beta

En version stable, c’est tout autre chose et ce n’est pas moi qui gère. Si vous passez en bêta, je peux vous aider sinon il faudra voir avec Bebel27

vous voulez dire pip3 ?
En version bêta, ça n’a pas d’importance car la version de python est gérée dans pyenv, en version stable, voir avec Bebel27

ok , c’est pip3 effectivement
Je repasse en version beta donc sans mise à jour pip3
Mais là je suis bloqué maintenant car le plugin n’est pas activable

et donc un log mymodbus_packages vide
Le log mymodbus

2024-03-20 12:53:25	mymodbus	Erreur sur la fonction deamon_stop du plugin : Class 'pyenv' not found		
2024-03-20 12:53:25	plugin	Class 'pyenv' not found

pyenv4Jeedom est installé ?

Laissez cette partie tranquille. Elle cause plus de soucis qu’autre chose, quand on ne sait pas ce que l’on fait.

Antoine

Error 500, il faut le log http error.

Antoine

Non pyenv4Jeedom n’est toujours pas installé . :frowning_face:

Vous pouvez donc l’installer manuellement via le market

Ok je viens de le faire …
Je l’ai activé et j’ai fait une relance des dépendances
Voici le résultat du log

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_pyenv
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/pyenv/resources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/pyenv/resources/post-install.sh
********************************************************
*            Installation de pyenv                     *
********************************************************
Wed Mar 20 19:46:28 CET 2024
********************************************************
** Installation de pyenv dans /var/www/html/plugins/pyenv/resources/pyenv
% 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   270  100   270    0     0    552      0 --:--:-- --:--:-- --:--:--   552
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-doctor'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-update'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-virtualenv'...
WARNING: seems you still have not added 'pyenv' to the load path.
# Load pyenv automatically by appending
# the following to
# ~/.bash_profile if it exists, otherwise ~/.profile (for login shells)
# and ~/.bashrc (for interactive shells) :
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# Restart your shell for the changes to take effect.
# Load pyenv-virtualenv automatically by adding
# the following to ~/.bashrc:
eval "$(pyenv virtualenv-init -)"
********************************************************
*           Installation terminée                      *
********************************************************
Wed Mar 20 19:46:33 CET 2024
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end pyenv
+ echo 4
+ rm /tmp/jeedom_install_in_progress_pyenv
+ echo '*******************End of package installation******************'
*******************End of package installation******************

J’ai un warning

seems you still have not added 'pyenv' to the load path.

J’ai activé Mymodbus Beta (procedure en cours, )
je laisse faire pour l’instant je ferai un retour lorsque j’aurai la main sur le plugin :hourglass_flowing_sand:

Cela semble fonctionner maintenant

Mes temperatures et états PAC et panneaux solaires sont de nouveaux actifs sur ma page de ctle

Merci pour ton aide Michel_F.

1 « J'aime »

Ce n’est pas un problème et d’ailleurs si c’est fait ça pose des problèmes aux plugins qui ont un pyenv intégré. Donc c’est très bien comme ça.


TOP !

De mon coté c’est pyenv4jeedom qui déconne. La commande pyenv install 3.11.8 fait carrément rebooter le raspi !
Y a-t-il une alternative a pyenv ? install de python 3.11 a la mano ou ça risque de faire péter les autres plugins ?

Bonjour

Page santé jeedom svp.

Antoine

Corriger un problème ne revient pas forcément à le contourner… et vise versa

Mais là, il me faudrait plus d’info sur ce qu’il se passe sur votre machine Jeedom. Des log, des infos sur ce qui a été fait, les messages d’erreurs, …

Il faut savoir que MyModbus, avant que pyenv ne soit externalisé, lançait déjà cette commande

Merci pour vos réponses :slight_smile:
Je recommence propre : désinstallation de modbus et de pyenv, puis:

  • install de pyenv4jeedom depuis le market (version beta, 2024-03-20 01:20:57)
    pyenv_packages est content, pas de message d’erreur
  • Après activation du plugin pyenv4jeedom, dans Jeedom->Santé j’ai un message d’erreur:
    Call to a member function getConfiguration() on bool
  • retour à la page de config du plugin, je lance l’install des dépendences, voici le log que j’obtiens:
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_pyenv
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/pyenv/resources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/pyenv/resources/post-install.sh
********************************************************
*            Installation de pyenv                     *
********************************************************
Mon Mar 25 10:48:17 CET 2024
********************************************************
** Installation de pyenv dans /var/www/html/plugins/pyenv/resources/pyenv
% 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   270  100   270    0     0    417      0 --:--:-- --:--:-- --:--:--   417
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-doctor'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-update'...
Cloning into '/var/www/html/plugins/pyenv/resources/pyenv/plugins/pyenv-virtualenv'...
WARNING: seems you still have not added 'pyenv' to the load path.
# Load pyenv automatically by appending
# the following to
# ~/.bash_profile if it exists, otherwise ~/.profile (for login shells)
# and ~/.bashrc (for interactive shells) :
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# Restart your shell for the changes to take effect.
# Load pyenv-virtualenv automatically by adding
# the following to ~/.bashrc:
eval "$(pyenv virtualenv-init -)"
********************************************************
*           Installation terminée                      *
********************************************************
Mon Mar 25 10:48:31 CET 2024
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end pyenv
+ echo 4
+ rm /tmp/jeedom_install_in_progress_pyenv
+ echo '*******************End of package installation******************'
*******************End of package installation******************
  • jeedom santé me donne toujours le même message d’erreur

Donc tout a l’air bien sauf

Je regarde ça ce soir.

Jeedom 4.3.23 ?

Jeedom 4.3.23 ?

Oui m’sieur :wink:
Merci !

1 « J'aime »

Hello, t’as pu trouver le souci ?

J’ai trouvé la source possible du message d’erreur, mais ça ne devrait pas être bloquant. Ce sera corrigé dans la prochaine version

1 « J'aime »

Non bloquant donc ne devrait pas empecher l’install de mymodbus ?