attributeerror: ‘localstack’ object has no attribute ‘__ident__func__’

Total
0
Shares

In this article we will quicky resolve attributeerror: ‘localstack’ object has no attribute ‘__ident__func__. This issue arose in flask-sqlalchemy.

Solution

1. For non-docker builds

First uninstall flask-sqlalchemy

python -m pip uninstall flask-sqlalchemy

Then install the latest version –

python -m pip install flask-sqlalchemy

2. For Docker Builds –

  • Down your docker environment – docker-compose down
  • Open requirements.txt file
  • Replace psycopg2 with psycopg2-binary.
  • Rebuild docker environment – docker-compose build
  • Up docker environment – docker-compose up