CentOS 7のduplicity-0.7.11-1.el7 の--encrypt-keyが動作しない

GPGがエラーを起こす。

GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: invalid option "--pinentry-mode=loopback"
===== End GnuPG log =====

とりあえずオプション指定を外して対応した。
/usr/lib64/python2.7/site-packages/duplicity/gpg.pyの以下をコメントアウト

        elif profile.gpg_major == 2:
            # This forces gpg2 to ignore the agent.
            # Necessary to enforce truly non-interactive operation.
            if platform.platform().startswith('Linux'):
                gnupg.options.extra_args.append('--pinentry-mode=loopback')

バグレポートされていたので次の更新で直ると期待。