Select to view content in your preferred language

Using PythonWin - can't find it!

12286
11
04-12-2010 10:14 AM
SianNightingale
Deactivated User
Firstly, apologies if I have posted this thread in the wrong section.

I am currently working through a number of courses during the ESRI annual user licence and the geoprocessing one I am currently plodding my way through instructs me to open PythonWin through Start/Programmes instead of using ArcMap or ArcCatalogue to work through the instructions on how to use scripts.

On my computer, when I got to Start/Programmes/Python 2.5 the options available to me are: IDLE (Python GUI), Module Docs, Python (command line) and Python Manuals, there is no PythonWin. I have attached a screen print of these options. If I open IDLE up, I can view the scripts, but this doesn't appear to be correct, as There is no "Run" option with a man beside it as the course is telling me to do.

Any help greatly appreciated as I still haven't come to fully understand scripts and how they run, which I am trying to do through this course.

Regards,
0 Kudos
11 Replies
ChrisWhitmore
Esri Regular Contributor
Pythonwin can be installed on top of the python laid down by ArcGIS Desktop (but Pythonwin is NOT installed by default). It's not necessary to download pythonwin - it's available in the ArcGIS Desktop .iso download.

There is one known issue with installing pythonwin in this scenario - pythonwin shortcuts are not created.  The workaround is to create the shortcuts yourself.  A KB article will be released soon with this info.

Thanks,

Chris
0 Kudos
SolomonPulapkura
Frequent Contributor
Yes. It can be found in ... Installation Disk\Desktop\PythonWin folder.

Explanation is as follows:

PythonWin for ArcGIS Desktop, ArcGIS Engine, ArcGIS Server

Scripts written in ArcGIS 9.0 or 9.1 use the win32com module installed by PythonWin to create the geoprocessor object. With ArcGIS 9.2, the Python Win 32 extension is no longer installed (as it is not required).* If PythonWin is not installed, any existing scripts created using ArcGIS 9.0 or 9.1 which use win32com will no longer work correctly.* Therefore the PythonWin32 setup is available on the ArcGIS 9.2 Desktop, ArcGIS 9.2 Engine Runtime, ArcGIS Server Workgroup 9.2, and the ArcGIS Server Enterprise 9.2 for Windows installation media.
Note:*The PythonWin32 extension setup requires an existing installation of Python 2.4.1 which is installed by the ArcGIS Desktop, ArcGIS Engine and ArcGIS Server setups.

ArcGIS no longer installs PythonWin because the recommended methodology for creating the geoprocessor has changed to using a new Python module that ESRI has developed to support the latest version of Python and multiple platforms, such as Windows, UNIX and Linux.

To move forward with ArcGIS 9.2 and Python scripting, you must do one of the two options:

Alter your scripts to use the new ArcGIS python module to create the geoprocessor. Please see the following online help section for more information:* Geoprocessing/Automating your work with scripts/Accessing tools with geoprocessing scripts/Creating the geoprocessor object
Install the PythonWin install program, pywin32-207.win32-py2.4.exe, found on the installation CD. This will install win32com and enable your existing scripts to work as they did in ArcGIS 9.0 and 9.1.
0 Kudos