Skip to content

ImportError: cannot import name 'pkcs7' #2

Answered by DDvO
CLSMCSMII asked this question in Q&A
Discussion options

You must be logged in to vote

@polhenarejos, for some reason setup.py script does not get the version of the cryptography module right.
I got:

Searching for cryptography>=2.1.4
Reading https://pypi.org/simple/cryptography/
Downloading https://files.pythonhosted.org/packages/10/91/90b8d4cd611ac2aa526290ae4b4285aa5ea57ee191c63c2f3d04170d7683/cryptography-35.0.0.tar.gz#sha256=9933f28f70d0517686bd7de36166dda42094eac49415459d9bdf5e7df3e0086d
Best match: cryptography 35.0.0
Processing cryptography-35.0.0.tar.gz

since on my Debian 10 system, version 2.8 was installed, and this does not include pkcs7 support.
According to https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst it was added in version 3.0 and extended in…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by polhenarejos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants