Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sarnendude
Frequent Visitor

Prebuilt Azure AI services in Fabric: ModuleNotFoundError & NULL output

Hello,

When I was importing SynapseML libraries as mentioned in blog https://blog.fabric.microsoft.com/en-us/blog/prebuilt-azure-ai-services-in-fabric-2?ft=All, I got below error

ModuleNotFoundError: No module named 'synapse.ml.services'.

 

Same error found when we tried to import  SynapseML library for Azure OpenAI as Prerequisites as per this post Use Azure OpenAI with Python SDK - Microsoft Fabric | Microsoft Learn.

Please help me to resolve above error.

 

As per this blog message "Fabric has the latest SynapseML package preinstalled and integrated with prebuilt AI models", So I assumed we do not need to install anything to resolve above error.

 

After commeneting above line & running other code lines to import libraries , I ran below code to translate the review_text, it is alaways returing NULL value for translation column :

translate = (Translate()
    .setTextCol("reviews_text")
    .setToLanguage("en")
    .setOutputCol("translation")
    .setConcurrency(5))

df_en = translate.transform(df)\
        .withColumn("translation_result", flatten(col("translation.translations")))\
        .withColumn("translation", col("translation_result.text")[0])\
        .cache()

df_en = df_en.select(df_en.columns[:6]+ ["translation"])

display(df_en.tail(5))

Please let me know how to get proper translated result instead of NULL alaways.

 

Even when I ran the all code snippet to translate text as per this blog post:

https://learn.microsoft.com/en-us/fabric/data-science/ai-services/how-to-use-text-translator?tabs=sy...

It returns NULL as translation value.

Please help.

 

Thanks,

Sarnendu De

2 REPLIES 2
sarnendude
Frequent Visitor

Hi @v-nikhilan-msft , Thanks for your response; As advised, I raised support request with no 2312200030001295. Thanks, Sarnendu De

v-nikhilan-msft
Community Support
Community Support

Hi @sarnendude 

Thanks for using Fabric Community.

Apologies for the issue that you are facing.

This might require a deeper investigation from our engineering team about your workspace and the logic behind it to properly understand what might be happening. 

Please go ahead and raise a support ticket to reach our support team:

https://support.fabric.microsoft.com/support
Please provide the ticket number here as we can keep an eye on it.

Thanks.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!

Top Solution Authors
Top Kudoed Authors