tommyjcarpenter opened a new issue #21674:
URL: https://github.com/apache/airflow/issues/21674


   ### Apache Airflow version
   
   2.2.3 (latest released)
   
   ### What happened
   
   `itsdangerous` had a release 16 hours ago, but I'm not 100% sure it's the 
cause of this:
   
   ```
   
   
   ==================================== ERRORS 
====================================
   --
   900 | _______ ERROR collecting 
tests/test_airflow_generate_indexapi_runner.py ________
   901 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:390: in 
resolve
   902 | found = getattr(found, frag)
   903 | E   AttributeError: module 'airflow.utils.log' has no attribute 
'file_task_handler'
   904 |  
   905 | During handling of the above exception, another exception occurred:
   906 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:392: in 
resolve
   907 | self.importer(used)
   908 | 
.tox/unit/lib/python3.10/site-packages/airflow/utils/log/file_task_handler.py:25:
 in <module>
   909 | from itsdangerous import TimedJSONWebSignatureSerializer
   910 | E   ImportError: cannot import name 'TimedJSONWebSignatureSerializer' 
from 'itsdangerous' 
(/codebuild/output/src517196057/src/github.com/merqurian/python-indexapi/.tox/unit/lib/python3.10/site-packages/itsdangerous/__init__.py)
   911 |  
   912 | The above exception was the direct cause of the following exception:
   913 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:565: in 
configure
   914 | handler = self.configure_handler(handlers[name])
   915 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:723: in 
configure_handler
   916 | klass = self.resolve(cname)
   917 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:399: in 
resolve
   918 | raise v
   919 | /root/.pyenv/versions/3.10.2/lib/python3.10/logging/config.py:392: in 
resolve
   920 | self.importer(used)
   921 | 
.tox/unit/lib/python3.10/site-packages/airflow/utils/log/file_task_handler.py:25:
 in <module>
   922 | from itsdangerous import TimedJSONWebSignatureSerializer
   923 | E   ValueError: Cannot resolve 
'airflow.utils.log.file_task_handler.FileTaskHandler': cannot import name 
'TimedJSONWebSignatureSerializer' from 'itsdangerous' 
(/codebuild/output/src517196057/src/github.com/merqurian/python-indexapi/.tox/unit/lib/python3.10/site-packages/itsdangerous/__init__.py)
   ```
   
   here was the test trace that caused this:
   
   ```
   The above exception was the direct cause of the following exception:
   tests/test_airflow_generate_indexapi_runner.py:5: in <module>
       from airflow.models.dagbag import DagBag
   .tox/unit/lib/python3.10/site-packages/airflow/__init__.py:46: in <module>
       settings.initialize()
   .tox/unit/lib/python3.10/site-packages/airflow/settings.py:492: in initialize
       LOGGING_CLASS_PATH = configure_logging()
   .tox/unit/lib/python3.10/site-packages/airflow/logging_config.py:74: in 
configure_logging
       raise e
   .tox/unit/lib/python3.10/site-packages/airflow/logging_config.py:69: in 
configure_logging
       dictConfig(logging_config)
   
../../.pyenv/versions/3.10.2/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py:810:
 in dictConfig
       dictConfigClass(config).configure()
   
../../.pyenv/versions/3.10.2/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py:572:
 in configure
       raise ValueError('Unable to configure handler '
   E   ValueError: Unable to configure handler 'task'
   ```
   
   ### What you expected to happen
   
   this was working until yesterday, some recent release has broken airflow
   
   ### How to reproduce
   
   ```
   apache-airflow
   apache-airflow-providers-cncf-kubernetes
   ```
   
   ### Operating System
   
   mac and ubuntu
   
   ### Versions of Apache Airflow Providers
   
   ```
   apache-airflow
   apache-airflow-providers-cncf-kubernetes
   ```
   
   latest in pypi as of today
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   this was not in a deployment, just in a test, our test import the latest 
from pypi of :
   
   ```
   apache-airflow
   apache-airflow-providers-cncf-kubernetes
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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]


Reply via email to