This is not an official python ProtonMail API client. it allows you to read, send and delete messages in protonmail, as well as render a ready-made template with embedded images.
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/protonmail/client.py", line 118, in read_message
message.body = self.pgp.decrypt(message.body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/protonmail/pgp.py", line 53, in decrypt
with pgp_private_key.unlock(passphrase) as key:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/pgpy/pgp.py", line 1811, in unlock
sk._key.unprotect(passphrase)
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/pgpy/packet/packets.py", line 941, in unprotect
self.keymaterial.decrypt_keyblob(passphrase)
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/pgpy/packet/fields.py", line 1559, in decrypt_keyblob
kb = super(EdDSAPriv, self).decrypt_keyblob(passphrase)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/edoardo/Library/Python/3.11/lib/python/site-packages/pgpy/packet/fields.py", line 1264, in decrypt_keyblob
raise PGPDecryptionError("Passphrase was incorrect!")
pgpy.errors.PGPDecryptionError: Passphrase was incorrect!
Maybe I'm doing something wrong, I got the phrase from here
hello, you enter recovery phrase but you need pgp passphrase from the Email encryption keys section, you create the passphrase when you click on the export private key button
Hi, I'm having problems reading messages due to an error thrown by
pgpy
. This is my current code:But I keep getting this error:
Maybe I'm doing something wrong, I got the phrase from here
Is it correct? What am I doing wrong?