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

[ERROR] Error sending data: Broken pipe [ERROR]Unable to close outstream <_io.BufferedWriter name=5>: [Errno 32] Broken pipe #262

Open
peter-t-kim opened this issue May 21, 2019 · 2 comments

Comments

@peter-t-kim
Copy link

Hello @isislovecruft,

I switched to your library in the hopes that it would resolve this issue which I also experienced on the original python-gnupg package. I am simply calling the method like so:

encryptedString = gpg.encrypt(fileObj, recipientID)

where fileObj is a byte string (b'blah blah') and recipientID is the string containing the recipient user id which I parsed from the key's uids field. I do not see where I am going wrong or why the pipe is broken.

Please advise! Thank you very much!

@kiawin
Copy link

kiawin commented Jan 19, 2022

Just a note, the broken pipe is likely due to some error raised during the encryption process.

The following printing of Crypt attributes will tell us the reason behind the failure.

print(encryptedString.ok)
print(encryptedString.status)
print(encryptedString.stderr)

@Hamza442
Copy link

Hamza442 commented Dec 7, 2022

@kiawin , I am facing broken pipe error when encrypting data is there any way to resolve this issue ?

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

No branches or pull requests

3 participants