Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'gpg': 'gpg' #456

Closed
ssbarnea opened this issue Mar 16, 2019 · 4 comments · Fixed by #484
Closed

FileNotFoundError: [Errno 2] No such file or directory: 'gpg': 'gpg' #456

ssbarnea opened this issue Mar 16, 2019 · 4 comments · Fixed by #484

Comments

@ssbarnea
Copy link

ssbarnea commented Mar 16, 2019

On platform where gpg executable does not exist twine failsto sign with an errorl like:

FileNotFoundError: [Errno 2] No such file or directory: 'gpg': 'gpg'

This happens even if gpg2 executable is present and working, use of gpg2 is quite common and twine should be able to prefer instead of the very old gpg.

Adding an alias does not solve the problem

@sigmavirus24
Copy link
Member

There's a --sign-with option that allows you to specify gpg2. I believe gpg was selected because it's the binary that's most widely available. We could absolutely update that in a major version, but I'm not convinced it's a backwards compatible change.

@di
Copy link
Member

di commented Jul 23, 2019

Would it be reasonable to fall back on gpg2 if gpg is not found?

At any rate, we might want to raise a more meaningful error message when this happens.

@sigmavirus24
Copy link
Member

Would it be reasonable to fall back on gpg2 if gpg is not found?

Probably

@allhailwesttexas
Copy link
Contributor

I will try to fix this one as part of the PyCon AU sprints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants