microsoft / powerbi-jupyter

A Custom Jupyter Widget Library for Power BI
MIT License
471 stars 151 forks source link

Failed to load model class 'ReportModel' from module 'powerbi-jupyter-client' #47

Closed Diegomon2609 closed 5 months ago

Diegomon2609 commented 9 months ago

The issue appears when I am going to render the report

image

KotanaSai21 commented 8 months ago

We were able to repro the issue. After some investigation, we found that this issue is not related to our package, rather the package manager Conda.

We followed the below steps and able to render the report.

  1. Updated the Anaconda and Jupyter Lab to the latest versions.

  2. Followed the steps but faced the same issue of the JavaScript error.

  3. Executed below commands in the Anaconda prompt shell.

    jupyter lab clean
    jupyter labextension install @jupyter-widgets/jupyterlab-manager
    pip install powerbiclient

    Make sure these extensions are added in jupyter lab.

    image
  4. After these steps, we were able to embed the report in the jupyter lab.

If the issue still exists, try the steps mentioned here.