Change GNUPG home directory variable#1679
Open
joshwenke wants to merge 1 commit intosimple-login:masterfrom
Open
Change GNUPG home directory variable#1679joshwenke wants to merge 1 commit intosimple-login:masterfrom
joshwenke wants to merge 1 commit intosimple-login:masterfrom
Conversation
In newer versions of gnupg, it uses `homedir` instead of `gnupghome`
When using gnupghome in the simplelogin.env I get this error when running the docker command to prepare the database by running the migration:
...... other errors above
File "/code/app/dashboard/views/mailbox_detail.py", line 20, in <module>
from app.pgp_utils import PGPException, load_public_key_and_check
File "/code/app/pgp_utils.py", line 14, in <module>
gpg = gnupg.GPG(gnupghome=GNUPGHOME)
File "/usr/local/lib/python3.7/site-packages/gnupg.py", line 827, in __init__
raise ValueError('gnupghome should be a directory (it isn\'t): %s' % gnupghome)
ValueError: gnupghome should be a directory (it isn't): /sl/pgp
Changing my simplelogin.env to use homedir instead, made this process work. Hope this helps.
Contributor
|
@joshwenke thanks but as we pin the version of gpg as you can see on Line 2668 in c09b5bc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In newer versions of gnupg, it uses
homedirinstead ofgnupghome> https://pythonhosted.org/gnupg/gnupg.htmlWhen using gnupghome in the simplelogin.env I get this error when running the docker command to prepare the database by running the migration (and /sl/pgp is definitely a directory)
Changing my simplelogin.env to use homedir instead, made this process work. Hope this helps.