All Questions
Tagged with flask python-3.x
4,136
questions
0
votes
0
answers
61
views
How to Solve AWS Elastic Beanstalk Deployment Error: "Failed to deploy application"?
I'm encountering persistent deployment errors on AWS Elastic Beanstalk and codePipeline, and I need some assistance to diagnose and resolve the issue. The error message I receive is:
Deployment ...
0
votes
1
answer
36
views
Global Exception Handler In flask
I am new to flask and python so please pardon me if the answer is obvious.
My flask app has a scheduler and which opens many threads at different time that do specific different work and also run some ...
0
votes
0
answers
17
views
Authlib for Flask response state from Google OAuth missing
I'm currently building a flask based web app - and using the Lepture/authlib library.
I've read that using a randomly generated state object or variable in the request, is best practice for avoiding/...
0
votes
0
answers
30
views
How to pass callback data to flask route function?
I wan't to pass data to a route function, when registering the callback.
def foo (bar):
print (bar)
app.add_url_rule ("/", "foo", foo)
How can I pass data directly to bar (i....
0
votes
0
answers
20
views
Using Flask request in Async Functions Across Modules
I'm working on an async Flask application and have a custom object that initializes with request data. Here is a simplified version of my code:
In my route handler:
@app.route('/')
async def ...
1
vote
1
answer
19
views
How can I query the same keys and only output them as a number?
I have a list where I want to filter the number of a certain key, depending on whether another key exists or not.
Data:
DEV_DATA: [{'.cn': 'DEVICE200002', 'ou_host_config': '&@#...
0
votes
0
answers
22
views
pytest: Unable to mock certain module under package while all other modules can be mocked
I have a fixture mocking all the get_session invocations under a specific package. This is how the fixture mocks all these invocation
@pytest.fixture(name="mock_flask_db_session", scope=&...
0
votes
0
answers
21
views
Upload Flask app on shared hosting cpanel
Hello i'm trying to host my flask application on cpanel at shared hsoting. I have upload project and when i access my domain it shows directory files even there is .htaccess file in main directory. ...
-2
votes
0
answers
17
views
HTML rendering variable names instead of values - bokeh, flash, python
Embedding multiple bokeh HTML plots into flask
the Webpage is presenting variable names instead of values.
Any help pls?
I am on godaddy VPS
Here is the output:
{{ div1 | safe }} {{ script1 | safe }}
{...
1
vote
0
answers
29
views
PyInstaller not working but running when I use python3 main.py
I wanted to use PyInstaller to make an EXE of this program which runs my react front-end.
It runs fine when I do it in my PowerShell as python3 main.py. However, when I launch the main.exe, it doesn't ...
0
votes
0
answers
22
views
flask pyinstaller executable unable to create/read SQLite3 database
I've created a flask executable using pyinstaller. The app has to read and write to a SQLite3 database. I am using flask-sqlalchemy and flask-migrate, flaskwebgui for opening in browser. The ...
0
votes
1
answer
25
views
problem with apache server displaying index.html instead of flask endpoint
I have the following config files:
/etc/apache2/sites-available/propman.domain.com.conf:
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess propman_proc python-home=/var/www/propman/.venv processes=1 ...
0
votes
0
answers
20
views
Kill open Popen handles on Flask dev server restart
I have a Flask app that I'm using to serve a webapp, whose frontend is built using esbuild.
I've managed to configure the Flask server to start the esbuild process in development mode, and to ensure ...
0
votes
0
answers
25
views
Read gzip content from python request
I have some json data that I want to send over a http call with gzip compression.
[{"article_id":"42278","store_id":"3","alias":" ","...
0
votes
0
answers
24
views
gunicorn fails [ERROR] Failed to add operation for GET
I start my app with
gunicorn app.app:app -w 2 --threads 2 -b 0.0.0.0:8080 -k uvicorn.workers.UvicornWorker
and I get error "[ERROR] Failed to add operation for GET /foo" and trying to ...