All Questions
Tagged with python-3.6 flask
69 questions
0
votes
0
answers
490
views
module not found markupsafe
I create a virtual env:
> virtualenv -p python3 spectap
I activate it and install packages from requirements.txt in it:
> . spectap/bin/activate
> pip3 install -r requirements.txt
Running ...
0
votes
0
answers
55
views
Seeing Internal Server Error while trying to link css file on html file using flask app at Cpanel
I am trying to link the index.html file to a css static file.
<html>
<!-- Head of index -->
<head>
<link rel="stylesheet" href="{{url_for('static', ...
0
votes
1
answer
133
views
Python cannot recognize module after clone from Gitlab
I recently cloned a code from Gitlab on my PC and I'm getting this error
ModuleNotFoundError: No module named 'models'
At this line
from models import *
The file that contains this line is in a ...
-1
votes
1
answer
366
views
Flask Image API returning an error constantly
I have an image API for which this is the code:
@app.route("/identify-x-rays", methods=["POST"])
def process_image():
file = request.files['image'] # Read the image via file....
1
vote
0
answers
346
views
Python win32com excel process file access or permissions issue
I'm trying to resolve a permissions/file access issue with a python win32com excel process run from a flask app.
I have a python script that runs a VBA macro that works locally on the flask app server ...
1
vote
0
answers
1k
views
gevent monkey patching with flask run fails in debug mode
I was trying to use grequests to make concurrent HTTP calls. To be able to test it on local, where I run flask dev server, I was trying to monkey patch gevent, where I'm facing some issues.
Here's my ...
6
votes
5
answers
10k
views
Flask : 'Token' object has no attribute 'test' | render_template error
Code in Fake_News_Det.py :
from flask import Flask, render_template, request
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import PassiveAggressiveClassifier
...
-1
votes
1
answer
678
views
ValueError: invalid literal for int() with base 10: '' using cookies in Flask application
Code For Retrieving Count of visiting website
facing issue while retrieving the count value from cookies.get() method. Though I have tried to make use of typecasting as
count=int(request.cookies.get('...
4
votes
0
answers
2k
views
Flask cache throws error - KeyError: <flask_caching.Cache object at 0x7ff585e47358>
I'm trying to add caching to my Python Flask application.
I did what Flask-Caching pages suggest, so I have this in app module:
config = {
# "DEBUG": True,
"env": 'dev',
...
0
votes
1
answer
2k
views
How to use pickle.load in flask app - Python3
@app.route('/', methods=['POST'])
def upload_file():
if request.method == 'POST':
if 'files[]' not in request.files:
flash('No file part')
return redirect(request.url)
files =...
0
votes
1
answer
46
views
Backend Flask not redirecting after query
I'm making a page where the user selects elements, confirms his choice, the data is then sent to the backend, and a .csv is made.
After the file is created I want the user to be redirected to a page ...
1
vote
1
answer
4k
views
"PermissionError: [Errno 13] Permission denied:" In flask application
Problem:
I'm getting the following error
"PermissionError: [Errno 13] Permission denied:
'/home/[user]/daily_events_20200722.txt'
from this line of code:
with open(settings.HOME_PATH + f'...
0
votes
2
answers
1k
views
Call a shell script from Flask API
Really new to API building -
I am trying to build an API that will take arguments from the HTTP request. So far I am able to start the flask API server, I have put my script in the same folder. Still, ...
0
votes
0
answers
72
views
Is there a way to convert HEX color into visual color in HTML, CSS or Python?
I have been working on a project with forms in HTML to understand more about MongoDB, CSS, HTML, Python. I used Flask to put Python, HTML and CSS together in PyCharm. While I was testing my code to ...
4
votes
0
answers
2k
views
Flask-Dash integration with user authentication
I want to create a dashboard using Plotly's dash framework on flask framework integration. Where I want to add token-based user authentication in the flask. after successful authentication, dash app ...