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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
kolturra
Helper IV
Helper IV

Now able to run python script

Hi,

 

This is the below error when i am runn

 

 

Feedback Type:
Frown (Error)

Timestamp:
2019-01-28T15:39:30.7237953Z

Local Time:
2019-01-28T21:09:30.7237953+05:30

Session ID:
843e0096-2b30-479c-90e6-330e0f834422

Release:
December 2018

Product Version:
2.65.5313.1381 (18.12) (x64)

Error Message:
Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, matplotlib.pyplot, uuid, pandas
ModuleNotFoundError: No module named 'matplotlib'


OS Version:
Microsoft Windows NT 10.0.17134.0 (x64 en-US)

CLR Version:
4.7 or later [Release Number = 461808]

Peak Virtual Memory:
38.3 GB

Private Memory:
471 MB

Peak Working Set:
665 MB

IE Version:
11.523.17134.0

User ID:
6c616795-763c-4675-97fb-96f45e9478ed

Workbook Package Info:
1* - en-US, Query Groups: 0, fastCombine: Enabled, runBackgroundAnalysis: True.

Telemetry Enabled:
True

Model Default Mode:
Import

Snapshot Trace Logs:
C:\Users\koltu\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot1085200598.zip

Performance Trace Logs:
C:\Users\koltu\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_variationUIChange
PBI_PythonSupportEnabled
PBI_showIncrementalRefreshPolicy

Disabled Preview Features:
MIntellisense
PBI_PdfImport
PBI_ColumnProfiling
PBI_showManageAggregations
PBI_FuzzyMatching
PBI_EnableWebDiagramView
PBI_improvedFilterExperience
PBI_qnaLiveConnect

Disabled DirectQuery Options:
PBI_DirectQuery_Unrestricted
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

DPI Scale:
125%

Supported Services:
Power BI

Formulas:


section Section1;

shared Sheet1 = let
Source = Excel.Workbook(File.Contents("C:\Users\koltu\OneDrive\Desktop\Lokesh.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Month", type date}, {"Peract", type number}, {"Target", type number}})
in
#"Changed Type";

shared COnver = let
Source = Excel.Workbook(File.Contents("C:\Users\koltu\OneDrive\Desktop\Lokesh.xlsx"), null, true),
COnver_Sheet = Source{[Item="COnver",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(COnver_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Business", Percentage.Type}})
in
#"Changed Type";

 

 

PyPB.PNG

 

Please help me.

 

Thanks,

K Raghavender Rao

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @kolturra

1. When you add the Python visual in the report, which Python script do you run? Please share the script. 

2. Please run the Python script used in Power BI desktop on Power BI side to see if the same issue occurs. 

3. In Power BI desktop, ensure the directory for Python has been set correctly: 

10.JPG

 

If you still have the issue, You'd better post an issue case in Power BI Issue or create a support ticket in Power BI Support to get further help.

 

Best Regards,

Lin

 

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @kolturra

1. When you add the Python visual in the report, which Python script do you run? Please share the script. 

2. Please run the Python script used in Power BI desktop on Power BI side to see if the same issue occurs. 

3. In Power BI desktop, ensure the directory for Python has been set correctly: 

10.JPG

 

If you still have the issue, You'd better post an issue case in Power BI Issue or create a support ticket in Power BI Support to get further help.

 

Best Regards,

Lin

 

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.