jaymzh / pius

PGP Individual User Signer
Other
98 stars 25 forks source link

Pius crashes when signing #21

Closed zorun closed 8 years ago

zorun commented 8 years ago

Using the latest version of pius, 2.2.1, with gnupg 2.1.9 on Archlinux, pius can crash in two different ways when signing:

File "/usr/bin/pius", line 333, in 
main()
File "/usr/bin/pius", line 317, in main
if signer.sign_all_uids(key, retval):
File "/usr/lib/python2.7/site-packages/libpius/signer.py", line 781, in sign_all_uids
self.mailer.send_sig_mail(self.signer, key, uid, self)
File "/usr/lib/python2.7/site-packages/libpius/mailer.py", line 225, in send_sig_mail
signer, uid_data['email'], keyid, uid_data['file'], psign
File "/usr/lib/python2.7/site-packages/libpius/mailer.py", line 175, in _generate_pgp_mime_email
psigner.encrypt_and_sign_file(tmpfile, signed_tmpfile, keyid)
File "/usr/lib/python2.7/site-packages/libpius/signer.py", line 876, in encrypt_and_sign_file
raise EncryptionUnknownError(line)
libpius.exceptions.EncryptionUnknownError: [GNUPG:] PINENTRY_LAUNCHED 10282
Traceback (most recent call last):
  File "/usr/bin/pius", line 333, in 
    main()
  File "/usr/bin/pius", line 317, in main
    if signer.sign_all_uids(key, retval):
  File "/usr/lib/python2.7/site-packages/libpius/signer.py", line 781, in sign_all_uids
    self.mailer.send_sig_mail(self.signer, key, uid, self)
  File "/usr/lib/python2.7/site-packages/libpius/mailer.py", line 225, in send_sig_mail
    signer, uid_data['email'], keyid, uid_data['file'], psign
  File "/usr/lib/python2.7/site-packages/libpius/mailer.py", line 175, in _generate_pgp_mime_email
    psigner.encrypt_and_sign_file(tmpfile, signed_tmpfile, keyid)
  File "/usr/lib/python2.7/site-packages/libpius/signer.py", line 876, in encrypt_and_sign_file
    raise EncryptionUnknownError(line)
libpius.exceptions.EncryptionUnknownError: [GNUPG:] PROGRESS need_entropy X 8 16

It seems it has already been fixed in 79d096eea73b40ae97f91140bb2282eebfcf0d2f and 325b1fbb76bb45e852f6ef86feb52a79c2ff702f. Is it possible to release a new version with these changes?

Thanks!

jaymzh commented 8 years ago

Yeah I'll try to get a release out next week.

zorun commented 8 years ago

Hi, is there a planned date for the next minor release, with these fixes?

Thanks!

jaymzh commented 8 years ago

Sorry - holidays got to me, I'll try to do this soon.

jaymzh commented 8 years ago

2.2.2 is now out which fixes this.

zorun commented 8 years ago

Thanks!