You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All!
I am getting one error where I am trying to do encrypt a file with the following command but its showing error even though I am passing argument recipient one time. Please help me on the same.
rkey: str = 'test_key_id'
with open('my-unencrypted.txt', 'rb') as f:
status = gpg.encrypt(
data=f,
recipients=rkey,
always_trust=True,
output='encrypted.txt.gpg')
For rkey I also tried
rkey = str(imported_keys.fingerprints[0])
but nothing is working and I am getting error like
status = gpg.encrypt(
File "<base_path>\venv\lib\site-packages\gnupg\gnupg.py", line 1064, in encrypt
result = self._encrypt(stream, recipients, **kwargs) TypeError: _encrypt() got multiple values for argument 'recipients'
The text was updated successfully, but these errors were encountered:
Hi All!
I am getting one error where I am trying to do encrypt a file with the following command but its showing error even though I am passing argument recipient one time. Please help me on the same.
rkey: str = 'test_key_id'
with open('my-unencrypted.txt', 'rb') as f:
status = gpg.encrypt(
data=f,
recipients=rkey,
always_trust=True,
output='encrypted.txt.gpg')
For rkey I also tried
rkey = str(imported_keys.fingerprints[0])
but nothing is working and I am getting error like
status = gpg.encrypt(
File "<base_path>\venv\lib\site-packages\gnupg\gnupg.py", line 1064, in encrypt
result = self._encrypt(stream, recipients, **kwargs)
TypeError: _encrypt() got multiple values for argument 'recipients'
The text was updated successfully, but these errors were encountered: