isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
426 stars 171 forks source link

GPG version parsing error on Windows #254

Closed mdedonno1337 closed 1 year ago

mdedonno1337 commented 5 years ago

Error with the version parsing on Windows because of the "\r" before the "\n".

Traceback (most recent call last): File "", line 6, in gpg = gnupg.GPG( homedir = "C:/gnupg", binary = "C:/bin/gpg.exe" ) File "C:\Python27\lib\site-packages\pretty_bad_protocol\gnupg.py", line 126, in init ignore_homedir_permissions=ignore_homedir_permissions, File "C:\Python27\lib\site-packages\pretty_bad_protocol_meta.py", line 250, in init self._check_sane_and_get_gpg_version() File "C:\Python27\lib\site-packages\pretty_bad_protocol_meta.py", line 533, in _check_sane_and_get_gpg_version raise RuntimeError("Got invalid version line from gpg: %s\n" % self.binary_version) RuntimeError: Got invalid version line from gpg: 2.2.15