I am completely new to Python. I am trying to run the Python application.
python -m src.main
After running this I am getting this error :
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
from src.routes import *
from src.routes import *
File "C:x.py", line 7, in <module>
from flask_cognito import cognito_auth_required, cognito_group_permissions
File "C:flask_cognito.py", line 3, in <module>
from flask import _request_ctx_stack, current_app, jsonify, request
ImportError: cannot import name '_request_ctx_stack' from 'flask' (C:UserscAppataLocalProgramsPythonPython311Libsite-packagesflask__init__.py)
I am currently using Python 3.12.3 version.
I have uninstalled the package from requirement.txt and installed it again thinking may be dependency issue would be there but still the problem persists.
New contributor
Niharika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2