Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suddenly pgperror , after many succesful days #55

Open
jonabert opened this issue Sep 25, 2024 · 0 comments
Open

suddenly pgperror , after many succesful days #55

jonabert opened this issue Sep 25, 2024 · 0 comments

Comments

@jonabert
Copy link

File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/types.py", line 539, in call
obj.parse(packet)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/packet/packets.py", line 885, in parse
self.keymaterial.parse(packet[:pend])
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/packet/fields.py", line 1625, in parse
ECDHPub.parse(self, packet)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/packet/fields.py", line 724, in parse
self.kdf.parse(packet)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/packet/fields.py", line 1115, in parse
assert packet[:2] == b'\x03\x01'
AssertionError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/jonathan/r2r/r2r/proton_mail_fetch.py", line 59, in
full_message = proton.read_message(message)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/protonmail/client.py", line 128, in read_message
message.body = self.pgp.decrypt(message.body)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/protonmail/pgp.py", line 37, in decrypt
pgp_private_key, _ = self.key(private_key)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/protonmail/pgp.py", line 146, in key
return PGPKey.from_blob(blob)
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/types.py", line 195, in from_blob
po = obj.parse(bytearray(blob, 'latin-1'))
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/pgp.py", line 2647, in parse
[ operator.ior(pgpobj, PGPSignature() | sig) for sig in group if not isinstance(sig, Opaque) ]
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/pgp.py", line 2647, in
[ operator.ior(pgpobj, PGPSignature() | sig) for sig in group if not isinstance(sig, Opaque) ]
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/pgp.py", line 2617, in _getpkt
return Packet(d) if d else None
File "/home/jonathan/anaconda3/envs/got/lib/python3.10/site-packages/pgpy/types.py", line 542, in call
raise PGPError(str(ex)) from ex
pgpy.errors.PGPError
(got) jonathan@GAMER005:~/r2r/r2r$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant