Problème mise à jour Package Python 2

Bonjour,
Je tente de mettre à jour mes packages python 2 : PyGObject et pyxdg

Cependant, j’ai des erreurs, pourriez-vous m’aider pour la solution ?

Merci
FX



******************Begin of package upgrade type pip2******************
+ sudo pip2 install --force-reinstall --upgrade PyGObject
/usr/local/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.utils import int_from_bytes
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting PyGObject
Using cached PyGObject-3.36.1.tar.gz (716 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hT04pL/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (59 lines):
/usr/local/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.utils import int_from_bytes
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting setuptools
Using cached setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting pycairo
Using cached pycairo-1.18.2.tar.gz (200 kB)
Building wheels for collected packages: pycairo
Building wheel for pycairo (setup.py): started
Building wheel for pycairo (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3Z1Hk3
cwd: /tmp/pip-install-rgUwHp/pycairo/
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-2.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-2.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-2.7/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1
----------------------------------------
ERROR: Failed building wheel for pycairo
Running setup.py clean for pycairo
Failed to build pycairo
Installing collected packages: setuptools, wheel, pycairo
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gRTAMC/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-hT04pL/overlay --compile --install-headers /tmp/pip-build-env-hT04pL/overlay/include/python2.7/pycairo
cwd: /tmp/pip-install-rgUwHp/pycairo/
Complete output (15 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-2.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-2.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-2.7/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rgUwHp/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gRTAMC/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-hT04pL/overlay --compile --install-headers /tmp/pip-build-env-hT04pL/overlay/include/python2.7/pycairo Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hT04pL/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
+ sudo pip2 install --force-reinstall --upgrade pyxdg
/usr/local/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.utils import int_from_bytes
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pyxdg
Using cached pyxdg-0.28-py2.py3-none-any.whl (49 kB)
Installing collected packages: pyxdg
Attempting uninstall: pyxdg
Found existing installation: pyxdg 0.25
ERROR: Cannot uninstall 'pyxdg'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
+ echo '*******************End of package installation******************'
*******************End of package installation******************

saisissez ou collez du code ici

Bonjour

Quelle est votre motivation pour ces mises a jour ?

Si tout fonctionne correctement, je suis très circonspect sur ce genre de mise à jour de python, 2 ou 3.

Antoine

2 « J'aime »

Je suis aussi très circonspect sur l’intérêt de ces maj.
Mon expérience est assez négative … Toutes les tentatives que j’ai pu faire se sont toutes soldées par une réinstallation total de python voir de l’os, soit parce des plugins ne fonctionnaient plus ensuite, soit parce qu’il m’était impossible d’en installer d’autres à cause de depnsances de version cassées.

L’existence même de cette fonctionnalité en 4.3 m’interpelle.

Norbert

Bonjour,

TT fonctionne ttb sur ma box. J’ai cependant pris l’habitude de mettre à jour les pacakges rapidement. Peut-être n’est ce pas la bonne stratégie?

Bonjour,

Et avant que cet écran n’existe, le faisiez-vous?
Si oui comment?
Si oui, pourquoi avoir changer de méthode?

Concernant votre problème je pense qu’il faudrait reinstaller pip pour python2 correctement (il y a déjà plein de post dans lesquels je donne la syntaxe) et ensuite réinstaller wheel et setuptools mais je crains que ca ne suffise pas.

bonsoir,

j’ai personnellement commis la même erreur en tentant de mettre à jour tous les os packages depuis l’interface. je suis informaticien et j’ai pour habitude de mettre mes machines Via apt-get update et apt-get upgrade. donc la nouvelle proposition de l’interface ne m’a pas surpris. Et pourquoi pas PIP 2 ou 3.
==> big PB. J’ai donc profité de ce PB pour passé sur BULLSEYE et réinstallé ma config. MA QUESTION A L’EQUIPE JEEDOM : que faire de ces boutons MAJ packages PYTHON ? aucune explication, ni risque identifié. Tous le monde n’a pas la connaissance et fournir des fonctions puissantes sans information sur les risques me parai pas digne de la confiance que je porte à l’équipe Jeedom. Pour ma part j’assume le faite d’avoir utilisé ces fonctionnalités mais je reste sur mes apt up… Dois-je faire un ticket afin que l’équipe soit au courant de mon avis ?