psycopg2: AttributeError: 'module' object has no attribute 'extras'
In my code I use the
psycopg2.extras like this
dict_cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor)
However, all of the sudden I get the following error when I load the cursor:
AttributeError: 'module' object has no attribute 'extras'
Maybe something is dorked in my installation but I have no clue where to start looking. I made some updates with pip, but as far as I know no dependencies of
You need to explicitly import
★ Back to homepage or read more recommendations: