<?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 problem with script in PythonWin but not ArcMap's python window in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-with-script-in-pythonwin-but-not-arcmap-s/m-p/680762#M52761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script (below) which copies data from a Data Interop connection to a new file geodatabase. The script works fine in ArcMap's python window and in Idle but crashes PythonWin (see attached), which is what I prefer to work in. I'm running Win 7 (64bit), Python 2.6 (installed w/ ArcGIS), PythonWin build 212 (32bit, installed from the ArcGIS install disk), and ArcGIS 10 SP 2 with an ArcInfo license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas why this might happen &amp;amp; how I can fix it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Terry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, datetime, string

strInterop = 'Interoperability Connections\\IPHIS.fdl\\Samples'
strFolder = 'X:/Central/Temp'
strBase = 'iphis_' + string.replace(str(datetime.date.today()),'-','')
strDB = strBase + '.gdb'

arcpy.management.CreateFileGDB(strFolder,strDB,'9.3')&amp;nbsp;&amp;nbsp;&amp;nbsp; #crashes here in PythonWin
arcpy.management.CopyFeatures(strInterop,strFolder + '/' + strDB + '/' + strBase)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:47:01 GMT</pubDate>
    <dc:creator>TerryGiles</dc:creator>
    <dc:date>2021-12-12T16:47:01Z</dc:date>
    <item>
      <title>problem with script in PythonWin but not ArcMap's python window</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-script-in-pythonwin-but-not-arcmap-s/m-p/680762#M52761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script (below) which copies data from a Data Interop connection to a new file geodatabase. The script works fine in ArcMap's python window and in Idle but crashes PythonWin (see attached), which is what I prefer to work in. I'm running Win 7 (64bit), Python 2.6 (installed w/ ArcGIS), PythonWin build 212 (32bit, installed from the ArcGIS install disk), and ArcGIS 10 SP 2 with an ArcInfo license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas why this might happen &amp;amp; how I can fix it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Terry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, datetime, string

strInterop = 'Interoperability Connections\\IPHIS.fdl\\Samples'
strFolder = 'X:/Central/Temp'
strBase = 'iphis_' + string.replace(str(datetime.date.today()),'-','')
strDB = strBase + '.gdb'

arcpy.management.CreateFileGDB(strFolder,strDB,'9.3')&amp;nbsp;&amp;nbsp;&amp;nbsp; #crashes here in PythonWin
arcpy.management.CopyFeatures(strInterop,strFolder + '/' + strDB + '/' + strBase)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-script-in-pythonwin-but-not-arcmap-s/m-p/680762#M52761</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2021-12-12T16:47:01Z</dc:date>
    </item>
  </channel>
</rss>

