Duplicity fails on MacOS because GPG version parsing fails

Bug #1654220 reported by Kenneth Newwood
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Duplicity version: duplicity 0.7.11
Python version: Python 2.7.13
OS Distro and version: OS X El Capitan 10.11.6

Duplicity 0.7.11 tries to parse the GPG version but fails because the GPG version string of GnuPG for Mac OS differs slightly (e.g. "gpg (GnuPG/MacGPG2) 2.0.30"). This leads to a fatal "GPGError: failed to determine gpg version of None from gpg (GnuPG/MacGPG2) 2.0.30".

For a patch see the attachment.

Revision history for this message
Kenneth Newwood (weizenspreu) wrote :
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1654220] [NEW] Duplicity fails on MacOS because GPG version parsing fails

Interesting, on my Mac Sierra, it says:

ken@dione:~/stealth$ gpg --version
gpg (GnuPG) 2.0.30
libgcrypt 1.7.5
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Not sure who rebranded it, but FSF might just be interested to know....

On Thu, Jan 5, 2017 at 5:19 AM, Kenneth Newwood <email address hidden>
wrote:

> Public bug reported:
>
> Duplicity version: duplicity 0.7.11
> Python version: Python 2.7.13
> OS Distro and version: OS X El Capitan 10.11.6
>
> Duplicity 0.7.11 tries to parse the GPG version but fails because the
> GPG version string of GnuPG for Mac OS differs slightly (e.g. "gpg
> (GnuPG/MacGPG2) 2.0.30"). This leads to a fatal "GPGError: failed to
> determine gpg version of None from gpg (GnuPG/MacGPG2) 2.0.30".
>
> For a patch see the attachment.
>
> ** Affects: duplicity
> Importance: Undecided
> Status: New
>
> ** Patch added: "fixed version parsing"
> https://bugs.launchpad.net/bugs/1654220/+attachment/
> 4800339/+files/duplicity_patch.txt
>
> --
> You received this bug notification because you are subscribed to
> Duplicity.
> https://bugs.launchpad.net/bugs/1654220
>
> Title:
> Duplicity fails on MacOS because GPG version parsing fails
>
> Status in Duplicity:
> New
>
> Bug description:
> Duplicity version: duplicity 0.7.11
> Python version: Python 2.7.13
> OS Distro and version: OS X El Capitan 10.11.6
>
> Duplicity 0.7.11 tries to parse the GPG version but fails because the
> GPG version string of GnuPG for Mac OS differs slightly (e.g. "gpg
> (GnuPG/MacGPG2) 2.0.30"). This leads to a fatal "GPGError: failed to
> determine gpg version of None from gpg (GnuPG/MacGPG2) 2.0.30".
>
> For a patch see the attachment.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1654220/+subscriptions
>

Revision history for this message
Kenneth Newwood (weizenspreu) wrote :

MacGPG2 (https://github.com/GPGTools/MacGPG2) is the name of the Mac-specific GPG version of GPGtools (https://gpgtools.org). GPGtools is broadly used to have a tighter integration of GPG into MacOS.

Changed in duplicity:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Kenneth Loafman (kenneth-loafman)
milestone: none → 0.7.12
Revision history for this message
Scott Hannahs (shannahs) wrote :

There seems to be some issues with which installation of gpg one has. The GPGTools version fails, but the some of the other package installations haven't added the extra text.

Changed in duplicity:
status: In Progress → Fix Committed
Changed in duplicity:
assignee: Kenneth Loafman (kenneth-loafman) → nobody
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.