Questions tagged [flask]

Flask is a lightweight framework for developing web applications using Python.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Start a NIFI processor using Python SDK of Apache Nifi

I have a python code which is trying to authenticate to my Nifi server using username and password to start a processor inside it. Below is my code: from flask import Flask import nipyapi import ...
Kiran's user avatar
  • 13
0 votes
0 answers
7 views

Azure Web App Not Updated Despite Succesful Deployment

I have deployed an Flask Web App via an Azure Devops Pipeline. When I commit on the main branch the Pipeline runs sucesfully and I can see the updated python files in Kudu Debug Console in the ...
PK Przemek's user avatar
-1 votes
1 answer
24 views

How to pass access token from backed to frontend?

I'm developing app (FE: Vue.js, BE: flask), and I want to know how to pass access token from BE to FE. This is my auth.py (BE) file, and I store access token to payload. from flask import Flask, ...
Ota Yosuke's user avatar
0 votes
1 answer
15 views

How can I fix the error message: "No module named 'IOPi'"

I tried to run flask on my raspberry pi. Input was "flask run --host=0.0.0.0" and the output message is: Error: While importing 'back_end_test_tool', an ImportError was raised: Traceback (...
Kevo.tng's user avatar
-1 votes
1 answer
14 views

Issue with Fetching Data from Localhost in React Frontend

I'm working on building a chatbot for my website, and I've encountered an issue when trying to send a POST request from my React frontend to my Flask backend. Here's a breakdown of my setup: Frontend (...
Paris Vanuya's user avatar
-1 votes
0 answers
19 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
0 votes
0 answers
14 views

Integrating Gradio/Streamlit with Flask for Multi-Model Hosting and Route Customization

Issue: I'm in the process of deploying a sophisticated web application with a focus on machine learning model hosting using Gradio/Streamlit. While both frameworks offer exceptional ease-of-use, they ...
addy's user avatar
  • 52
0 votes
0 answers
14 views

Flask-OIDC Keycloak HTTPS Redirect on Localhost

This is the development setup I have. All host references are localhost. I am using Flask-OIDC 2.0.3 along with Keycloak 22.0.3 (running on Docker as a service). The Flask app runs on port 8080, ...
Sudeep Hazra's user avatar
0 votes
0 answers
23 views

Log in with flask

I'm doing my log in window in my web application. I'm using mysql and flask. I have already made my registration window and everything works. But now when try to log my User, it says my user doesn't ...
Adrian Mm's user avatar
0 votes
0 answers
17 views

Can't open links to other HTML pages with Flask

Not too sure why but I keep getting this error on my program. raise BuildError(endpoint, values, method, self) werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'login'. Did you ...
Shashwat Sharma's user avatar
1 vote
0 answers
16 views

How do I call a specific function when a SIGTERM or SIGKILL system signal is received?

I'm in need of a solution when I want to execute a particular function in my flask app before shutting the app completely (Essentially, a graceful shutdown). I'm running a flask server with uwsgi (1 ...
Vaibhav's user avatar
  • 527
-1 votes
0 answers
16 views

Script imports being excluded by pyinstaller

When I build the app it excludes all scripts.py impots causing module not found error. import Users import ReadWrite Path png Current Command pyinstaller --noconfirm --onedir --console --name "...
Caio Silva's user avatar
-2 votes
0 answers
17 views

500 Internal Server Error Postman, Flask y MongoDBCompass

Hi I am using mongo compass and when I make a POST or even GET request (in Postman) I get that error "500 INTERNAL SERVER ERROR". Does anyone know why? It is the first time I am using these ...
Luis Alberto's user avatar
-1 votes
0 answers
16 views

trying to create a proxy server using flask

requests.exceptions.ProxyError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: http://localhost:5000/add_not e (Caused by ProxyError('Cannot connect to proxy.', ...
Hamidy's user avatar
  • 1
0 votes
0 answers
15 views

Using Selenium package inside WSGI app generates error

I am developing Flask application and I included selenium cronjob as a background job. It works when I run it on my local PC (Ubuntu22.04) But after I deployed it on CentOS9 server, it is not working. ...
milos ben's user avatar
0 votes
0 answers
14 views

Can't connect to my Ubuntu server trough domain (Caddy)

I have Ubuntu server on Lightsail with webapp. I am using Caddy as web server and i have flask app on it. When i connected to the server directly with ip i could see my web app. But when i tried ...
Vracar's user avatar
  • 1
0 votes
1 answer
32 views

How do I lock a Flask endpoint, so that only one user at a time can access it?

I have a flask server with a multitude of endpoints, e.g.: @app.route('/project1/bench1') def bench1_dashboard(): return send_from_directory('templates/project1/bench1.html') The point is, I'm ...
handris18's user avatar
0 votes
0 answers
11 views

How do i get the name/id of a folium marker to send to a python function on a FLASK app

I created a simple map using folium, and I added a layer with a bunch of markers that represent the location of some weather stations. I would like to be able to click on one of the markers, get it's ...
Elcook's user avatar
  • 165
0 votes
1 answer
32 views

How to pass the value of a variable from an HTML page into a python flask backend application which will be loaded in an HTML iframe?

I am using python flask for back end i.e., app.py file for routes, and html and JavaScript for front end, once user login's with business email, I will be splitting and sending only "domain_name&...
sst's user avatar
  • 9
0 votes
0 answers
10 views

flask debugger does not connect to host, normal run does

I hope there's someone who has the patient to help me. I'm running an application on VsCode and I'm using the flask debugger. the application run and connect without problems when I normally run it, ...
Lorenzo Battisti's user avatar
0 votes
0 answers
18 views

How to rebuild a graph on an html page based on the result of selecting data in the wtform form in a web-application?

I am developing a web application in flash. The application has a database. When the user visits the page, he should see a graph with default data for the first device. Then there are filters in which ...
son134's user avatar
  • 1
-3 votes
0 answers
12 views

Problem to uploading user input files to aws server in flask website

I hosted a flask website on AWS ec2 instance(ubuntu), website has functionality of working with audio files. uploading audio files to database in localhost work very easily but at production level ...
Pranav Kshirsagar's user avatar
1 vote
1 answer
49 views

How to fix HttpErrorResponse 405 not allowed?

I have a website running on VPS that uses Flask as a backend API server, Angular frontend, and Nginx as a reverse proxy. I have SSL installed on my Nginx. The problem is that I can connect to the ...
Sam's user avatar
  • 1,243
-1 votes
0 answers
19 views

Python Flask Application Okta Callback `AttributeError` No `login_manager`

I am trying to get a Flask application using Blueprints working with okta MFA, Blueprint, and flask-login. I follow the example okta application, it was working fine while testing without flask-login, ...
YTKme's user avatar
  • 135
0 votes
1 answer
16 views

Using a file's contents in a curl command connecting to a Flask API

Here's my intent: I need to use curl to connect to my Python application's Flask API, and upload the contents of a text file to be used by the Python application. However, I cannot seem to both ...
Don Levey's user avatar
0 votes
2 answers
40 views

Flask Template not found, template placed in adjacent folder

I'm having an issue with my flask app not finding the template that I've placed in the adjacent template folder. Here is the route I'm using to render_template for the webpage, and accompanying ...
Benjamin Marquardt's user avatar
-1 votes
0 answers
30 views

Constant 404 errors on all flask endpoints

all day I have tried just about everything underneath the sun to get my endpoints to work. I am using React and python, and have incorporated a multitude of flask frameworks to assist in my project. ...
radriaansNES's user avatar
0 votes
0 answers
19 views

Configuration for Kubernetes Flask and Prometheus

I am trying to configure a prometheus to monitor a simple flask app, but its very weird that the prometheus does show the service in the drop down, but it shows nothing when I click in the dropdown: ...
user2459179's user avatar
-3 votes
0 answers
25 views

How to clone users voice and generate a speech audio with that same voice [closed]

Me and my team were actually doing a project on dubbing videos to Indian regional languages using Python. We've managed to complete till transcribing the video and converting it to other languages, to ...
VISHWAA's user avatar
-1 votes
0 answers
25 views

SQLAlchemy sqlite3 database not launching in my Flask toDo app

Here I'm trying to connect a Sqlite database to my Flask ToDo app.My source code is from freeCodeCamp at youtube under title : learn flask for python-full tutorial.Their Python version is 3.6 or 3.7 ...
surajMBBS's user avatar
0 votes
0 answers
17 views

edit pdf header when download from html table

I'm using DataTables in my web application to display tabular data, and I've implemented export functionality to allow users to export the data to various formats such as PDF, Excel, and CSV. I've ...
Abhishek Kadavala's user avatar
0 votes
1 answer
19 views

Using library pdfkit/wkhtmltopdf inside Docker container for Flask app

I am creating a Flask app that uses the library PDFkit to generate a PDF file from a HTML string. When running the code locally it works fine, however when I try to run it inside a Docker container ...
Grootgeweer's user avatar
-2 votes
1 answer
26 views

Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action

I am trying to deploy a Flask hello world application on Cloud Foundry using GitHub Actions. I am getting below error while running main.yml file: Can't find 'action.yml', 'action.yaml' or 'Dockerfile'...
Graphiomaniac's user avatar
-1 votes
0 answers
17 views

html modal is stuck on a side of the screen

I'm building an app where i have a datatable with a column that contains a button to display the detail information of a record. When the button is click, a modal which contains the detail will appear....
minhhiu's user avatar
0 votes
1 answer
27 views

Image not loading when i go in the website

When i go in the website, the image is not here, instead, it says "user_image" (i used a code in another question) Python code: from flask import Flask, render_template import os ...
M. White's user avatar
0 votes
0 answers
17 views

Speech visualization and Speech to Text in Flask Python

I am trying to make a flask app where i want to record audio from user and I want to visualize audio in real time and generate a speech to text. I am able to generate text from audio but how do I add ...
J Prem's user avatar
  • 1
0 votes
0 answers
23 views

No Database file being created with SQLAlchemy

I'm using SQLAlchemy and Flask to generate a database like so: db = SQLAlchemy() DB_NAME = "database.db" abs_instance_path = path.abspath(path.join(path.dirname(__file__), '..', 'instance'))...
Ricy's user avatar
  • 1
-2 votes
1 answer
33 views

Flask web application 1st time

from flask import Flask, request, jsonify import pandas as pd import re import os app = Flask(__name__) ALLOWED_EXTENSIONS = {'xlsx'} def allowed_file(filename): return '.' in filename and ...
Glane Gonsalves's user avatar
0 votes
1 answer
12 views

flask_executor future.result() throws TypeError: 'str' object is not callable

I'm trying to get result from the process that I created to run in the background using flask_executor. This are methods in use: def scan_and_collect( self ): self.data_collector.collect() ...
Smok's user avatar
  • 103
-1 votes
0 answers
10 views

how can i solve my wsgi application error while training web api?

while i developing end to end project "sensor fault detection" i create a web api using flask then paste in the browser "http://localhost:5000/train" i got so many errors i don't ...
Jack Kallis's user avatar
1 vote
0 answers
43 views

Show message of Image uploaded successfully

The below is Python Code from flask import Flask, render_template, request from keras.models import load_model from tensorflow.keras.applications.inception_v3 import preprocess_input from keras....
muilI opo's user avatar
0 votes
0 answers
27 views

How do I connect python flask-login with a React application? [closed]

I am developing an app with flask back end and React frontend. In my flask app I use flask-login for session management, so I'm using it to login and logout users using API calls from the front end ...
reinhard's user avatar
-3 votes
1 answer
21 views

Flask app error werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'app.index'. Did you mean 'index' instead?

i am trying to creat a site with flask but i am facing this error at the title. I have one file named base.html that handle the links that i put until now.enter image description here And I have two ...
Willian Andrade's user avatar
0 votes
0 answers
21 views

Deploy flask paddleocr to Google Cloud Run error

Anybody have experience deploy a flask paddleocr app to google cloud run? I encounter Service Unavailable when opening the url. In cloud run console: "ImportError: libssl.so.1.1: cannot open ...
solidus's user avatar
0 votes
0 answers
20 views

What is the cause of this error I am receiving from a react frontend to a flask backend? [duplicate]

I have a flask backend running with an api to handle logins with jwt's. The flask function is as follows: @user.route('/login') # @cross_origin() def login(): email = request.args.get("email&...
nsandlin's user avatar
0 votes
0 answers
10 views

Why my static paste doesn't work anymore?

I'm having an issue with uploading my portifolio /usr/bin/git submodule sync --recursive /usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1 --recursive Error: fatal: No ...
Nathan's user avatar
  • 1
0 votes
1 answer
22 views

Python threading Flask - do I need to close my thread using x.join()?

I have some code in Python Flask which does the following: get user input calculates (0.3s) writes to DB (3s) return view to user Currently the user has to wait 3.3s for the view to return to them, ...
Muriel's user avatar
  • 449
0 votes
1 answer
23 views

Adding CSS/JS files to Html file not working

Sorry this question might look a little bit ugly but I am new to web dev. I try to add some css/js files into my html and here is the structure. May I understand where I get wrong for the path? Thanks ...
Xie's user avatar
  • 11
0 votes
0 answers
21 views

flaskwebgui address "refused to connect" + missing 'environ' and 'start_response'

I have a basic flask app: from flask import Flask import flaskwebgui app = Flask(__name__) gui = flaskwebgui.FlaskUI(app) @app.route("/") def hello(): return "Hello" if ...
dot's user avatar
  • 3
-1 votes
0 answers
20 views

Speech to speech audio translator in different language using hugging face shameless m4t api make flask interface for reading mp3

I am new in python.I have hugging face application SeamlessM4T at this link . I was trying to solve this problem using chatgpt. To create a Flask interface for translating speech to speech in ...
aaaaaaaaaaaaaaaaaaaaaaaaa's user avatar

1
2 3 4 5
1084