Skip to main content

All Questions

1 vote
0 answers
45 views

Flask and Jupyter, emulating calls to route functions from code cells

I have build a very very simple server to learn Flask and Jupiter and see How I made work them togheter: `#%% ALL server logic from flask import Flask,jsonify,request,make_response app = Flask(...
AsperusMe's user avatar
0 votes
1 answer
27 views

ModuleNotFoundError in VSCode Conda Environment But Not When Opening VSCode Through Anaconda Prompt

I am relatively new to coding and more specifically Python. I was working on a course through Coursera and one of the projects that I decided to tackle on my local machine required me to install the ...
Michael Pariaszevski's user avatar
0 votes
1 answer
36 views

Debug Flask Visual Studio Code, module started twice

I am trying to debug a small python server using Flask. I have tried many different permutations of launch.json. What happens is that the main module is started and then in a subprocess running ms-...
PJT's user avatar
  • 21
-1 votes
3 answers
296 views

Can't open file 'C:\\Users\\H\\Downloads\\Hossein-OH\\VSCODE\\main.py': [Errno 2] No such file or directory

I got this error today; previously I didn't get that. My python file is in "C:\Users\H\Downloads\Hossein-OH\VSCODE\PYTHON API\main.py" and this is the documentation👇👇👇 from flask import ...
Kerein De johnwin's user avatar
0 votes
1 answer
142 views

Attach a debugger to a flask process started by tasks.json in vscode

I have the following tasks.json in my workspace: { "version": "2.0.0", "tasks": [ { "label": "Run Locally", &...
Yuri Waki's user avatar
  • 725
-1 votes
1 answer
52 views

Unable to create virtualenv env in flask [duplicate]

I am not able to create virtualenv env in my VS code, i have tried multile times, have checked multiple youtube videos howeer its still not running, could anybody please assist, screenshot also ...
Tapu's user avatar
  • 1
0 votes
0 answers
45 views

Python Flask complains of a "No module named demo" error when running from VSCode

I have a super simple flask application: from flask import Flask app = Flask("__name__") @app.route("/") def index(): return "random, World!" if __name__ == "...
RHO's user avatar
  • 51
0 votes
1 answer
85 views

Running scripts for Flask in Mac Terminal

I am a total beginner to Flask, and I am studying it using Miguel Grinberg's Flask Mega-Turorial. On t his page (Hello World), https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-...
emanoj's user avatar
  • 1
0 votes
0 answers
32 views

Request entity error when docker deployed through vscode

I am getting request entity 413 error when deploying a dockerized python flask application through vscode. But when I run through docker desktop it works. But for other applications with same code, ...
Ruyafatima Sakharkar's user avatar
0 votes
0 answers
71 views

Statement before import not working, database keeps getting erased everytime I run tests

I'm following the flask mega tutorial by M Grinberg, which at a point runs some tests for new functionalities. Every time I run tests.py the database is erased (luckly it's easy te re create) This is ...
edu's user avatar
  • 1
0 votes
1 answer
111 views

VSCode Pylance temporary reports missing Modules

I have the following lines on a hello.py file: from typing import Any from flask import Flask This is on a brand new virtual environment that I just created. Pylance is temporarily reporting flask as ...
Nuno's user avatar
  • 225
-3 votes
1 answer
349 views

Import "flask" could not be resolvedPylancereportMissingImports) [closed]

from flask import Flask, request, jsonify app = Flask(__name__) @app.route('/process_user_input', methods=['POST']) def process_user_input(): # Retrieve user input from the request ...
Steven's user avatar
  • 25.1k
0 votes
2 answers
85 views

Trying to follow along with VSC docs on creating a simple Flask app with Python and cannot get it to run. What Am I doing wrong?

I am following along with this tutorial on creating a simple flask app with VSC and cannot get app.py to run at all. The author instructs "In the Integrated Terminal, run the app by entering ...
jkorn95's user avatar
  • 85
2 votes
1 answer
263 views

VS Code Flask configuration seemingly causing "unable to import module"

I have a Flask app that works on both macOS and Windows, but there are some "module not found" messages showing in VS Code terminal on Windows (even though the app still works fine in spite ...
mr.b's user avatar
  • 965
-2 votes
1 answer
51 views

is there any problem with my file using flask?

im trying to run my web app using flask. all the code is right bc i ran it a couple days ago. but i accidentally quit vscode and the terminal i was using doesnt work the same. it detects im using ...
Erick Pruneda's user avatar

15 30 50 per page
1
2 3 4 5
8