Search code examples
psycopg2aws-glue

psycopg2 fails on aws glue on subpackage _psycopg


I am trying to get a Glue Spark job running with Python to talk to a Redshift cluster.

But I have trouble getting Psycopg2 to run ... anybody got this going? It complains about a sub-package _psycopg.

Help please! Thanks.


Solution

  • AWs glue has trouble with modules that arent pure python libraries. Try using pg8000 as an alternative