I was facing the same issue but working on Ubuntu 21.04 with a virtual environment.
By deleting the local .venv-Folder
rm -rf .venv,
re-creating it again with
python3 -m venv .venv
and installing all packages again
.venv/bin/pip3 install -r requirements.txt
the issue was gone.