question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webserver doesnt start with WTForms==2.3.0

See original GitHub issue

Apache Airflow version: 1.10.7

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment: local

  • Cloud provider or hardware configuration: 3Ghz Intel Core i5, 16GB
  • OS (e.g. from /etc/os-release): Debian 9
  • Kernel (e.g. uname -a): Linux debian 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux
  • Install tools:
  • Others:

What happened:

Traceback (most recent call last): File “/usr/local/bin/airflow”, line 26, in <module> from airflow.bin.cli import CLIFactory File “/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py”, line 71, in <module> from airflow.www_rbac.app import cached_app as cached_app_rbac File “/usr/local/lib/python3.6/site-packages/airflow/www_rbac/app.py”, line 26, in <module> from flask_appbuilder import AppBuilder, SQLA File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/init.py”, line 6, in <module> from .base import AppBuilder # noqa: F401 File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py”, line 8, in <module> from .api.manager import OpenApiManager File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/api/manager.py”, line 7, in <module> from flask_appbuilder.baseviews import BaseView File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py”, line 21, in <module> from .forms import GeneralModelConverter File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/forms.py”, line 17, in <module> from .fieldwidgets import ( File “/usr/local/lib/python3.6/site-packages/flask_appbuilder/fieldwidgets.py”, line 3, in <module> from wtforms.widgets import html_params, HTMLString ImportError: cannot import name ‘HTMLString’

It seems that after the release of WTForms==2.3.0 webserver doesnt start Changing it back to WTForms==2.2.1 solves the issue

How to reproduce it: Use WTForms==2.3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
potiukcommented, Apr 22, 2020

Closing as duplicate #8512. You can also install airflow using pinned requirements that are already released in 1.10.10. See also #8513 with detail description of repeatable installation process.

1reaction
robzor92commented, Apr 22, 2020

I see they already updated setup.py in airflow to use 2.2.1 https://github.com/apache/airflow/blob/1d5d6613a14ae3120093979cb31ae8b0de90c2d4/setup.py#L601, but not released it yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Use and Validate Web Forms with Flask-WTF
In this step, you'll set up a web form using fields and validators you'll import from the WTForms library. You'll set up the...
Read more >
Flask WTForms not allowing me to input anything to the forms
I'm following a web app tutorial using Flask, and it has a section on how to implement WTForms. I followed everything correctly, ...
Read more >
FAQ — WTForms Documentation (3.0.x)
The answer is most likely yes. WTForms tries to provide as usable an API as possible. We've listed here some of the known...
Read more >
ImportError: cannot import name 'TextField' from 'wtforms' #206
Fresh install of Ubunto 20.04 and I have FTS server running and ATAK can connect, but can't get UI running --> error code...
Read more >
Fix Missing CSRF Token Issues with Flask - Nick Janetakis
Yet It Still Doesn't Work and Flask Throws a CSRF Related Error ... If your Flask server is not running on localhost then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found