You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/04 20:28:13 UTC
[GitHub] [airflow] Brooke-white commented on pull request #18447: Add RedshiftSQLHook, RedshiftSQLOperator
Brooke-white commented on pull request #18447:
URL: https://github.com/apache/airflow/pull/18447#issuecomment-933830460
reverted 76a6e93 in c743bfc due to it the import approach causing an issue in CI workflow "Install and test provider packages and airflow on Airflow 2.1 files" [link to failing CI run](https://github.com/apache/airflow/pull/18447/checks?check_run_id=3795213662)
```bash
Import all Airflow classes
Searching for providers packages in:
/usr/local/lib/python3.6/site-packages/airflow/providers
Walking all packages in
['/usr/local/lib/python3.6/site-packages/airflow/providers'] with prefix
airflow.providers.
...
ERROR: There were some import errors
----------------------------------------
Traceback (most recent call last):
File "/opt/airflow/dev/import_all_classes.py", line 82, in import_all_classes
_module = importlib.import_module(modinfo.name)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in
import_module
return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.6/site-packages/airflow/providers/amazon/aws/exam
ple_dags/example_redshift.py", line 26, in <module>
from airflow.providers.amazon.aws.operators.redshift import
RedshiftSQLOperator
File "/usr/local/lib/python3.6/site-packages/airflow/providers/amazon/aws/oper
ators/redshift.py", line 21, in <module>
from airflow.providers.amazon.aws.hooks.redshift import RedshiftSQLHook
File "/usr/local/lib/python3.6/site-packages/airflow/providers/amazon/aws/hook
s/redshift.py", line 27, in <module>
from airflow.compat.functools import cached_property
ModuleNotFoundError: No module named 'airflow.compat'
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org