Hello dear I know that it is a known error but i don't understand how can i solve it because the flask library is installed and, based on this output, firebase library is installed too. What can i do to understand what is my problem or what i'm wronging?
2022-07-21 16:13:11,161: Error running WSGI application
2022-07-21 16:13:11,173: TypeError: Descriptors cannot not be created directly.
2022-07-21 16:13:11,173: If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
2022-07-21 16:13:11,174: If you cannot immediately regenerate your protos, some other possible workarounds are:
2022-07-21 16:13:11,174: 1. Downgrade the protobuf package to 3.20.x or lower.
2022-07-21 16:13:11,174: 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
2022-07-21 16:13:11,175:
2022-07-21 16:13:11,175: More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
2022-07-21 16:13:11,175: File "/var/www/<my_username>_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-07-21 16:13:11,175: from flask_app import app as application # noqa
2022-07-21 16:13:11,175:
2022-07-21 16:13:11,175: File "/home/<my_username>/mysite/flask_app.py", line 8, in <module>
2022-07-21 16:13:11,176: from firebase_admin import firestore
2022-07-21 16:13:11,176:
2022-07-21 16:13:11,176: File "/home/<my_username>/.local/lib/python3.9/site-packages/firebase_admin/firestore.py", line 22, in <module>
2022-07-21 16:13:11,176: from google.cloud import firestore # pylint: disable=import-error,no-name-in-module
2022-07-21 16:13:11,176:
2022-07-21 16:13:11,176: File "/home/<my_username>/.local/lib/python3.9/site-packages/google/cloud/firestore.py", line 18, in <module>
2022-07-21 16:13:11,177: from google.cloud.firestore_v1 import __version__
2022-07-21 16:13:11,177:
2022-07-21 16:13:11,177: File "/home/<my_username>/.local/lib/python3.9/site-packages/google/cloud/firestore_v1/__init__.py", line 29, in <module>
2022-07-21 16:13:11,177: from google.cloud.firestore_v1 import types
2022-07-21 16:13:11,177:
2022-07-21 16:13:11,177: File "/home/<my_username>/.local/lib/python3.9/site-packages/google/cloud/firestore_v1/types/__init__.py", line 21, in <module>
2022-07-21 16:13:11,178: from .document import (
2022-07-21 16:13:11,179:
2022-07-21 16:13:11,179: File "/home/<my_username>/.local/lib/python3.9/site-packages/google/cloud/firestore_v1/types/document.py", line 20, in <module>
2022-07-21 16:13:11,179: from google.type import latlng_pb2 # type: ignore
2022-07-21 16:13:11,180:
2022-07-21 16:13:11,180: File "/usr/local/lib/python3.9/site-packages/google/type/latlng_pb2.py", line 46, in <module>
2022-07-21 16:13:11,180: _descriptor.FieldDescriptor(
2022-07-21 16:13:11,180:
2022-07-21 16:13:11,180: File "/home/<my_username>/.local/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 560, in __new__
2022-07-21 16:13:11,180: _message.Message._CheckCalledFromGeneratedFile()
2022-07-21 16:13:11,181: ***************************************************
2022-07-21 16:13:11,181: If you're seeing an import error and don't know why,
2022-07-21 16:13:11,181: we have a dedicated help page to help you debug:
2022-07-21 16:13:11,181: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-07-21 16:13:11,181: ***************************************************