Taragolis commented on PR #35162:
URL: https://github.com/apache/airflow/pull/35162#issuecomment-1780206536
I've checked again, previous error happen because we tried to install
Airflow from PyPI with constraints for main branch.
If it failed it tried to install airflow without constraints.
And actual error happen in tests
```
==================================== ERRORS
====================================
_______________ ERROR collecting test_kubernetes_pod_operator.py
_______________
ImportError while importing test module
'/home/runner/work/airflow/airflow/kubernetes_tests/test_kubernetes_pod_operator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127:
in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_kubernetes_pod_operator.py:41: in <module>
from airflow.providers.cncf.kubernetes.hooks.kubernetes import
KubernetesHook
../airflow/providers/cncf/kubernetes/hooks/kubernetes.py:25: in <module>
import aiofiles
E ModuleNotFoundError: No module named 'aiofiles'
```
I would recommend to add `aiofiles` into the
https://github.com/apache/airflow/blob/main/scripts/ci/kubernetes/k8s_requirements.txt
as workaround
Jarek @potiuk maybe you know how to deal with new dependencies for K8S
Provider in tests without add it into ci requirements?
--
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]