pingzh commented on pull request #22416:
URL: https://github.com/apache/airflow/pull/22416#issuecomment-1075531290


   @potiuk any suggestions that I can fix this 
https://github.com/apache/airflow/runs/5648830794?check_suite_focus=true#step:11:1039
   
   since there is not `DEFAULT_FORMAT_PREFIX` in 2.1.1 
https://github.com/apache/airflow/blob/2.1.1/airflow/utils/operator_helpers.py#L20
   
   ```
   There were errors when importing Providers!
   This test is run to check Provider's compatibility with Airflow 2.1.0
   So this error might mean that your providers are not Airflow 2.1.0 compatible
   
   Detailed errors:
   
   ----------------------------------------
   Exception when importing: 
airflow.providers.google.cloud.example_dags.example_presto_to_gcs
   
   
   Traceback (most recent call last):
     File "/opt/airflow/dev/import_all_classes.py", line 90, in 
import_all_classes
       _module = importlib.import_module(modinfo.name)
     File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in 
import_module
       return _bootstrap._gcd_import(name, package, level)
     File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
     File "<frozen importlib._bootstrap>", line 983, in _find_and_load
     File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 728, in exec_module
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/google/cloud/example_dags/example_presto_to_gcs.py",
 line 32, in <module>
       from airflow.providers.google.cloud.transfers.presto_to_gcs import 
PrestoToGCSOperator
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/google/cloud/transfers/presto_to_gcs.py",
 line 24, in <module>
       from airflow.providers.presto.hooks.presto import PrestoHook
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/presto/hooks/presto.py",
 line 31, in <module>
       from airflow.utils.operator_helpers import 
AIRFLOW_VAR_NAME_FORMAT_MAPPING, DEFAULT_FORMAT_PREFIX
   ImportError: cannot import name 'DEFAULT_FORMAT_PREFIX' from 
'airflow.utils.operator_helpers' 
(/usr/local/lib/python3.7/site-packages/airflow/utils/operator_helpers.py)
   ```
   


-- 
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