GitHub user utrivedi15five edited a discussion: Fresh Install of Airflow 
causing error when loading certain pages

I get this error when loading certain pages. Would like to see if anyone else 
is seeing this issue. I did a fresh install with no dags(steps below) to 
reproduce the issue on local env 

```
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/form.py",
 line 209, in __call__
webserver  | return type.__call__(cls, *args, **kwargs)
webserver  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/flask_wtf/form.py",
 line 73, in __init__
webserver  | super().__init__(formdata=formdata, **kwargs)
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/form.py",
 line 281, in __init__
webserver  | super().__init__(self._unbound_fields, meta=meta_obj, 
prefix=prefix)
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/form.py",
 line 49, in __init__
webserver  | field = meta.bind_field(self, unbound_field, options)
webserver  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/meta.py",
 line 28, in bind_field
webserver  | return unbound_field.bind(form=form, **options)
webserver  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/fields/core.py",
 line 387, in bind
webserver  | return self.field_class(*self.args, **kw)
webserver  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
webserver  | File 
"/Users/username/.pyenv/versions/3.11.8/envs/airflow_debug/lib/python3.11/site-packages/wtforms/fields/core.py",
 line 133, in __init__
webserver  | for k, v in flags.items():
webserver  | ^^^^^^^^^^^
webserver  | AttributeError: 'tuple' object has no attribute 'items'
webserver  | 127.0.0.1 - - [26/Oct/2024:09:21:49 -0400] "GET /roles/list/ 
HTTP/1.1" 500 1588 "http://localhost:8080/xcom/list/"; "Mozilla/5.0 (Macintosh; 
Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 
Safari/537.36"
```

<img width="1154" alt="Screenshot 2024-10-26 at 3 22 52 PM" 
src="https://github.com/user-attachments/assets/41618d89-5883-4117-b92a-538761b4f411";>


Pages affected:
http://localhost:8080/connection/list/
http://localhost:8080/variable/list/
http://localhost:8080/pool/list/
http://localhost:8080/users/list/
http://localhost:8080/roles/list/



I created a fresh pyenv environment and ran 

**Python 3.11.8**

```
pip install apache-airflow
export AIRFLOW_HOME=/to/my/dir
airflow db migrate
airflow standalone

```

**List of installed packages**

```
aiohappyeyeballs==2.4.3
aiohttp==3.10.10
aiosignal==1.3.1
alembic==1.13.3
anyio==4.6.2.post1
apache-airflow==2.10.2
apache-airflow-providers-common-compat==1.2.1
apache-airflow-providers-common-io==1.4.2
apache-airflow-providers-common-sql==1.18.0
apache-airflow-providers-fab==1.4.1
apache-airflow-providers-ftp==3.11.1
apache-airflow-providers-http==4.13.1
apache-airflow-providers-imap==3.7.0
apache-airflow-providers-smtp==1.8.0
apache-airflow-providers-sqlite==3.9.0
apispec==6.7.0
argcomplete==3.5.1
asgiref==3.8.1
attrs==24.2.0
babel==2.16.0
blinker==1.8.2
cachelib==0.9.0
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.4.0
click==8.1.7
clickclick==20.10.2
colorama==0.4.6
colorlog==6.8.2
ConfigUpdater==3.2
connexion==2.14.2
cron-descriptor==1.4.5
croniter==3.0.4
cryptography==43.0.3
Deprecated==1.2.14
dill==0.3.9
dnspython==2.7.0
email_validator==2.2.0
Flask==2.2.5
Flask-AppBuilder==4.5.0
Flask-Babel==2.0.0
Flask-Caching==2.3.0
Flask-JWT-Extended==4.6.0
Flask-Limiter==3.8.0
Flask-Login==0.6.3
Flask-Session==0.5.0
Flask-SQLAlchemy==2.5.1
Flask-WTF==1.2.2
frozenlist==1.5.0
fsspec==2024.10.0
google-re2==1.1.20240702
googleapis-common-protos==1.65.0
grpcio==1.67.0
gunicorn==23.0.0
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
idna==3.10
importlib_metadata==8.4.0
importlib_resources==6.4.5
inflection==0.5.1
itsdangerous==2.2.0
Jinja2==3.1.4
jmespath==1.0.1
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
lazy-object-proxy==1.10.0
limits==3.13.0
linkify-it-py==2.0.3
lockfile==0.12.2
Mako==1.3.6
markdown-it-py==3.0.0
MarkupSafe==3.0.2
marshmallow==3.23.0
marshmallow-oneofschema==3.1.1
marshmallow-sqlalchemy==0.28.2
mdit-py-plugins==0.4.2
mdurl==0.1.2
methodtools==0.4.7
more-itertools==10.5.0
multidict==6.1.0
opentelemetry-api==1.27.0
opentelemetry-exporter-otlp==1.27.0
opentelemetry-exporter-otlp-proto-common==1.27.0
opentelemetry-exporter-otlp-proto-grpc==1.27.0
opentelemetry-exporter-otlp-proto-http==1.27.0
opentelemetry-proto==1.27.0
opentelemetry-sdk==1.27.0
opentelemetry-semantic-conventions==0.48b0
ordered-set==4.1.0
packaging==24.1
pathspec==0.12.1
pendulum==3.0.0
pluggy==1.5.0
prison==0.2.1
propcache==0.2.0
protobuf==4.25.5
psutil==6.1.0
pycparser==2.22
Pygments==2.18.0
PyJWT==2.9.0
python-daemon==3.1.0
python-dateutil==2.9.0.post0
python-nvd3==0.16.0
python-slugify==8.0.4
pytz==2024.2
PyYAML==6.0.2
referencing==0.35.1
requests==2.32.3
requests-toolbelt==1.0.0
rfc3339-validator==0.1.4
rich==13.9.3
rich-argparse==1.5.2
rpds-py==0.20.0
setproctitle==1.3.3
six==1.16.0
sniffio==1.3.1
SQLAlchemy==1.4.54
SQLAlchemy-JSONField==1.0.2
SQLAlchemy-Utils==0.41.2
sqlparse==0.5.1
tabulate==0.9.0
tenacity==9.0.0
termcolor==2.5.0
text-unidecode==1.3
time-machine==2.16.0
typing_extensions==4.12.2
tzdata==2024.2
uc-micro-py==1.0.3
unicodecsv==0.14.1
universal_pathlib==0.2.5
urllib3==2.2.3
Werkzeug==2.2.3
wirerope==0.4.7
wrapt==1.16.0
WTForms==3.2.1
yarl==1.16.0
zipp==3.20.2
```




GitHub link: https://github.com/apache/airflow/discussions/43399

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to