Replies: 3 comments 7 replies
-
|
Facing the same issue as well… |
Beta Was this translation helpful? Give feedback.
-
|
I have done a bit of playing and have learned the following things
Those two items led me to trying to inspect the available filesystems directly, where i was able to notice this warning message >>> from airflow import io
/home/lucas/code/telekom/gsus/pro-89/modeling/.venv/lib/python3.12/site-packages/airflow/configuration.py:859 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
>>> io._register_filesystems()
[2025-11-21T18:36:11.870+0100] {configuration.py:1077} WARNING - section/key [openlineage/namespace] not found in config
[2025-11-21T18:36:12.461+0100] {local.py:145} WARNING - To enable emitting Openlineage events, upgrade to Airflow 2.7 or install astronomer-cosmos[openlineage].
[2025-11-21T18:36:13.029+0100] {providers_manager.py:266} INFO - Optional provider feature disabled when importing 'airflow.providers.microsoft.azure.fs.msgraphfs.get_fs' from 'apache-airflow-providers-microsoft-azure' package
{'file': <function _file at 0x7f3f339f0a40>, 'local': <function _file at 0x7f3f339f0a40>, 'abfs': <function get_fs at 0x7f3f2eec3ce0>, 'abfss': <function get_fs at 0x7f3f2eec3ce0>, 'adl': <function get_fs at 0x7f3f2eec3ce0>}So I turned on debug logging and got some more details [2025-11-21T18:38:54.336+0100] {providers_manager.py:359} DEBUG - Initialization of Providers Manager[list] took 1.20 seconds
[2025-11-21T18:38:54.337+0100] {providers_manager.py:260} DEBUG - Optional feature disabled on exception when importing 'airflow.providers.microsoft.azure.fs.msgraphfs.get_fs' from 'apache-airflow-providers-microsoft-azure' package
Traceback (most recent call last):
File "/home/lucas/code/telekom/gsus/pro-89/modeling/.venv/lib/python3.12/site-packages/airflow/providers_manager.py", line 306, in _correctness_check
imported_class = import_string(class_name)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lucas/code/telekom/gsus/pro-89/modeling/.venv/lib/python3.12/site-packages/airflow/utils/module_loading.py", line 39, in import_string
module = import_module(module_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lucas/.local/share/uv/python/cpython-3.12.5-linux-x86_64-gnu/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'airflow.providers.microsoft.azure.fs.msgraphfs'
[2025-11-21T18:38:54.337+0100] {providers_manager.py:266} INFO - Optional provider feature disabled when importing 'airflow.providers.microsoft.azure.fs.msgraphfs.get_fs' from 'apache-airflow-providers-microsoft-azure' package
[2025-11-21T18:38:54.337+0100] {providers_manager.py:359} DEBUG - Initialization of Providers Manager[filesystems] took 1.20 seconds
This line in the provider info "filesystems": [
"airflow.providers.microsoft.azure.fs.adls",
"airflow.providers.microsoft.azure.fs.msgraphfs",
],should be "filesystems": [
"airflow.providers.microsoft.azure.fs.adls",
"airflow.providers.microsoft.azure.fs.msgraph",
],This discuss should be converted to a bug ticket and if it is ok, i will submit a patch. |
Beta Was this translation helpful? Give feedback.
-
|
Sadly, I don't think my PR #58568 is enough to make this functional. When I use the patch locally, it can find the filesystem but I get errors during the initialization.
At this point, I am a bit stuck. I might just have to use the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I am attempting to ingest files from Sharepoint using the Microsoft Graph Filesystem included in apache-airflow-providers-microsoft-azure in accordance with this guide.
My DAG fails to import with this error:
Traceback (most recent call last): File "/home/user/run_airflow/.venv/lib64/python3.12/site-packages/airflow/sdk/io/store.py", line 63, in fs return get_fs(self.protocol, self.conn_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/run_airflow/.venv/lib64/python3.12/site-packages/airflow/sdk/io/fs.py", line 89, in get_fs raise ValueError(f"No filesystem registered for scheme {scheme}") from None ValueError: No filesystem registered for scheme sharepointI am unsure if this indicates my installation/configuration is incorrect or if this is a bug.
Airflow and Microsoft provider installed from PyPi/uv. Python version 3.12.
Beta Was this translation helpful? Give feedback.
All reactions