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

Unable to import module using Python 3.6 #28

Closed
fcusano9 opened this issue Mar 2, 2018 · 1 comment
Closed

Unable to import module using Python 3.6 #28

fcusano9 opened this issue Mar 2, 2018 · 1 comment

Comments

@fcusano9
Copy link

fcusano9 commented Mar 2, 2018

Hi, I am using Python 3.6 with pyscopg2 and I am trying to run this code on a lambda function. I tried adding both of the folders in this repo to my zip file but neither worked, I keep getting this error:

Unable to import module 'lambda_function': /var/task/psycopg2/_psycopg.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

Is there something I am doing wrong? Any help would be appreciated, thank you in advance.

@jkehler
Copy link
Owner

jkehler commented Mar 3, 2018

@fcusano9 you need to use the psycopg2-3.6 folder. Copy this folder to your lambda project and then rename it to just psycopg2

@jkehler jkehler closed this as completed Mar 3, 2018
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

2 participants