drduh / YubiKey-Guide

Guide to using YubiKey for GnuPG and SSH
http://drduh.github.io/YubiKey-Guide/
MIT License
11.17k stars 1.19k forks source link

pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.6.1 which is incompatible. #202

Closed bengim closed 4 years ago

bengim commented 4 years ago

On Debian 10.5.0, after "sudo apt -y install python-pip python-pyscard" I get "pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.6.1 which is incompatible." (see the attached screen shot) Screen1

Possible solution, I've found might be putting "pip install PyOpenSSL" before "pip install yubikey-manager". Like so: $ sudo apt -y install python-pip python-pyscard $ pip install PyOpenSSL $ pip install yubikey-manager

or (based on dragon788's pulls request about Python2 EOL https://github.com/drduh/YubiKey-Guide/pull/201): $ sudo apt -y install python3-pip python3-pyscard $ pip3 install PyOpenSSL $ pip3 install yubikey-manager

It seems, installing PyOpenSSL explicitly installs also the the right version of cryptography. See also pull request https://github.com/drduh/YubiKey-Guide/pull/203 for the solution

drduh commented 4 years ago

Thanks for the PR!

turjoy-real commented 2 years ago

Noice!