<?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 Write Feature to Text: &amp;amp;lt;type 'exceptions.ImportError'&amp;amp;gt;: No module named string Failed in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411251#M32419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to accomplish a fairly simple task: ArcToolbox&amp;gt;Samples&amp;gt;Data management&amp;gt;Write features to text.&amp;nbsp; I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.ImportError'&amp;gt;: No module named string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature is a simple polygon.&amp;nbsp; The Google hints at some trouble with python, but only mentions "no module name BLAH", but no mention of "no module name string."&amp;nbsp; I followed that advice and checked my environment variables, put c:/Python27/ as the first entry in PATH and PYTHONPATH, but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be simple... but alas, it isn't!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows XP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap 9.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python 2.7&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 23:59:52 GMT</pubDate>
    <dc:creator>WesChristensen</dc:creator>
    <dc:date>2012-02-13T23:59:52Z</dc:date>
    <item>
      <title>Write Feature to Text: &amp;lt;type 'exceptions.ImportError'&amp;gt;: No module named string Failed</title>
      <link>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411251#M32419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to accomplish a fairly simple task: ArcToolbox&amp;gt;Samples&amp;gt;Data management&amp;gt;Write features to text.&amp;nbsp; I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.ImportError'&amp;gt;: No module named string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature is a simple polygon.&amp;nbsp; The Google hints at some trouble with python, but only mentions "no module name BLAH", but no mention of "no module name string."&amp;nbsp; I followed that advice and checked my environment variables, put c:/Python27/ as the first entry in PATH and PYTHONPATH, but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be simple... but alas, it isn't!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows XP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap 9.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python 2.7&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 23:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411251#M32419</guid>
      <dc:creator>WesChristensen</dc:creator>
      <dc:date>2012-02-13T23:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Write Feature to Text: &lt;type 'exceptions.ImportError'&gt;: No module named string Fa</title>
      <link>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411252#M32420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python 2.7 is not the version that comes with ArcGIS 9.3. Arc actually installs its own Python. If you have installed another Python, there is possibly a conflict between the two. It is possible to have multiple Python installations, including one that works with Arc, but you have to be a little careful about how you set it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you let Arc install its own Python distribution? Did you try to delete or uninstall this one before installing 2.7? Was 2.7 already on your computer before installing Arc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The quick and dirty solution would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;uninstall Arc&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;uninstall Python (all versions)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;reboot computer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;install Arc (and make sure it installs its Python - there is an option somewhere)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 00:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411252#M32420</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2012-02-14T00:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write Feature to Text: &lt;type 'exceptions.ImportError'&gt;: No module named string Fa</title>
      <link>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411253#M32421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please post your script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 11:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411253#M32421</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2012-02-14T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Write Feature to Text: &lt;type 'exceptions.ImportError'&gt;: No module named string Fa</title>
      <link>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411254#M32422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stacy, I installed Python 2.5.1 and everything works fine.&amp;nbsp; Thanks!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/write-feature-to-text-amp-lt-type-exceptions/m-p/411254#M32422</guid>
      <dc:creator>WesChristensen</dc:creator>
      <dc:date>2012-02-14T14:17:56Z</dc:date>
    </item>
  </channel>
</rss>

