Defaulting to user installation because normal site-packages is not writeable
Collecting speedtest-cli==2.1.3
Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
Installing collected packages: speedtest-cli
WARNING: The scripts speedtest and speedtest-cli are installed in '/var/www/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed speedtest-cli-2.1.3
mais les dépendances sont toujours KO
********************************************************
* Installation des dépendances *
********************************************************
***** Commande: sudo apt-get update **********
Hit:1 http://www.deb-multimedia.org buster InRelease
Hit:2 http://ftp.uk.debian.org/debian buster InRelease
Hit:3 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Hit:6 https://deb.nodesource.com/node_12.x buster InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric buster InRelease
Err:5 https://repo.jeedom.com/odroid stable InRelease
502 Bad Gateway [IP: 51.178.69.128 443]
Reading package lists...
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease 502 Bad Gateway [IP: 51.178.69.128 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
***** Commande: install python-pip**********
Reading package lists...
Building dependency tree...
Reading state information...
python-pip is already the newest version (18.1-5).
0 upgraded, 0 newly installed, 0 to remove and 219 not upgraded.
***** Commande: install speedtest-cli **********
Collecting git+https://github.com/sivel/speedtest-cli.git
Cloning https://github.com/sivel/speedtest-cli.git to /tmp/pip-req-build-mf94r3fh
Running command git clone --filter=blob:none --quiet https://github.com/sivel/speedtest-cli.git /tmp/pip-req-build-mf94r3fh
Resolved https://github.com/sivel/speedtest-cli.git to commit 22210ca35228f0bbcef75a7c14587c4ecb875ab4
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
/usr/local/lib/python3.7/dist-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'entry_points'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'egg_info'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
********************************************************
* Installation terminée *
********************************************************
Je pense que tu as deux problèmes, l’un est celui-ci:
et tu as déjà eu ce problème sur un autre post récemment si je ne me trompe pas (mais qu’as-tu changé sur ton install?)
et le problème de version de speedtest-cli => il ne faut pas relancer les dépendances après avoir exécuter les commandes que je donnais sinon c’est la mauvaise version qui est de nouveau installée;
Évidemment si le core relance lui-même les dépendances car une autre lib manque ca ne va pas aller; je suppose que c’est ce qu’il se passe mais que cette lib ne s’installe pas à cause de ton environnement qui est cassé…
=> il faut d’abord réparer cela, ensuite exécuter les commandes pour patcher speedtest-cli et à ce moment le core n’essaiera plus d’installer les dépendances.
********************************************************
* Installation des dépendances *
********************************************************
***** Commande: sudo apt-get update **********
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://www.deb-multimedia.org buster InRelease
Get:4 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Hit:5 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Err:2 https://repo.jeedom.com/odroid stable InRelease
502 Bad Gateway [IP: 51.210.253.116 443]
Fetched 122 kB in 15s (7,869 B/s)
Reading package lists...
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease 502 Bad Gateway [IP: 51.210.253.116 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
***** Commande: install python-pip**********
Reading package lists...
Building dependency tree...
Reading state information...
python-pip is already the newest version (18.1-5).
The following package was automatically installed and is no longer required:
libqt5sql5
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 190 not upgraded.
***** Commande: install speedtest-cli **********
Collecting git+https://github.com/sivel/speedtest-cli.git
Cloning https://github.com/sivel/speedtest-cli.git to /tmp/pip-req-build-tz5950hs
Running command git clone --filter=blob:none --quiet https://github.com/sivel/speedtest-cli.git /tmp/pip-req-build-tz5950hs
Resolved https://github.com/sivel/speedtest-cli.git to commit 22210ca35228f0bbcef75a7c14587c4ecb875ab4
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
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
********************************************************
* Installation terminée *
********************************************************
Avec un warning :
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: 12. Virtual Environments and Packages — Python 3.11.5 documentation
@Spine : Je suppose même solution pour moi ?
(je suis également en
)
Je viens sur cliquer sur ton lien, mais ça dépasse mes compétences. Ou dois-je mettre ces lignes de codes ?
J’ai exécuté sudo pip uninstall -y speedtest-cli
il me retourne
Found existing installation: speedtest-cli 2.1.4b1
Uninstalling speedtest-cli-2.1.4b1:
Successfully uninstalled speedtest-cli-2.1.4b1
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
Puis
sudo pip install speedtest-cli==2.1.3
Il me retourne
Collecting speedtest-cli==2.1.3
Downloading speedtest_cli-2.1.3-py2.py3-none-any.whl (23 kB)
Installing collected packages: speedtest-cli
Successfully installed speedtest-cli-2.1.3
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
Si je retourne dans la page réglage du plugin.
Il est sur OK !
Je verrai dés ce soir si j’ai de nouveau des erreurs « Attention : installation des dépendances lancée »
MERCIIII
et bonne journée
Par contre en tapant maintenant
sudo pip list
j’ai
pour un autre module, que j’utilise depuis un script dans le plugin script, il a fallut que je l’install avec le user www-data, sinon il ne le trouvait pas