jkehler / awslambda-psycopg2

1.12k stars 363 forks source link

ImportError: Error loading shared library libssl.so.10 #61

Closed hakarapet closed 4 years ago

hakarapet commented 4 years ago

Getting this error when the lib is loading

 import psycopg2
   File "/.....path to lambda....../lambdas/psycopg2/__init__.py", line 50, in <module>
     from psycopg2._psycopg import (                     # noqa
 ImportError: Error loading shared library libssl.so.10: No such file or directory (needed by /.....path to lambda....../lambdas/psycopg2/_psycopg.cpython-37m-x86_64-linux-gnu.so)

just copied the psycopg2-3.7 folder into lambda directory and renamed it to psycopg2 python version 3.7

bigsee commented 4 years ago

@hakarapet I had the same error. On Mac and also on python 3.7. Uninstalling and re-installing postgres worked for me.

brew uninstall postgres brew install postgres

hakarapet commented 4 years ago

@bigsee thanks for the comment.

Thanks