Question:
I have a flask application that was working fine. now, when i try to run it i get an error that flask isn’t found. i have tried uninstalling and reinstalling poetry, manually installing flask (via pip and poetry), forking the repl, and starting fresh with a new repl and download my code from github. when i look at the pyproject.toml file, i see flask listed. when run “poetry show” i see flask listed. but then when i run the app, i get… ModuleNotFoundError: No module named ‘flask’
nothing seems to work.
any ideas?
(ps it’s a private repl so i can’t link to it, unfortunately)
Repl link/Link to where the bug appears:
Screenshots, links, or other helpful context:
[tool.poetry]
name = "python-template"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = ">=3.10.0,<3.11"
numpy = "^1.22.2"
replit = "^3.2.4"
urllib3 = "^1.26.12"
Flask-WTF = "^1.1.1"
openai = "^0.27.8"
WTForms = "^3.0.1"
Flask-SQLAlchemy = "^3.0.5"
Flask-Bcrypt = "^1.0.1"
inflect = "^7.0.0"
Flask-Session = "^0.5.0"
tiktoken = "^0.5.1"
scripts = "^2.0"
SQLAlchemy = "^2.0.23"
django-lookup-tables = "^0.15.3"
django-shop = "^1.2.4"
auth = "^0.5.3"
config = "^0.5.1"
django-follow = "^0.6.1"
plan = "^0.5"
psycopg2 = "^2.9.9"
requests = "^2.31.0"
six = "^1.16.0"
authlib = "^1.2.1"
flask = "2.2.5"
[tool.poetry.dev-dependencies]
debugpy = "^1.6.2"
replit-python-lsp-server = {extras = ["yapf", "rope", "pyflakes"], version = "^1.5.9"}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"