Share via

Excel python anaconda - why is Microsoft's powerbiclient package not included

Anonymous
2024-11-21T08:18:02+00:00

Trying the Excel Addin "Anaconda Code" for python.
https://support.microsoft.com/en-au/office/open-source-libraries-and-python-in-excel-c817c897-41db-40a1-b9f3-d5ffe6d1bf3e

The Addin installed OK. But the first code I wanted to try uses Microsoft's powerbiclient library (e.g. to connect to a Power BI Report and retrieve data).

But the first lines of python code needed:

from powerbiclient.authentication import DeviceCodeLoginAuthentication

... throw errors indicating this scenario is not supported?

Can the left hand please talk to the right hand and sort this out.

---------------------------------
Traceback (most recent call last):

  File "Sheet5!A1", line 1, in <module>

    from powerbiclient.authentication import DeviceCodeLoginAuthentication

ModuleNotFoundError: No module named 'powerbiclient'
Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-21T21:12:39+00:00

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-11-21T13:19:58+00:00

    I'd suggest you create a new thread on Office Development which is special channel to handle such issue.

    Office Development - Microsoft Q&A 

    Thank you for your understanding!

    Was this answer helpful?

    0 comments No comments