<?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 User Input Code for ArcGIS 10.1 Python Window in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/user-input-code-for-arcgis-10-1-python-window/m-p/262563#M20214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;I'm trying to write script in the Python Window that will allow a user to input a value for a defined object.&lt;BR /&gt;However, I keep getting this error message.&lt;BR /&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; input ('Enter the object weight' )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter the object weightRuntime 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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EOFError: EOF when reading a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;I also tried the following script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; eval(raw_input("Enter your weight: "))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter your weight: 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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EOFError: EOF when reading a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 22:22:52 GMT</pubDate>
    <dc:creator>ShikoNjuno</dc:creator>
    <dc:date>2013-06-26T22:22:52Z</dc:date>
    <item>
      <title>User Input Code for ArcGIS 10.1 Python Window</title>
      <link>https://community.esri.com/t5/python-questions/user-input-code-for-arcgis-10-1-python-window/m-p/262563#M20214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;I'm trying to write script in the Python Window that will allow a user to input a value for a defined object.&lt;BR /&gt;However, I keep getting this error message.&lt;BR /&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; input ('Enter the object weight' )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter the object weightRuntime 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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EOFError: EOF when reading a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;I also tried the following script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; eval(raw_input("Enter your weight: "))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter your weight: 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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EOFError: EOF when reading a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 22:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/user-input-code-for-arcgis-10-1-python-window/m-p/262563#M20214</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-06-26T22:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: User Input Code for ArcGIS 10.1 Python Window</title>
      <link>https://community.esri.com/t5/python-questions/user-input-code-for-arcgis-10-1-python-window/m-p/262564#M20215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For these kinds of tasks, the best practice is to use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002s000000" rel="nofollow" target="_blank"&gt;script tool parameters&lt;/A&gt;&lt;SPAN&gt; in a geoprocessing tool which accepts the input you want. If you're learning Python, and do want to accept command line input, the Python window embedded in ArcGIS probably isn't the best place to start. You should have a python.exe included in the installation, and if you run that from the command line, then you can perform basic python operations like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var = raw_input("Enter your weight: ")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 06:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/user-input-code-for-arcgis-10-1-python-window/m-p/262564#M20215</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-06-27T06:04:39Z</dc:date>
    </item>
  </channel>
</rss>

