amazon-connect / amazon-connect-salesforce-scv

This repository contains resources, examples, and projects to help Service Cloud Voice customers address some common requirements as they deploy Service Cloud Voice.
Apache License 2.0
51 stars 53 forks source link

Latest Python Common Layer causes cffi backend error in validator #68

Closed dcarbonetti closed 2 years ago

dcarbonetti commented 3 years ago

After a lot of troubleshooting between my dev and test orgs for a client (built days apart) ive found that there looks to be a version release done to the common python layer (38 vs 39) that seems to cause the validator to spit out an error

No module named '_cffi_backend'

dcarbonetti commented 3 years ago

Ive manually uploaded a zip of the previous version of the python common layer as a workaround which fixed the issue

jeremy-hayes commented 3 years ago

@dcarbonetti do you know where we can find a zip of the previous version of the python common layer?

jeremy-hayes commented 3 years ago

@dcarbonetti Disregard, we pulled an old version from dev. Thank you very much for supplying the workaround!

corentinbernier commented 3 years ago

awsscv_common_python-068ce42a-b848-48da-8927-097cbbb23d3b.zip We've had the same problem with our latest installation and uploading this file as a new version of the awsscv_common_python fixed it.

dougjaso commented 3 years ago

Reviewing this fix. WIll update today.

VigeashGobal commented 3 years ago

@corentinbernier Can you explain how to upload the file as a new version. When i try uploading the zip it doesn't work

VigeashGobal commented 3 years ago

@dcarbonetti Can you please provide where that old version is, I cannot seem to find it. Really appreciate the help

Thanks,

dcarbonetti commented 3 years ago

@dcarbonetti Can you please provide where that old version is, I cannot seem to find it. Really appreciate the help

Thanks,

Here's a step by step:

  1. Download the Zip file provided by @corentinbernier ( https://github.com/amazon-connect/amazon-connect-salesforce-scv/files/7127220/awsscv_common_python-068ce42a-b848-48da-8927-097cbbb23d3b.zip)
  2. log into AWS console
  3. navigate to Lambda
  4. select "Layers" on the left hand side menu
  5. click on the "awsscv_common_python" (or equivalent)
  6. click on the "create version" button on the top right
  7. upload the zip file you previously downloaded
  8. click create

after that you will need to just doublecheck that all of the other python based lambdas are pointing to the correct version

VigeashGobal commented 3 years ago

Thank you so much!

dougjaso commented 2 years ago

This has been fixed in the latest build