Package: impass
Version: 0.12-1
Severity: normal

joey@darkstar:~/.impass>impass  add
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/impass/db.py", line 105, in _decryptDB
    data, _, vfy = self._gpg.decrypt(f, verify=[k])
  File "/usr/lib/python3/dist-packages/gpg/core.py", line 454, in decrypt
    raise e
  File "/usr/lib/python3/dist-packages/gpg/core.py", line 452, in decrypt
    results=results)
gpg.errors.MissingSignatures: E85A5F63B31D24C1EBF0D81CC910D9222512E3C7

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/impass", line 11, in <module>
    load_entry_point('impass==0.12', 'console_scripts', 'impass')()
  File "/usr/lib/python3/dist-packages/impass/__main__.py", line 594, in main
    func(args)
  File "/usr/lib/python3/dist-packages/impass/__main__.py", line 201, in add
    db = open_db(keyid, create=True)
  File "/usr/lib/python3/dist-packages/impass/__main__.py", line 51, in open_db
    db = Database(DBPATH, keyid)
  File "/usr/lib/python3/dist-packages/impass/db.py", line 57, in __init__
    cleardata = self._decryptDB(self._dbpath)
  File "/usr/lib/python3/dist-packages/impass/db.py", line 112, in _decryptDB
    data, _, _ = self._gpg.decrypt(try2, verify=False)
  File "/usr/lib/python3/dist-packages/gpg/core.py", line 431, in decrypt
    for s in verify_result.signatures):
AttributeError: 'NoneType' object has no attribute 'signatures'

E85A5F63B31D24C1EBF0D81CC910D9222512E3C7 is my gpg key, and the db is signed
by a subkey of that key.

joey@darkstar:~/.impass>gpg --decrypt db >/dev/null
gpg: encrypted with 4096-bit RSA key, ID B38389A117065459, created 2009-06-17
      "Joey Hess <jo...@joeyh.name>"
gpg: Signature made Fri Oct 12 12:00:35 2018 JEST
gpg:                using RSA key 28A500C35207EAB72F6C0F25DB12DB0FF05F8F38
gpg: Good signature from "Joey Hess <jo...@joeyh.name>" [unknown]
gpg:                 aka "Joey Hess <i...@joeyh.name>" [unknown]
gpg:                 aka "Joey Hess <j...@kitenet.net>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: E85A 5F63 B31D 24C1 EBF0  D81C C910 D922 2512 E3C7
     Subkey fingerprint: 28A5 00C3 5207 EAB7 2F6C  0F25 DB12 DB0F F05F 8F38

Apparently the problem is due to the warning; editing the key and
setting it to ultimately trusted avoided the crash, but

a) impass used to work despite that (it displated a red warning in the gui),
   and has for some reason stopped working due to a dependency upgrade,
   I think from python3-gpg 1.11.1-1 to 1.12.0-4
b) this crash makes the problem nearly impossible to understand

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages impass depends on:
ii  python3      3.6.6-1
ii  python3-gi   3.30.1-1
ii  python3-gpg  1.12.0-4

Versions of packages impass recommends:
ii  gir1.2-gtk-3.0  3.24.1-2
ii  python3-xdo     0.4-1
ii  xclip           0.12+svn84-4+b1

impass suggests no packages.

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: PGP signature

Reply via email to