Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Team,
I am new to Fabric and Kusto Database. I was trying to read, and upadate the data from KQL database using Python Kusto libarary. I was referring the below documentations from fabric. I am getting error while installing the packages as well as while importing the packages as show below. Please help to resolve the issue. thank you in advance.
Query data using the Azure Data Explorer Python library - Azure Data Explorer | Microsoft Learn
command in notebook.
Solved! Go to Solution.
Hi @sartaj123,
Thanks for reaching MS Fabric comminty support.
Can you please try below debugging steps and let me know if this helps?
1. Install azure-kusto-data in a Fabric Notebook, Since Microsoft Fabric Notebooks run in a managed environment, you need to install packages using:
!pip install --upgrade azure-kusto-data
If dependencies conflict, force reinstall:
!pip install --upgrade --force-reinstall azure-kusto-data
2. as dubugging suggests restart the Kernel, After installing, restart the notebook kernel. In Fabric: Click on "Kernel" → "Restart Kernel".
import importlib.util
package_name = "azure.kusto.data"
if importlib.util.find_spec(package_name) is None:
print(f"Package {package_name} is not installed.")
else:
print(f"Package {package_name} is installed correctly.")
If it's still missing, try installing dependencies manually and restart the kernel again.
!pip install --upgrade azure-identity requests
Once installed, use:
from azure.kusto.data import KustoClient, KustoConnectionStringBuilder
from azure.kusto.data.exceptions import KustoServiceError
from azure.kusto.data.helpers import dataframe_from_result_table
import pandas as pd
print("Kusto packages imported successfully!")
4. If you still get ModuleNotFoundError, check: Fabric Notebook Python Version
!python --version
Fabric runs Python 3.9+, so ensure compatibility. Check Installed Package
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
@sartaj123 As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
@sartaj123, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
@sartaj123, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Hi @sartaj123,
Thanks for reaching MS Fabric comminty support.
Can you please try below debugging steps and let me know if this helps?
1. Install azure-kusto-data in a Fabric Notebook, Since Microsoft Fabric Notebooks run in a managed environment, you need to install packages using:
!pip install --upgrade azure-kusto-data
If dependencies conflict, force reinstall:
!pip install --upgrade --force-reinstall azure-kusto-data
2. as dubugging suggests restart the Kernel, After installing, restart the notebook kernel. In Fabric: Click on "Kernel" → "Restart Kernel".
import importlib.util
package_name = "azure.kusto.data"
if importlib.util.find_spec(package_name) is None:
print(f"Package {package_name} is not installed.")
else:
print(f"Package {package_name} is installed correctly.")
If it's still missing, try installing dependencies manually and restart the kernel again.
!pip install --upgrade azure-identity requests
Once installed, use:
from azure.kusto.data import KustoClient, KustoConnectionStringBuilder
from azure.kusto.data.exceptions import KustoServiceError
from azure.kusto.data.helpers import dataframe_from_result_table
import pandas as pd
print("Kusto packages imported successfully!")
4. If you still get ModuleNotFoundError, check: Fabric Notebook Python Version
!python --version
Fabric runs Python 3.9+, so ensure compatibility. Check Installed Package
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Fabric update to learn about new features.
User | Count |
---|---|
16 | |
4 | |
4 | |
3 | |
2 |