Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSYCOPG2 FOR 3.9 #71

Open
abhimike17 opened this issue Jun 14, 2022 · 5 comments
Open

PSYCOPG2 FOR 3.9 #71

abhimike17 opened this issue Jun 14, 2022 · 5 comments

Comments

@abhimike17
Copy link

Hi, I'm not able to use psycopg2 for 3.9. I get the
""Unable to import module 'lambda_function': No module named 'psycopg2'","

Please let me know if anyone has tested it

Thanks

@TravisHoover
Copy link

Have you tried copying the psycopg2-3.9 directory into your AWS Lambda project and rename it to psycopg2?
I was getting this error when I upgraded to python3.9 and didn't update my psycopg2 directory.

@ktalkington
Copy link

renaming the directory to psycopg2 moved me forward but I am getting "module 'psycopg2' has no attribute 'connect'"

@ktalkington
Copy link

Well... it helps when zipping the "psycopg2" directory to use recursion to actually get files... head desk

@aakashdusane
Copy link

Well... it helps when zipping the "psycopg2" directory to use recursion to actually get files... head desk

what solution ended up working for you?

@ktalkington
Copy link

@aakashdusane
Following the suggestion @TravisHoover offered (copy psycopg2-3.9 from repo, and renaming to psycopg2) and zipping the folder properly was the solution that worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants