TypeError: an integer is required (got type str)

I am new to Python and Flask. I am working my way throught this tutorials: [http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iii-web-forms][1] [1]:...

import error flask.ext.wtf import Form

i am following The Flask Mega tutorial, while importing flask.ext.wtf.form i get import error my code is - from flask.ext.wtf.form import Form from wtforms import StringField, BooleanField from...

CommandError: Can't locate revision identified by '...' when migrating using Flask-Migrate

I started using Flask-Migrate today and installed it on a test project. However i am getting following error: alembic.util.exc.CommandError: Can't locate revision identified...

sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string

I'm learning flask web microframework and after initialization of my database I run flask db init I run flask db migrate, to migrate my models classes to the database and i got an error. I work...

Pytest flask live_server: can't freeze time

I'm trying to implement unit tests for a Flask application using pytest-flask. The output of my queries is dependent on the current time. For consistent unit tests, I'm trying to freeze the time....

PortAudio library not found by sounddevice during runtime [WINDOWS]

PROBLEM: Similar to this question for Linux, I'm running into a OSError: PortAudio library not found after I package my app with pyinstaller and execute the .exe. (Note, I do not encounter any...

Redis queue worker module not found

I have dockrized container to run a flask app. After configuring the redis and rq worker I am getting the error for module not found in the worker task. I am certain this is some path issue, I...

Sphinx throws KeyError exception

I have a python flask script inside a docker. This script get some environment variable from the docker-compose in this way: app = Flask(__name__) DEFAULT_PSW =...

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: mytable

Sorry for the messy code, I got a little lost in trial and error stage (I run out of coffee). I try to build a dashboard. to track my orders, revenue etc. to do this, I created a database that...

No module named 'application' Error while deploying simple web app to Elastic Beanstalk

I am deploying a web app to elastic beanstalk using this tutorial and the same 'application.py' file they have:...

flask connexion add_api gives error: AttributeError: module 'agreement_api.controllers.agreement_controller' has no attribute 'read_agreements'

I am playing around with flask and connexion to set-up a REST API access for my application. Scenario #1: If I launch my app through Pycharm run/debug tool Everything works fine (flask app runs...

Application Error Azure : ModuleNotFoundError: No module named 'flask_socketio'

I am trying to deploy a Flask Application using Gunicorn on Azure. My application runs perfectly on localhost and even on Heroku, But when I try deploying it on Azure Web App, It doesn't build and...

How can I set up a Ray (a distributed programming framework) and Flask app on AWS Elastic Beanstalk?

Background I've been trying, unsuccessfully, to implement Ray (https://github.com/ray-project/ray) into the production version of our AI API. Essentially, we want to use it to speed up one of our...

Missing modules error when starting passenger

I am using the passenger to deploy a Flask REST API on an apache server. Here is my Apache conf file: <VirtualHost *:80> ServerName demo.app.com DocumentRoot /var/www/demo.app.com/backend...

PyJWT won't import jwt.algorithms (ModuleNotFoundError: No module named 'jwt.algorithms')

For some reason, PyJTW doesn't seem to work on my virtualenv on Ubuntu 16.04, but it worked fine on my local Windows machine (inside a venv too). I'm clueless, I've tried different versions,...

PostgreSQL Tables not updated in Heroku Deployment using Python and Flask

I have successfully deployed an app in Heroku I built using Python and Flask. Locally, user registration and authentication works as expected. However, when I try to sign up or even log in to the...

Moviepy freezes after first couple of frames after concatenation

I have been trying to build a project in which a Flask Application can automatically concatenate a selected amount of video's to a 'core video'. User's can upload a video, which is sent to amazon...

cannot run pyinstaller executable of a flask server. ValueError: Can't find a dictionary for language 'ru'

I'm trying to put a simple flask server into executable by using pyinstaller -F server.py command When running the exe file, I obtain the following error: Traceback (most recent call last): File...

Once deployed my app reports - Cannot import name 'vision' from 'google.cloud'

I am working on a Google App and have an issue when I deploy it. The project contains two services website and worker. The website acts as a front page and the worker is run through a cron and has...

It seems that scikit-learn has not been built correctly

I have been using Jupyter Notebook for my machine learning project. Before scikit-learn was working fine but eventually I installed pip install imblearn and pip install -U imbalanced-learn after...

No module named "app" error on deploying Flask app to Heroku

I am trying to deploy my flask app to Heroku, but I am getting this error No module named 'app' on running the command. heroku logs --tail My flask app has the following folder structure I get...

ModuleNotFoundError: No module named 'tensorflow' when I test my flask/react app locally(using the procfile command)

Apologies in advance if this is a bad post, new to web dev and stackoverflow. I am trying to deploy a flask/react.js app with ML models which run on tensorflow; I want to deploy using Heroku...

Stream video to web browser with FastAPI

I found an example in FLASK to transmit a video camera through the rtsp protocol in the web browser. I tried to use this same example in the fastapi, but I'm not getting it. The image is...

The problem involved WSL, Gunicorn, Docker and Flask

I am working on Windows 10 Pro, Git Bash, Docker Desktop. Now I have a project which runs a Flask application in Docker through Gunicorn. The entrypoint in Dockerfile: ENTRYPOINT ["gunicorn",...

Deploying a Plotly/Dash app to AWS using Serverless Framework

I am trying to deploy a Plotly Dash app as an AWS Lambda using Serverless framework. The app works as expected locally and I can start it using serverless wsgi serve command. serverless deploy...

OSError: [Errno 98] Address already in use

I have written a simple REST API using flask web framework. It is working as expected on my local machine. I tried deploying the same to Google App Engine. When I run it, I get the following...

'Couldn't load Spacy model for any of languages: en' works fine locally but issue when deploying on heroku

having issue with Spacy (used by Profanity Filter), worked fine on local host but encounter this issue when deploying on Heroku, will post Heroku logs below: 2021-04-09T00:13:06.393111+00:00...

Error while initializing database in apache airflow, below is the attached error, Thankyou

##database intialization in apache airflow. I have installed apache airflow in linux with python 3.8 version. while running airflow commands it showing version name. error occured while...

FlaskInjector - RuntimeError: Working outside of request context with Flask==2.0.0 and Werkzeug==2.0.1

I met a problem with my Flask app because of module FlaskInjector (Flask-Injector==0.12.3) after upgrading Flask to 2.0.0 and Werkzeug to 2.0.1. But when downgrade Flask to 1.1.2 and Werkzeug to...

OSError: SavedModel file does not exist when I try to deploy my Flask application with deep learning model on Heroku

My flask app works fine on my local machine but when I deploy it on Heroku it gives the following error: 2021-07-03T08:12:21.413990+00:00 app[web.1]: OSError: SavedModel file does not exist at:...