dada-engineer opened a new issue, #57419:
URL: https://github.com/apache/airflow/issues/57419
### Apache Airflow version
3.1.1
### If "Other Airflow 2/3 version" selected, which one?
_No response_
### What happened?
structlog released a new version yesterday and since then configure_logging
fails with
```
Traceback (most recent call last):
File "/home/airflow/.local/bin/airflow", line 3, in <module>
from airflow.__main__ import main
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/__init__.py", line
79, in <module>
settings.initialize()
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/settings.py", line
698, in initialize
LOGGING_CLASS_PATH = configure_logging()
^^^^^^^^^^^^^^^^^^^
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/logging_config.py",
line 88, in configure_logging
from airflow._shared.logging import configure_logging, init_log_folder,
translate_config_values
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/_shared/logging/__init__.py",
line 27, in <module>
from .structlog import configure_logging, init_log_file, init_log_folder
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/_shared/logging/structlog.py",
line 38, in <module>
from .percent_formatter import PercentFormatRender
File
"/home/airflow/.local/lib/python3.12/site-packages/airflow/_shared/logging/percent_formatter.py",
line 29, in <module>
from structlog.dev import ConsoleRenderer, Styles
ImportError: cannot import name 'Styles' from 'structlog.dev'
(/home/airflow/.local/lib/python3.12/site-packages/structlog/dev.py)
```
Workaround for us for now is to pin structlog to version < 25.5.0
### What you think should happen instead?
Styles should be imported from the correct module
### How to reproduce
run airflow db check for example.
### Operating System
debian (official airflow 3.1.1-slim-python3.12 docker image)
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
We do build a docker container with dags and custom requirements. It is
based on the official 3.1.1-slim-python3.12 chart
### Anything else?
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]