No module named 'redshift_connector'
See original GitHub issueAfter upgrading to the latest version of AWS Wrangler, my lambda functions are failing with the following error:
{
"errorMessage": "Unable to import module 'app': No module named 'redshift_connector'",
"errorType": "Runtime.ImportModuleError"
}
I’m using the Sam CLI to build and deploy. My Python dependencies are bundled in a lambda layer. I do not experience the error in version 1.10.1
Versions: SAM CLI 1.4.0 Python 3.8.6 AWS Wrangler 2.0.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
No module named 'redshift_connector' · Issue #475
I'm using the Sam CLI to build and deploy. My Python dependencies are bundled in a lambda layer. I do not experience the...
Read more >redshift-connector 2.0.909
redshift_connector is the Amazon Redshift connector for Python. ... No. db_groups. list. A list of existing database group names that the DbUser joins...
Read more >How to Install redshift-connector in Python?
Type “ pip install redshift-connector ” (without quotes) in the command line ... How to Resolve ModuleNotFoundError: No module named 'redshift-connector'?
Read more >Installing the Amazon Redshift Python connector
pip install redshift_connector. You can install the connector within a virtual environment. To do this, run the following command.
Read more >ModuleNotFoundError: No module named 'psycopg2' ...
I tried by attaching redshift connection to the glue job, this time it is failed with ModuleNotFoundError: No module named 'psycopg2' error ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @igorborgest! I was able to get it work with Lambda Layer.
Thanks @igorborgest for your message, that helps a lot and I think makes everything more clear into this discussion. I’m sure more users will get into this situation. I will give definitively a try with Lambda Layers 😉