<?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 Re: python script error in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/502655#M234635</link>
    <description>&lt;P&gt;I think the main issue is here in the error message...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TypeError: from_bounds() takes 4 positional arguments but 6 were given&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The line that Python was trying to execute was this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;self.bbox_inches = Bbox.from_bounds(0, 0, *figsize)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe get rid of the 0's?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are you trying to make a visual or uploading data using python script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you tested out the code in an IDE?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 16:52:07 GMT</pubDate>
    <dc:creator>ryim2009</dc:creator>
    <dc:date>2018-08-29T16:52:07Z</dc:date>
    <item>
      <title>python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/502232#M234420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can´t run any Python code. Whatever I do it returns always the same error. I have just loaded an Excel sheet with 4 rows and 2 columns of fake data (just years and revenue) and it doesn´t work. I have checked the python home directory path and it´s&amp;nbsp;looks ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error:&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;Timestamp:&lt;BR /&gt;2018-08-29T09:12:41.2061639Z&lt;/P&gt;&lt;P&gt;Local Time:&lt;BR /&gt;2018-08-29T11:12:41.2061639+02:00&lt;/P&gt;&lt;P&gt;Session ID:&lt;BR /&gt;cc309951-aabe-413f-82df-64a896661474&lt;/P&gt;&lt;P&gt;Release:&lt;BR /&gt;August, 2018&lt;/P&gt;&lt;P&gt;Product Version:&lt;BR /&gt;2.61.5192.601 (18.08) (x64)&lt;/P&gt;&lt;P&gt;Error Message:&lt;BR /&gt;Python script error.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "PythonScriptWrapper.PY", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;matplotlib.pyplot.figure(figsize=(3,75,3,52777777777778))&lt;BR /&gt;File "C:\Users\rvanderburg@u.es\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 535, in figure&lt;BR /&gt;**kwargs)&lt;BR /&gt;File "C:\Users\rvanderburg@u.es\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 45, in new_figure_manager&lt;BR /&gt;thisFig = FigureClass(*args, **kwargs)&lt;BR /&gt;File "C:\Users\rvanderburg@u.es\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\figure.py", line 328, in __init__&lt;BR /&gt;self.bbox_inches = Bbox.from_bounds(0, 0, *figsize)&lt;BR /&gt;TypeError: from_bounds() takes 4 positional arguments but 6 were given&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OS Version:&lt;BR /&gt;Microsoft Windows NT 6.1.7601 Service Pack 1 (x64 es-ES)&lt;/P&gt;&lt;P&gt;CLR Version:&lt;BR /&gt;4.6.1 or later [Release Number = 394271]&lt;/P&gt;&lt;P&gt;Peak Virtual Memory:&lt;BR /&gt;4.24 GB&lt;/P&gt;&lt;P&gt;Private Memory:&lt;BR /&gt;424 MB&lt;/P&gt;&lt;P&gt;Peak Working Set:&lt;BR /&gt;553 MB&lt;/P&gt;&lt;P&gt;IE Version:&lt;BR /&gt;11.0.9600.18816&lt;/P&gt;&lt;P&gt;User ID:&lt;BR /&gt;1f0ab8de-e5bb-46e1-b314-e7a260ff9ab1&lt;/P&gt;&lt;P&gt;Workbook Package Info:&lt;BR /&gt;1* - es-ES, 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;Snapshot Trace Logs:&lt;BR /&gt;C:\Users\rvanderburg@u.es\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot1313376215.zip&lt;/P&gt;&lt;P&gt;Performance Trace Logs:&lt;BR /&gt;C:\Users\rvanderburg@u.es\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip&lt;/P&gt;&lt;P&gt;Enabled Preview Features:&lt;BR /&gt;PBI_canvasTooltips&lt;BR /&gt;PBI_PythonSupportEnabled&lt;/P&gt;&lt;P&gt;Disabled Preview Features:&lt;BR /&gt;PBI_shapeMapVisualEnabled&lt;BR /&gt;PBI_newFromWeb&lt;BR /&gt;PBI_SpanishLinguisticsEnabled&lt;BR /&gt;CustomConnectors&lt;BR /&gt;PBI_variationUIChange&lt;BR /&gt;PBI_showIncrementalRefreshPolicy&lt;BR /&gt;PBI_compositeModels&lt;BR /&gt;PBI_DB2DQ&lt;/P&gt;&lt;P&gt;Enabled DirectQuery Options:&lt;BR /&gt;PBI_DirectQuery_Unrestricted&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;&lt;P&gt;Formulas:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;section Section1;&lt;/P&gt;&lt;P&gt;shared Hoja1 = let&lt;BR /&gt;Source = Excel.Workbook(File.Contents("\\Filer-1\users\rvanderburg\test_Python_power_BI.xlsx"), null, true),&lt;BR /&gt;Hoja1_Sheet = Source{[Item="Hoja1",Kind="Sheet"]}[Data],&lt;BR /&gt;#"Promoted Headers" = Table.PromoteHeaders(Hoja1_Sheet, [PromoteAllScalars=true]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Year", type text}, {"Revenue", Int64.Type}})&lt;BR /&gt;in&lt;BR /&gt;#"Changed Type";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT 31/08/2018:&lt;/P&gt;&lt;P&gt;Found already posted issue here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Issues/Bug-in-python-visual/idi-p/487259/page/2#comments" target="_blank"&gt;https://community.powerbi.com/t5/Issues/Bug-in-python-visual/idi-p/487259/page/2#comments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:29:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/502232#M234420</guid>
      <dc:creator>vdburg</dc:creator>
      <dc:date>2018-08-31T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/502655#M234635</link>
      <description>&lt;P&gt;I think the main issue is here in the error message...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TypeError: from_bounds() takes 4 positional arguments but 6 were given&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The line that Python was trying to execute was this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;self.bbox_inches = Bbox.from_bounds(0, 0, *figsize)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe get rid of the 0's?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are you trying to make a visual or uploading data using python script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you tested out the code in an IDE?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/502655#M234635</guid>
      <dc:creator>ryim2009</dc:creator>
      <dc:date>2018-08-29T16:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/503052#M234821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just loaded a simple excel file with a small table to discard any problem coming from the data. It´s just this table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;100000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;200000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;300000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2013&lt;/TD&gt;&lt;TD&gt;400000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2014&lt;/TD&gt;&lt;TD&gt;500000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a visual. I am just running this code:&lt;/P&gt;&lt;P&gt;import matplotlib.pyplot as plt&lt;BR /&gt;plt.bar(dataset.Year, dataset.Revenue)&lt;/P&gt;&lt;P&gt;And this works in any other IDE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or just running dataset to see the table. Or any other simple code it always returns the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 06:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/503052#M234821</guid>
      <dc:creator>vdburg</dc:creator>
      <dc:date>2018-08-30T06:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/506232#M236385</link>
      <description>&lt;P&gt;It seems that Power BI is inserting comma into figsize matplot function. (see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;matplotlib.pyplot.figure(figsize=(3&lt;STRONG&gt;,&lt;/STRONG&gt;75,3&lt;STRONG&gt;,&lt;/STRONG&gt;52777777777778))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rgds&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 18:41:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/506232#M236385</guid>
      <dc:creator>rdauanny</dc:creator>
      <dc:date>2018-09-03T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/518754#M242566</link>
      <description>&lt;P&gt;Power BI team fixed the problem&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/518754#M242566</guid>
      <dc:creator>vdburg</dc:creator>
      <dc:date>2018-09-18T12:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/519940#M243159</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="46327" data-lia-user-login="vdburg" class="lia-mention lia-mention-user"&gt;vdburg&lt;/a&gt; what did they actually fix? I have just started playing around with Python in PowerBI and I am getting the same error messages. How does one fix this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/519940#M243159</guid>
      <dc:creator>Mardin</dc:creator>
      <dc:date>2018-09-19T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/519979#M243179</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="10226" data-lia-user-login="Mardin" class="lia-mention lia-mention-user"&gt;Mardin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Have you updated to the last Power Bi desktop?&lt;/P&gt;&lt;P&gt;This is a screenshot of how I see it with some simple made up data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can test if you load a table like the one I have here and use the same code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import matplotlib.pyplot as plt&lt;BR /&gt;plt.bar(dataset.Year, dataset.Revenue)&lt;BR /&gt;plt.show()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:59:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/519979#M243179</guid>
      <dc:creator>vdburg</dc:creator>
      <dc:date>2018-09-20T07:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: python script error</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/523610#M245000</link>
      <description>&lt;P&gt;I see.. We are still running August unfortunately since we have an external service prodivder pushing the Power BI updates on the company PCs. They only check for the update once a month and since September release came later than usual we will only get the update through the next roll out in October.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:53:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/python-script-error/m-p/523610#M245000</guid>
      <dc:creator>Mardin</dc:creator>
      <dc:date>2018-09-24T06:53:38Z</dc:date>
    </item>
  </channel>
</rss>

