No module named 'redshift_connector'

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
amolkokjecommented, Jan 28, 2021

Thanks @igorborgest! I was able to get it work with Lambda Layer.

2reactions
70nyITcommented, Jan 28, 2021

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 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found