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

Unknown status message: 'ENCRYPTION_COMPLIANCE_MODE' #207

Closed
Paradoxis opened this issue Sep 26, 2017 · 5 comments
Closed

Unknown status message: 'ENCRYPTION_COMPLIANCE_MODE' #207

Paradoxis opened this issue Sep 26, 2017 · 5 comments
Assignees

Comments

@Paradoxis
Copy link

Paradoxis commented Sep 26, 2017

Currently getting this random exception from some thread when encrypting a message.

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/luke/Documents/Projects/email-analysis/venv/lib/python3.6/site-packages/gnupg/_meta.py", line 650, in _read_response
    result._handle_status(keyword, value)
  File "/Users/luke/Documents/Projects/email-analysis/venv/lib/python3.6/site-packages/gnupg/_parsers.py", line 1757, in _handle_status
    super(Crypt, self)._handle_status(key, value)
  File "/Users/luke/Documents/Projects/email-analysis/venv/lib/python3.6/site-packages/gnupg/_parsers.py", line 1656, in _handle_status
    raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'ENCRYPTION_COMPLIANCE_MODE'

Dirty monkey patch:

import gnupg._parsers
gnupg._parsers.Verify.TRUST_LEVELS["ENCRYPTION_COMPLIANCE_MODE"] = 23

Platform: OSX 10.12.6
GPG version: 2.2.0

@Paradoxis Paradoxis changed the title Unknown status message: Unknown status message: 'ENCRYPTION_COMPLIANCE_MODE' Sep 26, 2017
@txtcoder
Copy link

txtcoder commented Oct 5, 2017

I have the same problem, did you end up finding any solutions?

@Paradoxis
Copy link
Author

@txtcoder I used the monkeypatch I supplied :)

OdyX added a commit to OdyX/python-gnupg that referenced this issue Jan 5, 2018
OdyX added a commit to OdyX/python-gnupg that referenced this issue Jan 7, 2018
@ScottABrown
Copy link

Is this fix merged? I'm still hitting the error for Unknown status message: 'ENCRYPTION_COMPLIANCE_MODE' with an install of the current head of master. The monkey patch seems to fix it.

Thanks,
-Scott

@isislovecruft
Copy link
Owner

This is fixed in #220 which will be included in the next release (3.0.3).

@arty-hlr
Copy link

Same error here, and the monkey patch did not solve it :/

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

No branches or pull requests

5 participants