<?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 arcpy Script that used to work now crashes python.exe (change from SP2 to SP3) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561948#M43956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i just noticed that a python script with an ui that works on every computer running arcgis 10 sp2 completely crashes python on a computer with arcgis 10 sp3 installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have no clue why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i extracted the part of the code that crashes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import os
import arcpy
import tkFileDialog
from tkFileDialog import *

myFormats = [("ESRI Shapefile",'*.shp')]

file = askopenfile(filetypes=myFormats,title="Select Input file...")
inFeatures = str(file.name)
print inFeatures, type(inFeatures)

desc = arcpy.Describe(inFeatures)
if "line" in desc.shapeType:
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Input Geometry Type: OK - "&amp;nbsp; + str(desc.shapeType)
else: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Error: Input has invalid Geometry Type - " + str(desc.shapeType)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggestions on how to fix this would be appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 13:59:51 GMT</pubDate>
    <dc:creator>RaphaelR</dc:creator>
    <dc:date>2011-10-25T13:59:51Z</dc:date>
    <item>
      <title>arcpy Script that used to work now crashes python.exe (change from SP2 to SP3)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561948#M43956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i just noticed that a python script with an ui that works on every computer running arcgis 10 sp2 completely crashes python on a computer with arcgis 10 sp3 installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have no clue why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i extracted the part of the code that crashes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import os
import arcpy
import tkFileDialog
from tkFileDialog import *

myFormats = [("ESRI Shapefile",'*.shp')]

file = askopenfile(filetypes=myFormats,title="Select Input file...")
inFeatures = str(file.name)
print inFeatures, type(inFeatures)

desc = arcpy.Describe(inFeatures)
if "line" in desc.shapeType:
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Input Geometry Type: OK - "&amp;nbsp; + str(desc.shapeType)
else: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Error: Input has invalid Geometry Type - " + str(desc.shapeType)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggestions on how to fix this would be appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561948#M43956</guid>
      <dc:creator>RaphaelR</dc:creator>
      <dc:date>2011-10-25T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Script that used to work now crashes python.exe (change from SP2 to SP3)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561949#M43957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the problem seems to be, that when i select an input through a file dialog(have tried tkinter and pyqt so far) it completely screws up once anything afterwards has got anything to do with arcpy (doesn´t even matter if i use the input from the file dialog).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as mentioned the only change on my system was installing SP3, didn´t have that problem before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
import tkFileDialog
from tkFileDialog import *

myFormats = [("ESRI Shapefile",'*.shp')]

file = askopenfile(filetypes=myFormats,title="Select Input file...")
inFeatures = str(file.name)
print inFeatures

flds= arcpy.ListFields("e:/test/test.shp") #crashes here even though the input file is not used
print flds
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561949#M43957</guid>
      <dc:creator>RaphaelR</dc:creator>
      <dc:date>2021-12-12T00:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Script that used to work now crashes python.exe (change from SP2 to SP3)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561950#M43958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw a similar problem with a python script of mine. It ran on a task scheduler ever night for 2 months. The day I installed SP3 it stopped working no other changes involved. I rolled back to SP2 and the script ran fine again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My script included lots of arcpy with some connections to an SDE (9.3) database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I will just stick with SP2 for now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561950#M43958</guid>
      <dc:creator>GusMartinka</dc:creator>
      <dc:date>2011-10-28T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy Script that used to work now crashes python.exe (change from SP2 to SP3)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561951#M43959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that´s too bad, guess it´s back to SP2 for me as well then (at least for the time being). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hopefully this will get sorted out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 06:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-that-used-to-work-now-crashes-python/m-p/561951#M43959</guid>
      <dc:creator>RaphaelR</dc:creator>
      <dc:date>2011-11-02T06:44:57Z</dc:date>
    </item>
  </channel>
</rss>

