Même problème chez moi. Mêmes symptômes que décrit ci-dessus sur la mise à jour des dépendances qui tombent en échec en boucle.
L’installation de la lib rust 1.48 tombe également en échec avec les mêmes erreurs.
En complément, voici les logs d’erreur chez moi. Le pb semble effectivement lié à l’installation du package cryptography.
Building wheels for collected packages: cryptography
Building wheel for cryptography (pyproject.toml): started
Building wheel for cryptography (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [193 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-cpython-37
creating build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-37/cryptography
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat
creating build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-37/cryptography/x509
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/backends/openssl
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.circleci'
adding license file 'LICENSE'
adding license file 'LICENSE.APACHE'
adding license file 'LICENSE.BSD'
adding license file 'LICENSE.PSF'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-37/cryptography
copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv7l-cpython-37/cryptography/hazmat/bindings/_rust
running build_ext
generating cffi module 'build/temp.linux-armv7l-cpython-37/cryptography.hazmat.bindings._openssl.c'
creating build/temp.linux-armv7l-cpython-37
running build_rust
/usr/local/lib/python3.7/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.7.3
platform: Linux-5.10.103-v7+-armv7l-with-debian-10.13
pip: 22.2.2
setuptools: 65.3.0
setuptools_rust: 1.5.2
rustc: n/a
=============================DEBUG ASSISTANCE=============================
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.48.0.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
+ echo 16
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end xiaomihome
+ rm /tmp/jeedom_install_in_progress_xiaomihome
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Egalement ; je vois que tu as « rustc: n/a » ; j’ai réussi à installer la 1.41 et il m’est indiqué que la 1.48 est nécessaire.
Je ne sais pas comment faire
Oui idem pour moi il etait en N/a le package rustc je l’ai installé à la main et message version 1.48…
Des personnes ont eu le même problème sur le plugin zigbee je sais pas s’ils ont corrigé en livrant un nouveau package …
Je ne sais pas de votre côté mais j’ai l’impression que ça ne pose pas spécialement de problème sur le bon fonctionnement du plugin.
En attendant une meilleure solution, de mon côté et pour éviter que l’installation des dépendances ne bouclent, j’ai commenté l’installation de python-miio.
cd /var/www/html/plugins/xiaomihome/plugin_info
nano packages.json
"yeelight" : {} (supprimer la virgule)
# "python-miio" : {}
Oui je confirme le plugin fonctionne perso j’ai désactivé gestion automatique pour ne plus qu’il essai d’installer. Également en attendant une solution
je galère aussi avec le même problème et j’ai essayé pas mal de choses comme vous.
pour rustc : n/a, malgré mon install à la main de rust (avec curl … etc…), je continue à avoir le n/a malgré des reboot. Comment as-tu fait pour que rustc soit vu comme « installé » ?
Python: 3.7.3
platform: Linux-5.15.38-v7±armv7l-with-debian-10.13
pip: 22.2.2
setuptools: 65.4.0
setuptools_rust: 1.5.2
rustc: n/a
l’install à la main de rust m’indique 1.64, ça devrait être >= à .48…
pi@jeedom-cugy:~ $ rustc -V
rustc 1.64.0 (a55dd71d5 2022-09-19)
Pareil chez moi. Gestion automatique désactivée et le plugin semble fonctionner correctement par ailleurs en attendant une correction.
J’ai lancé l’installation de la commande en direct sur mon pi mais j’ai plus en tête mince.
Le but :
pouvoir installer un package de cryptography qui satisfasse la dépendance de xiaomihome dans jeedom (et passer tout au vert dans OS/DB-Vérification des packages). Ensuite le daemon arrête de gueuler semble-t-il.
j’ai 2 jeedom en 10.x raspbian, les deux ont eu le problème.
3 étapes :
- installation de rustc
- désinstallation de cryptography
- ré-installation d’une version plus ancienne de cryptography
installation de rustc par apt-get sous 10.x :
possible mais n’installe que la version 1.41.
installation de rustc par rustup :
possible avec >curl --proto ‹ =https › --tlsv1.2 https://sh.rustup.rs -sSf | sh
rustc 1.64 s’installe dans l’OS. Mais pour une raison que je ne connais pas, pip3 ne reconnaît pas rustc pendant la compil/build des dépendances.
Maintenant le souci vient du build du package cryptography :
le latest cryptography 38 a besoin de rustc 1.48 ← impossible à faire marcher ce couple
par contre cryptography 37.0.4 a seulement besoin de rustc 1.41
donc ce que j’ai fait :
installation de rustc avec apt-get (version 1.41)
sudo apt-get install rustc
installation de cryptography en version 37.0.4
sudo pip3 uninstall cryptography
sudo pip3 install cryptography==37.0.4
ensuite la fameuse commande requise par xiaomi-home pour installer python-miio :
sudo pip3 install python-miio
le daemon a arrêté de me faire c…er toutes les 5 min.
Bonjour à tous.
Alors moi idem, impossible d’installer les dépendances depuis la mise à jour et demon KO.
J’ai un tas de packets qui ne s’installent pas mais apparemment pas pour les mêmes raisons que vous.
J’ai à chaque fois une erreur : Fatal Python error: initfsencoding: unable to load the file system codec
Je vous mets les logos si dessous si quelqu’un a une idée car là je sèche complet.
Merci pour votre aide
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_xiaomihome
+ echo 1
+ echo 2
++ awk '$1 <= 4'
++ find /usr/local/lib/python3.7/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ cut -f 2-
+ RESULTTODELETE=
++ sed 's, ,\ ,g'
++ echo ''
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 install --upgrade pip
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff94a1e010 (most recent call first):
/tmp/jeedom_fix_package: line 8: 1972 Aborted sudo pip3 install --upgrade pip
+ echo 4
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade pyudev
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffaff50010 (most recent call first):
/tmp/jeedom_fix_package: line 10: 1980 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade pyudev
+ echo 5
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade construct
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffb3574010 (most recent call first):
/tmp/jeedom_fix_package: line 12: 1983 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade construct
+ echo 6
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade requests
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff86316010 (most recent call first):
/tmp/jeedom_fix_package: line 14: 1985 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade requests
+ echo 7
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade pyserial
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff81611010 (most recent call first):
/tmp/jeedom_fix_package: line 16: 1987 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade pyserial
+ echo 8
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade future
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffaae2c010 (most recent call first):
/tmp/jeedom_fix_package: line 18: 1989 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade future
+ echo 9
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade pycrypto
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffbb3ff010 (most recent call first):
/tmp/jeedom_fix_package: line 20: 1991 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade pycrypto
+ echo 10
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade cryptography
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff93cbf010 (most recent call first):
/tmp/jeedom_fix_package: line 22: 1993 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade cryptography
+ echo 11
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade enum34
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff9b3e0010 (most recent call first):
/tmp/jeedom_fix_package: line 24: 1995 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade enum34
+ echo 12
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade enum-compat
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffa441a010 (most recent call first):
/tmp/jeedom_fix_package: line 26: 1997 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade enum-compat
+ echo 13
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade wheel
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff996d6010 (most recent call first):
/tmp/jeedom_fix_package: line 28: 1999 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade wheel
+ echo 14
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade yeelight
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffffb61a0010 (most recent call first):
/tmp/jeedom_fix_package: line 30: 2001 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade yeelight
+ echo 15
+ sudo pip3 install --no-cache-dir --force-reinstall --upgrade python-miio
Fatal Python error: initfsencoding: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
Current thread 0x0000ffff85f90010 (most recent call first):
/tmp/jeedom_fix_package: line 32: 2003 Aborted sudo pip3 install --no-cache-dir --force-reinstall --upgrade python-miio
+ echo 16
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end xiaomihome
+ rm /tmp/jeedom_install_in_progress_xiaomihome
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Bien vu c’est plutôt bien joué mais lors d’une mise à jour de type apt get update, cryptographie va se remettre à jour avec une version plus récente et lors d’une prochaine mise à jour du plugin on aura de nouveau l’erreur ?
cryptography c’est un package python, donc apt-get ne va pas le mettre à jour.
non, à mon avis… on est tout bon.
mon sentiment c’est que c’est notre 10.x qui pose problème. A mon avis en 11.x on aurait rustc par apt en 1.48 ou plus, et on n’aurait pas à faire cette manip.
mais passer en 11.x avec jeedom et le bordel avec python 2/3 pour certains plugins, en particulier z-wave, c’est exclu pour le moment à mon avis.
Et d’après toi le dev peut apporter un contournement ou il faut corriger le problème avec cryptography ?
En espérant pas d’autres effets de bord pour d’autres plugins etc…
Moi je suis pas développeur, mais ici c’est un problème de dépendances sur des packages python qui sont développés par d’autres, et dans ce cas précis un développement rust à l’intérieur du package python. Le développeur du plugin ne peut pas faire de miracles non plus, et j’avoue que c’est un sacré bazar tout le système python 2, 3, les pip, etc… et en plus ça dépend des OS, des versions de linux, etc…
et ceux de cryptography te diront que ça marche très bien, il « suffit » d’avoir rustc >1.48 .-).
personellement que cryptography soit en v35 ou v38 m’importe peu sur mon système. Si ça permet de builder avec rustc 1.41…
J’aimerais surtout pouvoir à terme passer en bullseye 11.x et avoir un jeedom fully compatible (je parle des plugins).
ps. j’aurais bien aimé comprendre pourquoi l’install de rustc avec rustup n’est pas « vue » par pip3, malgré le changement des PATHs, etc… mais là j’ai plus de temps à mettre dessus.
Bonjour @lunarok, pourrais-tu jeter un oeil expert. Stp
j’ai bien fait de passer aussi : dépendances en vrac comme décrit sur le fil, mais le plugin semble fonctionner correctement. Je n’avais pas MAJ depuis un moment, en voyant la numérotation je me suis dit qu’il était temps…
wait&see.
J’ai le meme souci après la MàJ
Y a-t-il un moyen de revenir à la version precedente du plugin ?
Avec une ancienne sauvegarde ?
Pour l’instant perso j’attends un retour du dev s’il peut faire quelque chose sinon je tenterai la version expliqué au dessus par @cgail914 de d’installer une version spécifique de cryptography
Bon j’ai trouvé plus simple pour installer la dernière version de cryptography, mais il faut installer rustc avec le compte root, des sudo depuis le compte utilisateur ne suffisent pas. C’est probablement plus « propre » que de downgrader cryptography même si ça marche très bien.
-
on enlève rustc si installé par le package manager
sudo apt-get remove rustc -
on se loggue en root
sudo su - -
on installe rustc avec rustup (root)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -
on modifie la variable d’environnement PATH (root)
. "$HOME/.cargo/env" -
on ré-installe le package cryptography avec pip3 (root)
python3 -m pip uninstall cryptography
python3 -m pip install --upgrade cryptography
sur mes 2xrpi3 et 1xrpi4 en 10.x ça recompile et ça fonctionne.