Good morning, I have a deployment of Datahub with ...
# troubleshoot
m
Good morning, I have a deployment of Datahub with Airflow's connection enabled. Suh connection has been working until today, that for an unknown reason it is now printing the following error:
Copy code
{plugins_manager.py:235} ERROR - Failed to import plugin acryl-datahub-airflow-plugin
 Traceback (most recent call last):
   File "/home/airflow/.local/lib/python3.7/site-packages/airflow/plugins_manager.py", line 227, in load_entrypoint_plugins
     plugin_class = entry_point.load()
   File "/home/airflow/.local/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 203, in load
     module = import_module(match.group('module'))
   File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
     return _bootstrap._gcd_import(name[level:], 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 "/home/airflow/.local/lib/python3.7/site-packages/datahub_airflow_plugin/datahub_plugin.py", line 14, in <module>
     from datahub_provider.hooks.datahub import AIRFLOW_1, DatahubGenericHook
 ImportError: cannot import name 'AIRFLOW_1' from 'datahub_provider.hooks.datahub' (/home/airflow/.local/lib/python3.7/site-packages/datahub_provider/hooks/datahub.py)
I don't know the source of this error as it has never shown before. I am using the v0.8.44 version of Datahub's plugin on Airflow as with later versions I have a problem version with sqlalchemy that causes the following error:
Copy code
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py", line 267, in _validate_config_dependencies
     raise AirflowConfigException(f"error: cannot use sqlite with the {self.get('core', 'executor')}")
 airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the CeleryExecutor
Thanks in advance!!
d
I think, DataHub was upgraded to the latest, but our Airflow plugin doesn’t. with 0.9.2 we dropped Airflow 1 support and that’s why the AIRFLOW_1 import is missing.
You should either upgrade our Airflow plugin to 0.9.2 or downgrade datahub package to < 0.9.2
m
That was it. Thank you @dazzling-judge-80093 Another question, the compatibility between sqlalchemy and Airflow 2.3 mentioned in this thread is still in progress, right??