Closed nbommu1 closed 5 years ago
Could you provide the code that you ran when you got this error? This looks like it might have been caused by a malformed input parameter but it's hard to tell without seeing the code.
this is the example code I'm using in my test.
import aws_encryption_sdk
kms_key_provider = aws_encryption_sdk.KMSMasterKeyProvider(key_ids=[
'arn:aws:kms:us-east-1:2222222222222:key/22222222-2222-2222-2222-222222222222',
'arn:aws:kms:us-east-1:3333333333333:key/33333333-3333-3333-3333-333333333333'
])
my_plaintext = 'This is some super secret data! Yup, sure is!'
my_ciphertext, encryptor_header = aws_encryption_sdk.encrypt(
source=my_plaintext,
key_provider=kms_key_provider
)
decrypted_plaintext, decryptor_header = aws_encryption_sdk.decrypt(
source=my_ciphertext,
key_provider=kms_key_provider
)
Sorry for the delay.
This is a very odd error and seems like something going wrong deep inside somewhere; maybe something wrong with Enum34
? Could you show the output of pip freeze
and I can try to replicate this?
sorry for the delay.
asn1crypto==0.24.0 attrs==18.1.0 aws-encryption-sdk==1.3.4 boto==2.48.0 boto3==1.7.48 botocore==1.10.48 certifi==2017.4.17 cffi==1.11.5 chardet==3.0.4 click==6.7 cryptography==2.2.2 docutils==0.14 enum==0.4.6 futures==3.2.0 idna==2.7 Jinja2==2.9.6 jmespath==0.9.3 MarkupSafe==1.0 ntlm-auth==1.0.5 ordereddict==1.1 pycparser==2.18 python-dateutil==2.7.3 pywinrm==0.2.2 PyYAML==3.12 requests==2.18.1 requests-ntlm==1.0.0 s3transfer==0.1.13 six==1.11.0 urllib3==1.21.1 wrapt==1.10.11 xmltodict==0.11.0
Sorry, @nbommu1, this fell off my radar. Did you ever figure out the issue you were having? I tried installing that freeze file in a new virtualenv with CPython 2.7.14 and running the example code you specified, and it worked for me.
I wonder if something is odd in the configuration of your environment that might be causing this?
Closing due to inactivity. If you are still having issues, @nbommu1, please feel free to re-open.
Hi,
when I'm running examples from this repo "Encryption and Decryption" , this gives me the following error.
Name: Python Version: 2.7.14 Name: boto3 Version: 1.7.48