【问题标题】:gnupg specify gpg-agent pathgnupg specify gpg-agent path
【发布时间】:2022-12-28 02:21:25
【问题描述】:

I am using python-gnupg wrapper, I have copied gpg binary (/usr/bin/gpg) along with dependent libraries identified by ldd gpg command, When defining gpghome i did specify the binary path as well.

gpg = gnugp.GPG(gnupghome='/tmp', gpgbinary='/var/task/gpg')

I get below error

gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory

I have copied gpg-agent in /var/task/gpg, but it still fails because it is starting the gpg-agent from /usr/bin, How can i change the path for gpg-agent from /usr/bin to /var/task/gpg?

【问题讨论】:

    标签: gnupg python-gnupgp


    【解决方案1】:

    @Sid Unfortunately you can't change the path since the gpg excuatble is already built and linked. and it points to usr/bin

    【讨论】:

      猜你喜欢
      • 2018-04-26
      • 1970-01-01
      • 1970-01-01
      • 2021-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-10
      相关资源
      最近更新 更多