<?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: PyScripter moving syntax error in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149843#M471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Arek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot, that solved it indeed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was focusing too much on the line where the error showed so thank you for pointing me to the previous line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 11:00:20 GMT</pubDate>
    <dc:creator>MarcEngelsma1</dc:creator>
    <dc:date>2013-01-14T11:00:20Z</dc:date>
    <item>
      <title>PyScripter moving syntax error</title>
      <link>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149841#M469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: M.Engelsma&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while building a script to run a custom model in PyScripter I'm running into a problem regarding syntax errors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At a certain moment a syntax error popped up (in this case in line 72 as visible in the picture below) in a line &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that is identical to some previous lines. The only difference is in the text that is to be displayed. Only the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy. part is marked as an error though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20685[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In itself this error is frustrating but the weird thing is that when I comment out this line the error jumps to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the next line of code. This continues to happen no matter how many lines I comment out. In the picture below the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error jumped to line 76.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20686[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem isn't just in PyScripter&amp;nbsp; since when I try to run the tool that uses this script it also gives a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;syntax error in the same line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGis 10.0 and PyScripter v2.5.3 for registry free installation. Unfortunately I can't test this on the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;registered version of PyScripter since that would require a lengthy discussion with our ICT department.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone encountered this before and is there a way to fix this or found a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below I copied part of the code that gives the syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.AddMessage ("Contour van de peiling maken")&amp;nbsp; PRas = r"S:\GEOINFO\05_Tekenkamer\Marc\Werkdatabase.gdb\xxxOutput_peiling_raster" PRas_Int = r"S:\GEOINFO\05_Tekenkamer\Marc\Werkdatabase.gdb\xxxOutput_peiling_raster_Int" OutPol = r"S:\GEOINFO\05_Tekenkamer\Marc\Werkdatabase.gdb\Peilingen_ed\xxxOutput_peiling_Polygon"&amp;nbsp; arcpy.AddMessage ("Punten omzetten naar tijdelijk rasterbestand") arcpy.PointToRaster_conversion (Output_Punten,"Z", PRas, "MEAN", "NONE", str(Resolution)&amp;nbsp; arcpy.AddMessage ("Punten omzetten naar tijdelijk rasterbestand") arcpy.gp.Int_sa(PRas, PRas_Int)&amp;nbsp; arcpy.AddMessage ("Rasterbestand omzetten naar polygon") arcpy.RasterToPolygon_conversion(PRas_Int, OutPol )&amp;nbsp; arcpy.AddMessage ("Polygon dissolven naar buitenste contour") arcpy.Dissolve_management (OutPol, Output_Contour)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 07:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149841#M469</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-14T07:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: PyScripter moving syntax error</title>
      <link>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149842#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: arekmatoszka&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is missing right parenthesis in line just above hilighted error, that's why commenting line moves error to next line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.PointToRaster_conversion (Output_Punten,"Z", PRas, "MEAN", "NONE", str(Resolution)&lt;STRONG&gt;)&lt;/STRONG&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149842#M470</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: PyScripter moving syntax error</title>
      <link>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149843#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Arek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot, that solved it indeed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was focusing too much on the line where the error showed so thank you for pointing me to the previous line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/pyscripter-moving-syntax-error/m-p/149843#M471</guid>
      <dc:creator>MarcEngelsma1</dc:creator>
      <dc:date>2013-01-14T11:00:20Z</dc:date>
    </item>
  </channel>
</rss>

