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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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