<?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 Unable to successfully save code in Validation tab in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67198#M5496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am unable to edit, save, and apply validation code to my custom Python script in ArcGIS Desktop 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please follow these instructions and see if you can get them to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) In ArcToolbox, right-click a custom Toolbox and go to Add &amp;gt; Script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Leave the default properties and click Next &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Either leave the Script File blank, or pick an existing script, or type the path of a script that doesn't exist, and click Next &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Click Finish&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Right-click your new script and go to Properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Click the Validation tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Click Edit..., make no changes, save if you want, and close your editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Click OK or Apply on the Properties dialog.&amp;nbsp; In my situation, I get the following message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing get_ParameterInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;initializeParameters Syntax Error: Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "#Script.InitializeParameters.py", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 342, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from management import Graph, GraphTemplate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.py", line 22, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import _management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_management.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import _graph&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_graph.py", line 27, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: No module named numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that none of these error messages talk about the file I'm editing at the time.&amp;nbsp; These are all files within the Python installation from ArcGIS Desktop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 14:45:27 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-07-19T14:45:27Z</dc:date>
    <item>
      <title>Unable to successfully save code in Validation tab</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67198#M5496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am unable to edit, save, and apply validation code to my custom Python script in ArcGIS Desktop 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please follow these instructions and see if you can get them to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) In ArcToolbox, right-click a custom Toolbox and go to Add &amp;gt; Script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Leave the default properties and click Next &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Either leave the Script File blank, or pick an existing script, or type the path of a script that doesn't exist, and click Next &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Click Finish&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Right-click your new script and go to Properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Click the Validation tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Click Edit..., make no changes, save if you want, and close your editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Click OK or Apply on the Properties dialog.&amp;nbsp; In my situation, I get the following message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing get_ParameterInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;initializeParameters Syntax Error: Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "#Script.InitializeParameters.py", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 342, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from management import Graph, GraphTemplate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.py", line 22, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import _management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_management.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import _graph&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_graph.py", line 27, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: No module named numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that none of these error messages talk about the file I'm editing at the time.&amp;nbsp; These are all files within the Python installation from ArcGIS Desktop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 14:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67198#M5496</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-19T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to successfully save code in Validation tab</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67199#M5497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Roger,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like the error is stating that you do not have the 'numpy' module installed.&amp;nbsp; Can you open your Python editor and try to import this module:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import numpy&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you receive an error when you run this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 15:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67199#M5497</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-07-19T15:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to successfully save code in Validation tab</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67200#M5498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I do not receive an error when I run that command from IDLE.&amp;nbsp; This is true whether ArcGIS Desktop is closed or open.&amp;nbsp; My IDLE shortcut is the default one that installs with ArcMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\pythonw.exe "C:\Python27\ArcGIS10.1\Lib\idlelib\idle.pyw"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In trying to solve the problem, I noticed that I still had a left-over directory from 10.0 called C:\Python26, so I deleted it to the Recycle Bin.&amp;nbsp; But that didn't seem to change the dialog's behavior either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is that this doesn't happen to you in 10.1, though?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 16:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67200#M5498</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-19T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to successfully save code in Validation tab</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67201#M5499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfotunately, I don't receive this error.&amp;nbsp; What is your Editor set to under Geoprocessing &amp;gt; Geoprocessing Options &amp;gt; Script Tool Editor/Debugger?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clear this so that it is blank, and test to see if you get the error.&amp;nbsp; The editor should default to notepad when this is empty.&amp;nbsp; Let me know if you still receive the same error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 17:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-successfully-save-code-in-validation-tab/m-p/67201#M5499</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-07-19T17:12:53Z</dc:date>
    </item>
  </channel>
</rss>

