<?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 Re: PythonWin + ArcGIS not playing well together. in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145263#M4914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to Python and in the process of taking the "Python Scripting for Geoprocessing Workflows" online course.&amp;nbsp; I am at Service Pack 3 and this is still an issue.&amp;nbsp; Any time I attempt to run my script (either the one I wrote during the course exercise or the one provided as part of the exercise materials) PythonWin crashes.&amp;nbsp; I can successfully run the script in IDLE, and often have success running it line by line within the Interactive Window of PythonWin, but more often than not the program crashes.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I plan to check out PyScripter now so that I can continue with the course, but wanted to post since I too have this problem and it was not resolved with Service Pack updates.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 14:30:04 GMT</pubDate>
    <dc:creator>EmilyHimmelstoss</dc:creator>
    <dc:date>2012-03-16T14:30:04Z</dc:date>
    <item>
      <title>PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145256#M4907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is anyone else having problems with PythonWin running geoprocessing commands?&amp;nbsp; Pythonwin intermittently crashes on arcpy.env.workspace, arcpy.Buffer, or other tools.&amp;nbsp; Has anyone solved this issue yet? Here's a video to show you what I mean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://screencast.com/t/EbXKrGP6H" rel="nofollow noopener noreferrer" target="_blank"&gt;http://screencast.com/t/EbXKrGP6H&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the video, closing PythonWin between each test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 1: run script (with running man) -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 2: run script with step through -- it works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 3: run script with running man -- it works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 4: comment out setting workspace in script.&amp;nbsp; run script (with running man) -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 5: workspace still commented out, try our fix in the interactive window -- it crashes when setting workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 6: try same thing -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 7 : try with capital T,&amp;nbsp; -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 8:&amp;nbsp; run script with running man -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 9: run script with step over -- it crashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test 10: add line of code setting workspace back into script.&amp;nbsp; Run it -- it crashes. (though the vid stops just before this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know there are alternatives to Pythonwin.&amp;nbsp; But I'd really rather solve this problem then march off to a different editor.&amp;nbsp; I know this stuff can be run at the Python command prompt inside Arc, but that doesn't have the debugging facilities of PythonWin.&amp;nbsp; IDLE also doesn't have the nice debugging interface of PythonWin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code I used in the video. (Though there's nothing wrong with the code itself.)&amp;nbsp; If anyone would be kind enough to try this out, you can replace the line of code that points to my shapefile with one of your own, and it should work with no arguments.&amp;nbsp; (input = "C:\\Temp\\COVER63p.shp" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# ---------------------------------------------------------------------------
# exported2.py
# Created on: 2012-01-10 12:52:28.00000
#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)
# Usage: exported2 &amp;lt;distance&amp;gt; &amp;lt;input&amp;gt; &amp;lt;output&amp;gt; 
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy
arcpy.env.overwriteOutput = 1
arcpy.env.workspace = "C:/Temp"
# Script arguments
distance = arcpy.GetParameterAsText(0)
if distance == '#' or not distance:
&amp;nbsp;&amp;nbsp;&amp;nbsp; distance = "5 Feet" # provide a default value if unspecified

input = arcpy.GetParameterAsText(1)
if input == '#' or not input:
&amp;nbsp;&amp;nbsp;&amp;nbsp; input = "C:\\Temp\\COVER63p.shp" # provide a default value if unspecified

output = arcpy.GetParameterAsText(2)
if output == '#' or not output:
&amp;nbsp;&amp;nbsp;&amp;nbsp; output = "C:\\Temp\\abc.shp" # provide a default value if unspecified

# Process: Buffer
arcpy.Buffer_analysis(input, output, distance)

