Skip to main content

Questions tagged [werkzeug]

Werkzeug is a WSGI utility library for Python. It's widely used and BSD licensed.

0 votes
0 answers
35 views

Latest version of Flask will not run

flask run ends with the error ImportError: cannot import name '_request_ctx_stack' from 'flask' Common question it seems, but I cannot find a straight answer for any recent versions of Flask. At ...
Andy Frey's user avatar
  • 142
-1 votes
1 answer
37 views

Issue between Werkzeug (dependency of Flask) and Vercel when trying to build webapp

I'm trying to deploy a Flask app using Vercel and I'm getting an error during the build that reads as follows: [Error: ENOENT: no such file or directory, lstat '/vercel/path0/werkzeug/__pycache__/...
Ajaya Ramachandran's user avatar
0 votes
0 answers
13 views

werkzeug Local got unexpected value

I may have a misunderstood with werkzeug.local Here is my simplified test code: from flask import Flask, request from werkzeug.local import Local import threading app = Flask(__name__) local_data = ...
william's user avatar
  • 313
0 votes
2 answers
46 views

Flask: How to fix Build Error when building URL endpoint

I am trying to run my Flask app which was previously working, although now throws the error werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'dataVis'. Did you mean 'static' ...
brendog's user avatar
0 votes
0 answers
23 views

How to disable Flask/Werkzeug logs using socketio

I cannot in any way disable the Flask/Werkzeug logs. I am developing a site for a board game and when the lobby starts all the clients request the images of the cards at the same time. I think ...
Emanuele Costanzo's user avatar
0 votes
0 answers
49 views

How to get image from odoo12 for external web

I want to get image from Odoo to external web. I tried get any url from controller of odoo but it did not work. I am using Odoo12 as the web backend for setting values, and there is an external ...
Pplyz's user avatar
  • 1
1 vote
1 answer
27 views

twisted klein CORS headers not easy to see how to capture preflight OPTIONS call in KLEIN

When Changing from twisted.web to KLEIN for a project, I have run into the problem where I need to deal with the browser preflight request and handle the CORS headers. But I cannot find any solid ...
John Aherne's user avatar
0 votes
0 answers
46 views

Werkzeug issue:AttributeError: 'int' object has no attribute 'count'

I have tried my hand at a recommendation engine. I cant seem to solve this error in the password field; it is taking an integer as an attribute which prohibits usage of count() method. Traceback (most ...
Samvav Dhal's user avatar
0 votes
1 answer
881 views

AttributeError: module 'typing' has no attribute 'Literal'

I have python 3.9 installed in my windows machine with a flask script working as expected. Then I tried to replicate the environment on my linux machine. I have the same python version and the exact ...
galex's user avatar
  • 95
0 votes
0 answers
44 views

Account in flask, Sql Aalchemy is created but I get werkzeug error AttributeError: 'NoneType' object has no attribute 'is_active'

I am building a flask web app using sql alchemy as database, when I try to make a new account it gives me error AttributeError: 'NoneType' object has no attribute 'is_active' in werkzeug, but the ...
Code Freak's user avatar
3 votes
1 answer
429 views

413 REQUEST ENTITY TOO LARGE flask werkzeug gunicorn MAX_CONTENT_LENGTH

I am using flask in combination with werkzeug and gunicorn. I am running Gunicorn with the following command: gunicorn --log-level debug --timeout 300 --limit-request-line 0 --limit-request-field_size ...
Nima Mazloumi's user avatar
0 votes
1 answer
26 views

How to encode a MultiIDict in werkzeug 3.0

I see url_encode no longer is available in Werkzeug 3.0. Replacing it with urlencode from urllib.parse won't work with lists e.g. >>> from werkzeug.datastructures import MultiDict >>>...
neurino's user avatar
  • 12.2k
1 vote
0 answers
37 views

sklearn "transform_output" setting different in Flask application context v request context

I'm working on modifying a working Flask application I've been using to serve an ML model to now serve predictions from a new, updated model. The model is an sklearn pipeline object I've trained and ...
coruble's user avatar
  • 11
0 votes
0 answers
56 views

Flask / Werkzeug routing - malformed url rule for valid regex

From my understanding, if my Flask app's config has host_matching=True with a static_host also set, then I can pass a host regex string into each route's options in order to get host matching working. ...
daskalou's user avatar
  • 106
0 votes
1 answer
56 views

MySQL connection not available and werkzeug key error

I have a simple Flask app with a web form. When I submit the web form, and then upload the data to mysql, sometimes it works, but sometimes it doesn't. This is happening both locally and when I deploy ...
Krabs's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
44