<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python integration not working. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Python-integration-not-working/m-p/3326018#M53700</link>
    <description>&lt;P&gt;I'm new to Power BI and recently installed Python 3.11 (IDLE).&lt;/P&gt;&lt;P&gt;I enabled python scripting in Power BI and can load a dataframe. However when I run a script to&amp;nbsp; create a plot it does not work and I get the error message below.&amp;nbsp; I have reinstalled matplotlib and kiwisolver using --no-cache-dir I hope someone can point me in the right direction to resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feedback Type:&lt;BR /&gt;Frown (Error)&lt;/P&gt;&lt;P&gt;Stack Trace:&lt;BR /&gt;Javascript&amp;amp;colon; Error&lt;BR /&gt;Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: Python script error.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\xxxx\PythonScriptWrapper_b5493b6f-63a2-418f-829e-d4261ebd04ba\PythonScriptWrapper.PY", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;import os, uuid, matplotlib&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 242, in &amp;lt;module&amp;gt;&lt;BR /&gt;_check_versions()&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 236, in _check_versions&lt;BR /&gt;module = importlib.import_module(modname)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\PROGRAM FILES\PYTHON311\Lib\importlib\__init__.py", line 126, in import_module&lt;BR /&gt;return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\kiwisolver\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._cext import (&lt;BR /&gt;ImportError: DLL load failed while importing _cext: The specified module could not be found.&lt;BR /&gt;---&amp;gt; Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException: Python script error.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\xxxx\PythonScriptWrapper_b5493b6f-63a2-418f-829e-d4261ebd04ba\PythonScriptWrapper.PY", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;import os, uuid, matplotlib&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 242, in &amp;lt;module&amp;gt;&lt;BR /&gt;_check_versions()&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 236, in _check_versions&lt;BR /&gt;module = importlib.import_module(modname)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\PROGRAM FILES\PYTHON311\Lib\importlib\__init__.py", line 126, in import_module&lt;BR /&gt;return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\kiwisolver\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._cext import (&lt;BR /&gt;ImportError: DLL load failed while importing _cext: The specified module could not be found.&lt;/P&gt;&lt;P&gt;at Microsoft.PowerBI.Scripting.Python.PythonScriptWrapper.RunScript(String originalScript, Int32 timeoutMs)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Python.PythonScriptHandler.GenerateVisual(ScriptHandlerOptions options)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Python.PythonScriptHandler.GenerateVisual(ScriptHandlerOptions options)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ScriptVisualCommandFlow.RunInternal(Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ScriptVisualCommandFlow.Run(Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDataShapeResult(QueryCommand transformCommand, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ExecuteDataQuery(IQueryResultDataWriter queryResultDataWriter, EngineDataModel engineDataModel, DataQuery query, Int32 queryId, ServiceErrorStatusCode&amp;amp; serviceErrorStatusCode, CancellationToken cancelToken)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, IList`1 queries, HashSet`1 pendingQueriesToCancel, EngineDataModel engineDataModel)&lt;/P&gt;&lt;P&gt;PowerBINonFatalError:&lt;BR /&gt;{"AppName":"PBIDesktop","AppVersion":"2.118.1063.0","ModuleName":"","Component":"","Error":"Error","MethodDef":"","ErrorOffset":"-1:-1","ErrorCode":""}&lt;/P&gt;&lt;P&gt;OS Version:&lt;BR /&gt;Microsoft Windows NT 10.0.19045.0 (x64 en-GB)&lt;/P&gt;&lt;P&gt;CLR Version:&lt;BR /&gt;4.8 or later [Release Number = 528372]&lt;/P&gt;&lt;P&gt;Peak Virtual Memory:&lt;BR /&gt;70.7 GB&lt;/P&gt;&lt;P&gt;Private Memory:&lt;BR /&gt;737 MB&lt;/P&gt;&lt;P&gt;Peak Working Set:&lt;BR /&gt;977 MB&lt;/P&gt;&lt;P&gt;IE Version:&lt;BR /&gt;11.789.19041.0&lt;/P&gt;&lt;P&gt;User ID:&lt;BR /&gt;xxx&lt;/P&gt;&lt;P&gt;Workbook Package Info:&lt;BR /&gt;1* - en-US, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.&lt;/P&gt;&lt;P&gt;Telemetry Enabled:&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;Model Default Mode:&lt;BR /&gt;Import&lt;/P&gt;&lt;P&gt;Model Version:&lt;BR /&gt;PowerBI_V3&lt;/P&gt;&lt;P&gt;Enabled Preview Features:&lt;BR /&gt;PBI_sparklines&lt;BR /&gt;PBI_scorecardVisual&lt;BR /&gt;PBI_NlToDax&lt;BR /&gt;PBI_fieldParametersSuperSwitch&lt;BR /&gt;PBI_horizontalFusion&lt;BR /&gt;PBI_setLabelOnExportPdf&lt;BR /&gt;PBI_newCard&lt;/P&gt;&lt;P&gt;Disabled Preview Features:&lt;BR /&gt;PBI_shapeMapVisualEnabled&lt;BR /&gt;PBI_SpanishLinguisticsEnabled&lt;BR /&gt;PBI_qnaLiveConnect&lt;BR /&gt;PBI_b2bExternalDatasetSharing&lt;BR /&gt;PBI_enhancedTooltips&lt;BR /&gt;PBI_angularRls&lt;BR /&gt;PBI_onObject&lt;BR /&gt;PBI_dynamicFormatString&lt;BR /&gt;PBI_oneDriveSave&lt;BR /&gt;PBI_oneDriveShare&lt;BR /&gt;PBI_gitIntegration&lt;/P&gt;&lt;P&gt;Disabled DirectQuery Options:&lt;BR /&gt;TreatHanaAsRelationalSource&lt;/P&gt;&lt;P&gt;Cloud:&lt;BR /&gt;GlobalCloud&lt;/P&gt;&lt;P&gt;DPI Scale:&lt;BR /&gt;100%&lt;/P&gt;&lt;P&gt;Supported Services:&lt;BR /&gt;Power BI&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 20:56:10 GMT</pubDate>
    <dc:creator>Nick_Bo</dc:creator>
    <dc:date>2023-07-11T20:56:10Z</dc:date>
    <item>
      <title>Python integration not working.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Python-integration-not-working/m-p/3326018#M53700</link>
      <description>&lt;P&gt;I'm new to Power BI and recently installed Python 3.11 (IDLE).&lt;/P&gt;&lt;P&gt;I enabled python scripting in Power BI and can load a dataframe. However when I run a script to&amp;nbsp; create a plot it does not work and I get the error message below.&amp;nbsp; I have reinstalled matplotlib and kiwisolver using --no-cache-dir I hope someone can point me in the right direction to resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feedback Type:&lt;BR /&gt;Frown (Error)&lt;/P&gt;&lt;P&gt;Stack Trace:&lt;BR /&gt;Javascript&amp;amp;colon; Error&lt;BR /&gt;Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: Python script error.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\xxxx\PythonScriptWrapper_b5493b6f-63a2-418f-829e-d4261ebd04ba\PythonScriptWrapper.PY", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;import os, uuid, matplotlib&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 242, in &amp;lt;module&amp;gt;&lt;BR /&gt;_check_versions()&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 236, in _check_versions&lt;BR /&gt;module = importlib.import_module(modname)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\PROGRAM FILES\PYTHON311\Lib\importlib\__init__.py", line 126, in import_module&lt;BR /&gt;return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\kiwisolver\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._cext import (&lt;BR /&gt;ImportError: DLL load failed while importing _cext: The specified module could not be found.&lt;BR /&gt;---&amp;gt; Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException: Python script error.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\xxxx\PythonScriptWrapper_b5493b6f-63a2-418f-829e-d4261ebd04ba\PythonScriptWrapper.PY", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;import os, uuid, matplotlib&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 242, in &amp;lt;module&amp;gt;&lt;BR /&gt;_check_versions()&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\matplotlib\__init__.py", line 236, in _check_versions&lt;BR /&gt;module = importlib.import_module(modname)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\PROGRAM FILES\PYTHON311\Lib\importlib\__init__.py", line 126, in import_module&lt;BR /&gt;return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xxxx\AppData\Roaming\Python\Python311\site-packages\kiwisolver\__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._cext import (&lt;BR /&gt;ImportError: DLL load failed while importing _cext: The specified module could not be found.&lt;/P&gt;&lt;P&gt;at Microsoft.PowerBI.Scripting.Python.PythonScriptWrapper.RunScript(String originalScript, Int32 timeoutMs)&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Python.PythonScriptHandler.GenerateVisual(ScriptHandlerOptions options)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at Microsoft.PowerBI.Client.Windows.Python.PythonScriptHandler.GenerateVisual(ScriptHandlerOptions options)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ScriptVisualCommandFlow.RunInternal(Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ScriptVisualCommandFlow.Run(Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDataShapeResult(QueryCommand transformCommand, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor&amp;amp; bindingDescriptor)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ExecuteDataQuery(IQueryResultDataWriter queryResultDataWriter, EngineDataModel engineDataModel, DataQuery query, Int32 queryId, ServiceErrorStatusCode&amp;amp; serviceErrorStatusCode, CancellationToken cancelToken)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, IList`1 queries, HashSet`1 pendingQueriesToCancel, EngineDataModel engineDataModel)&lt;/P&gt;&lt;P&gt;PowerBINonFatalError:&lt;BR /&gt;{"AppName":"PBIDesktop","AppVersion":"2.118.1063.0","ModuleName":"","Component":"","Error":"Error","MethodDef":"","ErrorOffset":"-1:-1","ErrorCode":""}&lt;/P&gt;&lt;P&gt;OS Version:&lt;BR /&gt;Microsoft Windows NT 10.0.19045.0 (x64 en-GB)&lt;/P&gt;&lt;P&gt;CLR Version:&lt;BR /&gt;4.8 or later [Release Number = 528372]&lt;/P&gt;&lt;P&gt;Peak Virtual Memory:&lt;BR /&gt;70.7 GB&lt;/P&gt;&lt;P&gt;Private Memory:&lt;BR /&gt;737 MB&lt;/P&gt;&lt;P&gt;Peak Working Set:&lt;BR /&gt;977 MB&lt;/P&gt;&lt;P&gt;IE Version:&lt;BR /&gt;11.789.19041.0&lt;/P&gt;&lt;P&gt;User ID:&lt;BR /&gt;xxx&lt;/P&gt;&lt;P&gt;Workbook Package Info:&lt;BR /&gt;1* - en-US, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.&lt;/P&gt;&lt;P&gt;Telemetry Enabled:&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;Model Default Mode:&lt;BR /&gt;Import&lt;/P&gt;&lt;P&gt;Model Version:&lt;BR /&gt;PowerBI_V3&lt;/P&gt;&lt;P&gt;Enabled Preview Features:&lt;BR /&gt;PBI_sparklines&lt;BR /&gt;PBI_scorecardVisual&lt;BR /&gt;PBI_NlToDax&lt;BR /&gt;PBI_fieldParametersSuperSwitch&lt;BR /&gt;PBI_horizontalFusion&lt;BR /&gt;PBI_setLabelOnExportPdf&lt;BR /&gt;PBI_newCard&lt;/P&gt;&lt;P&gt;Disabled Preview Features:&lt;BR /&gt;PBI_shapeMapVisualEnabled&lt;BR /&gt;PBI_SpanishLinguisticsEnabled&lt;BR /&gt;PBI_qnaLiveConnect&lt;BR /&gt;PBI_b2bExternalDatasetSharing&lt;BR /&gt;PBI_enhancedTooltips&lt;BR /&gt;PBI_angularRls&lt;BR /&gt;PBI_onObject&lt;BR /&gt;PBI_dynamicFormatString&lt;BR /&gt;PBI_oneDriveSave&lt;BR /&gt;PBI_oneDriveShare&lt;BR /&gt;PBI_gitIntegration&lt;/P&gt;&lt;P&gt;Disabled DirectQuery Options:&lt;BR /&gt;TreatHanaAsRelationalSource&lt;/P&gt;&lt;P&gt;Cloud:&lt;BR /&gt;GlobalCloud&lt;/P&gt;&lt;P&gt;DPI Scale:&lt;BR /&gt;100%&lt;/P&gt;&lt;P&gt;Supported Services:&lt;BR /&gt;Power BI&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 20:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Python-integration-not-working/m-p/3326018#M53700</guid>
      <dc:creator>Nick_Bo</dc:creator>
      <dc:date>2023-07-11T20:56:10Z</dc:date>
    </item>
  </channel>
</rss>

