Bonjour à toute la communauté,
Je reviens vers vous aujourd’hui car je n’arrive pas à résoudre et faire aboutir les update python 2 et 3 de mon système.
Voici ma config actuelle :
- Jeedom sous core 4.3.10 installé sur un pc.
- Package OS sont tous à jour.
Lorsque je tente une mise à jour côté python 2, j’obtiens les logs suivants :
+ echo '*******************Begin of package upgrade type pip2******************'
*******************Begin of package upgrade type pip2******************
+ sudo pip2 install --force-reinstall --upgrade entrypoints
/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 entrypoints
Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting configparser>=3.5; python_version == "2.7"
Using cached configparser-4.0.2-py2.py3-none-any.whl (22 kB)
Installing collected packages: configparser, entrypoints
Attempting uninstall: configparser
Found existing installation: configparser 4.0.2
Uninstalling configparser-4.0.2:
Successfully uninstalled configparser-4.0.2
Attempting uninstall: entrypoints
Found existing installation: entrypoints 0.3
Uninstalling entrypoints-0.3:
Successfully uninstalled entrypoints-0.3
Successfully installed configparser-4.0.2 entrypoints-0.3
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ sudo pip2 install --force-reinstall --upgrade pycurl
/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 pycurl
Using cached pycurl-7.43.0.5.tar.gz (216 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g85A0Q/pycurl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g85A0Q/pycurl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-7aVQq2
cwd: /tmp/pip-install-g85A0Q/pycurl/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-g85A0Q/pycurl/setup.py", line 961, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip-install-g85A0Q/pycurl/setup.py", line 623, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip-install-g85A0Q/pycurl/setup.py", line 101, in __init__
self.configure()
File "/tmp/pip-install-g85A0Q/pycurl/setup.py", line 238, in configure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ 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-_EOxNG/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (61 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-MfObqT/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-MfObqT/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-q9imm0
cwd: /tmp/pip-install-MfObqT/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-MfObqT/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-MfObqT/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-dfkGw5/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-_EOxNG/overlay --compile --install-headers /tmp/pip-build-env-_EOxNG/overlay/include/python2.7/pycairo
cwd: /tmp/pip-install-MfObqT/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-MfObqT/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-MfObqT/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-dfkGw5/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-_EOxNG/overlay --compile --install-headers /tmp/pip-build-env-_EOxNG/overlay/include/python2.7/pycairo Check the logs for full command output.
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
----------------------------------------
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-_EOxNG/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.
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ sudo pip2 install --force-reinstall --upgrade python-debianbts
/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.
Processing /root/.cache/pip/wheels/b9/02/35/9b83058d4772e0a85aec10aacf5ec6f6d461836effb51b7c5e/python_debianbts-2.10.0-py2.py3-none-any.whl
Processing /root/.cache/pip/wheels/e8/a2/d2/8d3a58a958740a81c206bd2c4b7b32dcfda3094610de945a65/PySimpleSOAP-1.16.2-py2-none-any.whl
Installing collected packages: pysimplesoap, python-debianbts
Attempting uninstall: pysimplesoap
Found existing installation: PySimpleSOAP 1.16.2
Uninstalling PySimpleSOAP-1.16.2:
Successfully uninstalled PySimpleSOAP-1.16.2
Attempting uninstall: python-debianbts
Found existing installation: python-debianbts 2.10.0
Uninstalling python-debianbts-2.10.0:
Successfully uninstalled python-debianbts-2.10.0
Successfully installed pysimplesoap-1.16.2 python-debianbts-2.10.0
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ 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.
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ sudo pip2 install --force-reinstall --upgrade wheel
/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 wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel
Attempting uninstall: wheel
Found existing installation: wheel 0.37.1
Uninstalling wheel-0.37.1:
Successfully uninstalled wheel-0.37.1
Successfully installed wheel-0.37.1
WARNING: You are using pip version 20.3.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Et lorsque je tente Python 3 j’obtient :
+ echo '*******************Begin of package upgrade type pip3******************'
*******************Begin of package upgrade type pip3******************
+ sudo pip3 install --force-reinstall --upgrade entrypoints
Collecting entrypoints
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Installing collected packages: entrypoints
Attempting uninstall: entrypoints
Found existing installation: entrypoints 0.3
ERROR: Cannot uninstall 'entrypoints'. 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.
+ sudo pip3 install --force-reinstall --upgrade python-debianbts
Collecting python-debianbts
Using cached python_debianbts-3.2.4-py3-none-any.whl (10 kB)
Collecting pysimplesoap
Using cached PySimpleSOAP-1.16.2-py3-none-any.whl
Installing collected packages: pysimplesoap, python-debianbts
Attempting uninstall: pysimplesoap
Found existing installation: PySimpleSOAP 1.16.2
ERROR: Cannot uninstall 'PySimpleSOAP'. 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.
+ sudo pip3 install --force-reinstall --upgrade pyxdg
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.
+ sudo pip3 install --force-reinstall --upgrade wheel
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel
Attempting uninstall: wheel
Found existing installation: wheel 0.38.2
Uninstalling wheel-0.38.2:
Successfully uninstalled wheel-0.38.2
Successfully installed wheel-0.38.4
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
+ echo '*******************End of package installation******************'
*******************End of package installation******************
J’ai bien tenté de lancer les installations recommandé dans les logs comme :
- sudo pip3 install --force-reinstall --upgrade python-debianbts
avec comme retour :
Collecting python-debianbts
Using cached python_debianbts-3.2.4-py3-none-any.whl (10 kB)
Collecting pysimplesoap
Using cached PySimpleSOAP-1.16.2-py3-none-any.whl
Installing collected packages: pysimplesoap, python-debianbts
Attempting uninstall: pysimplesoap
Found existing installation: PySimpleSOAP 1.16.2
ERROR: Cannot uninstall 'PySimpleSOAP'. 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.
Ou encore pour PIP 2 :
/usr/bin/python -m pip install --upgrade pip
Avec le résultat suivant :
/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.
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (20.3.4)
Du coup je ne parviens pas à savoir dans quel ordre procéder pour réussir à faire ces mise à jours.
Quelqu’un aurait une idée ou le savoir-faire ?
Merci à vous et très bon-week end en avance.