<?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 Exporting chart in arcopy Errno 13 permissions error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251210#M66648</link>
    <description>&lt;P&gt;Hi I'm using ArcPro 3.0. and using arcpy to export a chart following on from a script used to produce scores at the start of the script I have set the environment. However, when I try to export chart to SVG I get a Permissions error that I can't find any guidance on. Any help much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;c = arcpy.Chart('bar_final_scores')
c.type = 'bar'
c.title = "Final HBRA Scores for AU"
c.xAxis.field = 'Criteria'
c.xAxis.title= "Criteria"
c.yAxis.field = 'Score'
c.yAxis.title = "Score"
c.bar.aggregation = ''
c.dataSource = 'AUFinal'
c.exportToSVG('bar_final_scores.svg')


Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 12, in &amp;lt;module&amp;gt;
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\charts.py", line 448, in exportToSVG
    with _codecs.open(path, "w", "utf-8") as f_svg:
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\codecs.py", line 905, in open
    file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: 'bar_final_scores.svg'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chelsea&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 11:57:38 GMT</pubDate>
    <dc:creator>ChelseaVSmith</dc:creator>
    <dc:date>2023-01-25T11:57:38Z</dc:date>
    <item>
      <title>Exporting chart in arcopy Errno 13 permissions error</title>
      <link>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251210#M66648</link>
      <description>&lt;P&gt;Hi I'm using ArcPro 3.0. and using arcpy to export a chart following on from a script used to produce scores at the start of the script I have set the environment. However, when I try to export chart to SVG I get a Permissions error that I can't find any guidance on. Any help much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;c = arcpy.Chart('bar_final_scores')
c.type = 'bar'
c.title = "Final HBRA Scores for AU"
c.xAxis.field = 'Criteria'
c.xAxis.title= "Criteria"
c.yAxis.field = 'Score'
c.yAxis.title = "Score"
c.bar.aggregation = ''
c.dataSource = 'AUFinal'
c.exportToSVG('bar_final_scores.svg')


Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 12, in &amp;lt;module&amp;gt;
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\charts.py", line 448, in exportToSVG
    with _codecs.open(path, "w", "utf-8") as f_svg:
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\codecs.py", line 905, in open
    file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: 'bar_final_scores.svg'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chelsea&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 11:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251210#M66648</guid>
      <dc:creator>ChelseaVSmith</dc:creator>
      <dc:date>2023-01-25T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting chart in arcopy Errno 13 permissions error</title>
      <link>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251294#M66660</link>
      <description>&lt;P&gt;try providing a full path to the output svg&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251294#M66660</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-25T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting chart in arcopy Errno 13 permissions error</title>
      <link>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251911#M66679</link>
      <description>&lt;P&gt;Thank you that worked!&lt;/P&gt;&lt;P&gt;Do you know how I can export a chart to png instead of svg file?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 16:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1251911#M66679</guid>
      <dc:creator>ChelseaVSmith</dc:creator>
      <dc:date>2023-01-26T16:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting chart in arcopy Errno 13 permissions error</title>
      <link>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1252528#M66695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/450913"&gt;@ChelseaVSmith&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately, it's currently only possible to export a chart in SVG format from Python (though you can also export in PNG or JPG formats from the UI). We hope to add Python support for PNG and JPG in the near term.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-chart-in-arcopy-errno-13-permissions/m-p/1252528#M66695</guid>
      <dc:creator>ChristopherAllen</dc:creator>
      <dc:date>2023-01-27T21:23:19Z</dc:date>
    </item>
  </channel>
</rss>

