If instead I specify the homedir path with backslashes when instantiating GPG, I obtain:
In [8]: gpg = gnupg.GPG(binary='C:/gnupg/gpg.exe', homedir='C:\\Users\\instantname\\AppData\\Roaming\\gnupg')
Traceback (most recent call last):
File "<ipython-input-9-474e162cf5f4>", line 1, in <module>
gpg = gnupg.GPG(binary='C:/gnupg/gpg.exe', homedir='C:\\Users\\instantname\\AppData\\Roaming\\gnupg')
File "C:\Users\instantname\Anaconda3\lib\site-packages\gnupg\gnupg.py", line 125, in __init__
ignore_homedir_permissions=ignore_homedir_permissions,
File "C:\Users\instantname\Anaconda3\lib\site-packages\gnupg\_meta.py", line 183, in __init__
self.homedir = os.path.expanduser(home) if home else _util._conf
File "C:\Users\instantname\Anaconda3\lib\site-packages\gnupg\_util.py", line 765, in __set__
getattr(obj, self.fset.__name__)(value)
File "C:\Users\instantname\Anaconda3\lib\site-packages\gnupg\_meta.py", line 440, in _homedir_setter
raise RuntimeError(str(ae))
RuntimeError: Homedir ''C:\Users\instantname\AppData\Roaming\gnupg'' needs read/write permissions
System: Windows 7, GnuPG 1.4.22, Python 3.6.0, python-gnupg 2.3.0
I tried to create a key like that:
This lead to the following error:
The directories seem to be messed up.
If instead I specify the homedir path with backslashes when instantiating GPG, I obtain:
although I do have the read/write permissions.