Bonjour,
a l’origine de mes manipulations : mon raspberry 3b freeze 1 fois par jour… alors je voulais repartir du propre… donc
j’ai réinstallé mon pi3b en debian 10 tout propre
ensuite j’ai installé jeedom tout propre
et j’ai rechargé ma dernière sauvegarde
mais j’ai le plugin jMQTT qui ne démarre pas
j’ai regardé la log des dépendances, mais je ne sais pas quoi faire
pouvez-vous m’aider ?
merci d’avance
voici la log :
======================================================================
== 28/04/2023 18:45:59 == Dependencies installation for jMQTT
======================================================================
[ 0% ] : Checking parameters...
== System: Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
== Jeedom version: 4.3.17
== jMQTT version: 2023-04-15
[ 9% ] : Checking parameters : [ OK ]
[ 10% ] : Synchronize the package index...
[ 19% ] : Synchronize the package index : [ OK ]
[ 20% ] : Install Composer...
======================================================================
== 28/04/2023 18:46:18 == Dependencies installation for jMQTT
======================================================================
[ 0% ] : Checking parameters...
== System: Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
== Jeedom version: 4.3.17
== jMQTT version: 2023-04-15
[ 9% ] : Checking parameters : [ OK ]
[ 10% ] : Synchronize the package index...
[ 29% ] : Install Composer : [ OK ]
[ 30% ] : Install JsonPath-PHP library...
[ 39% ] : Install JsonPath-PHP library : [ OK ]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [ OK ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 19% ] : Synchronize the package index : [ OK ]
[ 20% ] : Install Composer...
[ 29% ] : Install Composer : [ OK ]
[ 30% ] : Install JsonPath-PHP library...
[ 39% ] : Install JsonPath-PHP library : [ OK ]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [ OK ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 59% ] : Install python3 venv and pip debian packages : [ERROR]
[ 60% ] : Create a python3 Virtual Environment...
[ 59% ] : Install python3 venv and pip debian packages : [ OK ]
[ 60% ] : Create a python3 Virtual Environment...
[ 69% ] : Create a python3 Virtual Environment : [ERROR]
[ 70% ] : Install required python3 libraries in venv...
[ 69% ] : Create a python3 Virtual Environment : [ERROR]
[ 70% ] : Install required python3 libraries in venv...
[ 99% ] : Install required python3 libraries in venv : [ERROR]
[100% ] : Finished !
======================================================================
== KO == Installation Error
======================================================================
== ANALYSING ERRORS...
== NO KNOWN ERROR DETECTED
== Error in step : Install python3 venv and pip debian packages
== Line 38
== Command `sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-venv python3-pip' have an issue
== Return code is 100
== Error message :
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
======================================================================
== Error in step : Create a python3 Virtual Environment
== Line 41
== Command `sudo -u www-data python3 -m venv /var/www/html/plugins/jMQTT/resources/jmqttd/venv' have an issue
== Return code is 1
== Error message :
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
======================================================================
== Error in step : Install required python3 libraries in venv
== Line 44
== Command `sudo -u www-data /var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3 install --no-cache-dir -r /var/www/html/plugins/jMQTT/resources/python-requirements/requirements.txt' have an issue
== Return code is 1
== Error message :
Traceback (most recent call last):
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
from pip._internal.utils.ui import BAR_TYPES
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 15, in <module>
from pip._vendor.progress.helpers import HIDE_CURSOR, SHOW_CURSOR, WritelnMixin
ModuleNotFoundError: No module named 'pip._vendor.progress.helpers'
======================================================================
[ 99% ] : Install required python3 libraries in venv : [ERROR]
[100% ] : Finished !
======================================================================
== KO == Installation Error
======================================================================
== ANALYSING ERRORS...
== NO KNOWN ERROR DETECTED
== Error in step : Create a python3 Virtual Environment
== Line 41
== Command `sudo -u www-data python3 -m venv /var/www/html/plugins/jMQTT/resources/jmqttd/venv' have an issue
== Return code is 1
== Error message :
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
======================================================================
== Error in step : Install required python3 libraries in venv
== Line 44
== Command `sudo -u www-data /var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3 install --no-cache-dir -r /var/www/html/plugins/jMQTT/resources/python-requirements/requirements.txt' have an issue
== Return code is 1
== Error message :
Traceback (most recent call last):
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
from pip._internal.utils.ui import BAR_TYPES
File "/var/www/html/plugins/jMQTT/resources/jmqttd/venv/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 15, in <module>
from pip._vendor.progress.helpers import HIDE_CURSOR, SHOW_CURSOR, WritelnMixin
ModuleNotFoundError: No module named 'pip._vendor.progress.helpers'
======================================================================
EDIT : j’ai essayé ça, mais ca semble à jour
sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-venv is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pareil pour ça :
sudo apt-get install -y python3-venv python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-venv is already the newest version (3.7.3-1).
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
et au final , je tourne en boucle :
sudo -u www-data python3 -m venv /var/www/html/plugins/jMQTT/resources/jmqttd/venv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']