<?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 Toolbox Python script problem : arcgisscripting.ExecuteError in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/toolbox-python-script-problem-arcgisscripting/m-p/1332016#M73395</link>
    <description>&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;I've started to code a new toolbox with python scripts. All tools are from arcpy : it's just a sequence of arcgis functions.&lt;/P&gt;&lt;P&gt;For instance, first step, I want to create a slope raster. So I call the function SurfaceParameters.&lt;/P&gt;&lt;P&gt;I've imported the function like that :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;from arcpy.ra import SurfaceParameters as SurfaceParameters_ra&lt;/P&gt;&lt;P&gt;If I do it as described (from .ra import SurfaceParameters as SurfaceParameters_ra), I get this error message : "ImportError: attempted relative import with no known parent package". But I think I've found a solution (but not sure ?), by importing as above.&lt;/P&gt;&lt;P&gt;Then, I simply create a slope raster by using SurfaceParameters, and I copy this raster in a new raster layer :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChloPauletteVALENTI_0-1695653616461.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81544i7A9913B38A05AFD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChloPauletteVALENTI_0-1695653616461.png" alt="ChloPauletteVALENTI_0-1695653616461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, I get this error :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChloPauletteVALENTI_1-1695653775559.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81546i5B89E8D7B012BAE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChloPauletteVALENTI_1-1695653775559.png" alt="ChloPauletteVALENTI_1-1695653775559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I try to understand where is the error, but I'm tying myself into knots right now!&lt;/P&gt;&lt;P&gt;I hope someone could help me, and I am really sorry if my request is quite idiot...&lt;/P&gt;&lt;P&gt;Sorry for my english too.&lt;/P&gt;&lt;P&gt;Best regards from France.&lt;/P&gt;&lt;P&gt;Chloe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 15:11:52 GMT</pubDate>
    <dc:creator>ChloéV</dc:creator>
    <dc:date>2023-09-25T15:11:52Z</dc:date>
    <item>
      <title>Toolbox Python script problem : arcgisscripting.ExecuteError</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/toolbox-python-script-problem-arcgisscripting/m-p/1332016#M73395</link>
      <description>&lt;P&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;I've started to code a new toolbox with python scripts. All tools are from arcpy : it's just a sequence of arcgis functions.&lt;/P&gt;&lt;P&gt;For instance, first step, I want to create a slope raster. So I call the function SurfaceParameters.&lt;/P&gt;&lt;P&gt;I've imported the function like that :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;from arcpy.ra import SurfaceParameters as SurfaceParameters_ra&lt;/P&gt;&lt;P&gt;If I do it as described (from .ra import SurfaceParameters as SurfaceParameters_ra), I get this error message : "ImportError: attempted relative import with no known parent package". But I think I've found a solution (but not sure ?), by importing as above.&lt;/P&gt;&lt;P&gt;Then, I simply create a slope raster by using SurfaceParameters, and I copy this raster in a new raster layer :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChloPauletteVALENTI_0-1695653616461.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81544i7A9913B38A05AFD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChloPauletteVALENTI_0-1695653616461.png" alt="ChloPauletteVALENTI_0-1695653616461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, I get this error :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChloPauletteVALENTI_1-1695653775559.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81546i5B89E8D7B012BAE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChloPauletteVALENTI_1-1695653775559.png" alt="ChloPauletteVALENTI_1-1695653775559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I try to understand where is the error, but I'm tying myself into knots right now!&lt;/P&gt;&lt;P&gt;I hope someone could help me, and I am really sorry if my request is quite idiot...&lt;/P&gt;&lt;P&gt;Sorry for my english too.&lt;/P&gt;&lt;P&gt;Best regards from France.&lt;/P&gt;&lt;P&gt;Chloe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/toolbox-python-script-problem-arcgisscripting/m-p/1332016#M73395</guid>
      <dc:creator>ChloéV</dc:creator>
      <dc:date>2023-09-25T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbox Python script problem : arcgisscripting.ExecuteError</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/toolbox-python-script-problem-arcgisscripting/m-p/1332078#M73405</link>
      <description>&lt;P&gt;If you are working locally why not use&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/surface-parameters.htm" target="_blank"&gt;Surface Parameters (Spatial Analyst)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;because the one you are using from ra is against portal and expects...&lt;/P&gt;&lt;P&gt;outputRasterName (String):&lt;BR /&gt;The name of the output raster service.&lt;/P&gt;&lt;P&gt;whereas you just provided a name&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 17:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/toolbox-python-script-problem-arcgisscripting/m-p/1332078#M73405</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-09-25T17:51:08Z</dc:date>
    </item>
  </channel>
</rss>

