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

attributeError : 'str' has no attribute 'is_compressed' #434

Open
devanshpushkarn opened this issue Apr 22, 2023 · 0 comments
Open

attributeError : 'str' has no attribute 'is_compressed' #434

devanshpushkarn opened this issue Apr 22, 2023 · 0 comments

Comments

@devanshpushkarn
Copy link

devanshpushkarn commented Apr 22, 2023

constant attribute error while using encrypt(). Even tried using compression=None

encrypted_data = key.encrypt(csv_buffer_l3.getvalue(),compression=None)

File "C:\ProgramData\Anaconda3\lib\site-packages\pgpy\decorators.py", line 131, in _action
return action(_key, *args, **kwargs)

File "C:\ProgramData\Anaconda3\lib\site-packages\pgpy\pgp.py", line 2541, in encrypt
if message.is_compressed and message._compression not in uid.selfsig.compprefs:

AttributeError: 'str' object has no attribute 'is_compressed'

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

1 participant