lazy_gettext error on google app engine with python webapp2 babel

Background: I'm one of the primary contributors to gae-boilerplate, an open source boilerplate project to help users jump start development on google app engine with webapp2 and the latest...

import pymongo causes `ImportError: cannot import name BSON`. how do you fix the import error?

I'm having trouble getting a simple Hello World app to work using Flask, MongoDB, and Python. The app is bombing when trying to import from the bson module. All modules were installed successfully...

Why validation not working on form request?

I am learning flask and made a small application. Now I am trying to learn form. I used a simple code to validate a name request and it should give error when the field remains empty. But it isn't...

flask application starts without giving debugging pin, also no request info displayed

I'm truly uncertain how I got into this mode, but when I start my flask application on the development system, I see but there is no display of the debugging PIN and I don't see the requests...

Cannot succesfully validate reCAPTCHA via AJAX in Flask application

I am making a Flask application and I am trying to use Google reCAPTCHA for making verfication before sending form. However, I am constantly getting an error. Software is not recognizing that I...

How to import "gleam" package in Python 3?

I'm tyring to import the "gleam" package in Python 3. I have installed the "gleam" package successfully, but still it showing error. from wtforms import fields from ggplot import * from gleam...

How to update form element data value after construction using multidict

I have a website post creator / editor im writing. I have successfully been able to create post (saves to json) , get a pull down menu list of the made post from same db (and a second, all...

How to send JSON data with form data using Flask

I'm making a system to track entries to a sports day event and I can get the data from the form to the Python back-end but I don't know how to get the data for the event entries to the back-end...

Fix the 'Bad request' when receiving ajax data

Briefly, I am sending data from a SelectField (WTFORMS) using Ajax to update other SelectField choices dynamically. i have tried to send data as default or json, in both cases unsuccessfully. here...

Error when init Vertica as a database backend for airflow

I'm trying to use airflow with a Vertica database as a backend for metadata. I have configured correctly the airflow.cfg file providing the string connection with Vertica and the schema name. This...

Importing class from another directory to Flask App routes/views

I have a flask application, I used the below to import a module I wrote into the forms.py file and it seems to work. sys.path.append('/home/user/lib/') from mymodule import * However when I...

Flask web app not working on heroku but works normally on localhost

I have a problem on my Python Flask Web App. My code works normally without any error on localhost. But after I have deployed it on Heroku with the same code and files, it gave me error 500 when...

Flask redirect on button click not happening

I'm still trying to learn flask/redirects/etc in general. I tried to create a simple page with a submit button, and when I submit, redirects to a page which show json data. But nothing happens...

AttributeError: 'MSVCCompiler' object has no attribute 'linker_exe'

I'm trying to install AirFlow, but keep getting an error. The line - pip install apache-airflow I installed Visual Studio with the proper packages, installed misaka, and updated both pip install...

WTForm FieldList of multiple SelectFields only sends the first one in request

I implemented WTForm's FieldList with SelectField's to render multiple select choices based on data in a JSON file (as stated in this answer). It displays the select choices fine, but when I try...

embed raise ValidationError in wtform custom validation messages

I am trying to check the useremail already exist in JSON data using the wtf validation. I made a function which check the user exist but I have the problem with raise ValidatioError. I want to...

Flask form POST request to populate rest of jinja2 template

I have a Flask web form that "searches for members" using a free-text input field. I want to programmatically load-test this website using some command-line tool like curl, instead of mocking user...

airflow + why airflow return unclear erros

I am using the airflow application on my Linux server note - Airflow is a platform to programmatically author, schedule and monitor workflows. from some unclear reason we get the following issues...

Airflow Dag Run Stalls Mid-Run

I have setup airflow v1.10.6 on ubuntu, using python 3.6.8. and have written a simple practice dag that runs a set of 30 parallel tasks. I'm triggering the dag through the UI as this will be run...

Getting error when adding PyPI package to Composer environment

I just created a new Cloud Composer environment and I'm getting an error when trying to add some PyPI packages to the environment (for example google-cloud-pubsub). This is the data about the...

Getting Errors while installing airflow using pip install apache-airflow in macOS Catalina

I am steering my learning wheel towards airflow during this weekend and while setting up and installing airflow at local machine using pip install apache-airflow, I'm getting following...

SyntaxError: invalid syntax but followed the WTF documentation and still doesn't accept it

Learning python flask and WTF. Been working on the code below based of the documentation and tutorials however cannot seem to locate the error. Controller.py from flask import Flask, escape,...

Apache Airflow DockerOperator not finding docker module

So I am trying to run a simple dag using the DockerOperator. I am running the command airflow webserver in my conda environment with the following modules: Package ...

Flask-WTForms Select field data from JSON file

So I am trying to add a select field that is dynamic and gets its data from a json file. class CreateDelivery(FlaskForm): manufacturer = SelectField("Manufacturer", coerce=str) def...

ModuleNotFoundError: No module named 'wtforms_json'

I am trying to install Apache Superset on EC2 but I get this error when I run this command: fabmanager create-admin --app superset I am following the steps mentioned...

How to get wtforms to take json and insert data into the form object?

The situation: I am using React in the front-end and a Flask api server. I am wanting to send the data from React to the api and once I have done this I would like to use WTForms to run...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Apache Superset TypeError while starting with OAuth authentication enabled

I'm trying to configure OAuth authentication with GitHub apis, on Superset 1.0.1. Following the docs, I added the following lines in superset_config.py from flask_appbuilder.security.manager...

Flask/Python - Requests, make POST call, wait for response and make GET call using to fetch record of POST

My application generates a UUID when I open a form and on submit it makes a POST call to my api passing this value which creates an event in my app with additional properties. I then want to call...

NameError: name '_mysql' is not defined -- On airflow start in MacOSX

There are numbers of articles on the titled question but none of them worked for me. The detailed error is as follows: Traceback (most recent call last): File...