I am trying to run python code in AWS lambda and I got exception from aws lambda when I run test.
I don't understand what type of this exception. its first time for me.
{
"errorMessage": "The 'psycopg2>=2.5' distribution was not found and is required by the application",
"errorType": "DistributionNotFound",
"stackTrace": [
[
"/var/task/redshift_test.py",
22,
"handler",
"print_meta_info('test_schema')"
],
}
here is my list of python3.6 library for run code.
.
├── redshift_sqlalchemy
├── sqlalchemy
├── SQLAlchemy-1.2.8.egg-info
├── sqlalchemy_redshift
└── sqlalchemy_redshift-0.7.1.dist-info
>> when I try pip freeze
psycopg2==2.7.5
SQLAlchemy==1.2.8
sqlalchemy-redshift==0.7.1