print arcpy.GetMessages()

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145256#M4907</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2021-12-11T07:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145257#M4908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you install Pythonwin using the version from your ArcGIS installation CD?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 13:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145257#M4908</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-01-17T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145258#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded PythonWin from Source Forge.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/"&gt;http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Used this one:&amp;nbsp; pywin32-214.win32-py2.6.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://screencast.com/t/ppiOhknY"&gt;http://screencast.com/t/ppiOhknY&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the disc contain a different build?&amp;nbsp; I work at an institution where we have a blanket license, so I don't have a CD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 13:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145258#M4909</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-01-17T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145259#M4910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Search this forum using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Pythonwin installation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as the search entry, some threads may be pertinent to you installation etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eg.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/33453-Python-amp-PythonWin-default-installation-directory?highlight=pythonwin+installation"&gt;http://forums.arcgis.com/threads/33453-Python-amp-PythonWin-default-installation-directory?highlight=pythonwin+installation&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 14:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145259#M4910</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-01-17T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145260#M4911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Dan.&amp;nbsp; Most of these suggestions seem to deal with PythonWin installation location and build problems, situations where it either works or doesn't work.&amp;nbsp; Not ones like mine where it's more like a memory leak, freaky unpredictable behavior, working when the mood strikes it.&amp;nbsp;&amp;nbsp; I'm really surprised no one else is reporting this problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Except perhaps this one person describing the same problem on Devshed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.devshed.com/python-programming-11/pythonwin-stops-working-when-assigning-workspace-path-868333.html"&gt;http://forums.devshed.com/python-programming-11/pythonwin-stops-working-when-assigning-workspace-path-868333.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if it could be something to do with some of the additional extensions we've installed: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ARCGIS Data Interoperability&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARCGIS DESKTOP VBA Resources for Developers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARCOBJects SDK for the Microsft .NET Framework&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan, do you have these installed in your working environment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145260#M4911</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-01-17T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145261#M4912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, no I don't.&amp;nbsp; It is usually the quirky install that does things.&amp;nbsp; You might want to check out Pyscripter instead, it is pretty nice and I use it in place of Pythonwin many times&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/dev/blogs/geoprocessing/archive/2011/06/17/pyscripter-_2d002d00_-free-python-ide.aspx"&gt;http://blogs.esri.com/dev/blogs/geoprocessing/archive/2011/06/17/pyscripter-_2d002d00_-free-python-ide.aspx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This will determine whether it is a python or pythonwin if the quirkiness continues.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145261#M4912</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-01-17T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145262#M4913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried pyScripter.&amp;nbsp; It's fantastic.&amp;nbsp; Thank you for pointing it out!&amp;nbsp; Only thing so far is no folding.&amp;nbsp;&amp;nbsp;&amp;nbsp; I think I'm going to convert.&amp;nbsp; Why do you still you PythonWin sometimes??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, v2.4.3 works for me, but not v2.4.6.&amp;nbsp; But no sweat.&amp;nbsp; I'm not that into early adoption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mean time, I think we might have solved our original problem by installing a service pack for the data interoperability extension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/content/patches-and-service-packs?fa=viewPatch&amp;amp;PID=83&amp;amp;MetaID=1787"&gt;http://resources.arcgis.com/content/patches-and-service-packs?fa=viewPatch&amp;amp;PID=83&amp;amp;MetaID=1787&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Too early to be 100% certain.&amp;nbsp; Will test it on other machines, but I think that may have been it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 17:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145262#M4913</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-01-17T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145263#M4914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to Python and in the process of taking the "Python Scripting for Geoprocessing Workflows" online course.&amp;nbsp; I am at Service Pack 3 and this is still an issue.&amp;nbsp; Any time I attempt to run my script (either the one I wrote during the course exercise or the one provided as part of the exercise materials) PythonWin crashes.&amp;nbsp; I can successfully run the script in IDLE, and often have success running it line by line within the Interactive Window of PythonWin, but more often than not the program crashes.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I plan to check out PyScripter now so that I can continue with the course, but wanted to post since I too have this problem and it was not resolved with Service Pack updates.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 14:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145263#M4914</guid>
      <dc:creator>EmilyHimmelstoss</dc:creator>
      <dc:date>2012-03-16T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145264#M4915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ehimmelstoss,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had really fluky problems with Python when I was using Arc 10 until I installed a service pack that seemed entirely unrelated.&amp;nbsp; It was the 'Data Interoperability' service pack.&amp;nbsp;&amp;nbsp; Try it, if you haven't already.&amp;nbsp; I haven't had any problems with Python and Arc10.1, so get 10.1 if you can.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 12:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145264#M4915</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-11-08T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: PythonWin + ArcGIS not playing well together.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145265#M4916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ehimmelstoss,&lt;BR /&gt;&lt;BR /&gt;I had really fluky problems with Python when I was using Arc 10 until I installed a service pack that seemed entirely unrelated.&amp;nbsp; It was the 'Data Interoperability' service pack.&amp;nbsp;&amp;nbsp; Try it, if you haven't already.&amp;nbsp; I haven't had any problems with Python and Arc10.1, so get 10.1 if you can.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I realise this is many months old and that i'm hijacking the thread but I had been having problems with PythonWin - would just close on any script execution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the patch for the Data Interoperability Extension and voila, now it executes scripts like it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 04:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/pythonwin-arcgis-not-playing-well-together/m-p/145265#M4916</guid>
      <dc:creator>SianDoherty</dc:creator>
      <dc:date>2013-04-04T04:55:37Z</dc:date>
    </item>
  </channel>
</rss>

