Forum Discussion

David_FGL's avatar
David_FGL
New Member
1 year ago
Solved

Erro em script em python no Power Bi Online

Estou programando um script em Python para criar um visual no Power BI. Nesse script, estou utilizando uma API da IA Gemini, e usando minha uma chave de acesso. O código está funcionando no Power Bi ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi David_FGL,
    Thanks for reaching out to the Microsoft fabric community forum.

     

    It looks like the problem which you are facing is coming maybe because of python visuals in PowerBi service runs on a cloud environment and not on your local system which has all the required libraries and APIs in the local environment. There may be some restrictions on the cloud environment that causes the issue with your scripts.
    If this is the case then you can try to use PowerBi parameters to store your API key as its a security risk and won't work in the PowerBi service. Make sure that the workspace you are using might have the required permissions or settings enabled for Python visuals. Also as mentioned earlier by lbendlin, ensure that the libraries and dependencies which you are using are supported by PowerBi Service.

     

    If you have any other questions please feel free to contact me.

     

    Best Regards,
    Hammad.
    Community Support Team

     

    If this post helps then please mark it as a solution, so that other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. 

    Thank you.