FAQ
Hi

I am trying to use Python with ArcGIS.

I have installed Python 2.4. I have an icon for IDLE and command line.
I do not see Python PythonWin.

How do you install or launch pythonwin??

Thanks

Clive

Search Discussions

  • Niklas Norrthon at May 9, 2008 at 10:46 am

    On 9 Maj, 12:30, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??
    There is a distribution of PythonWin bundled with the
    ArcGIS Desktop installation media, but it is not
    installed by the ArcGIS installer.

    You have three options:
    1. Install it manually from the ArcGIS installation
    media.
    2. Find it on the web (google for it), download and
    install.
    3. (My recommendation) Don't bother. IDLE is pretty
    good. Emacs even better (unless you hate emacs).

    --
    Niklas Norrthon
    ESRI S-GROUP
  • Roy H. Han at May 9, 2008 at 11:21 am
    Hi Clive,

    For ArcGIS, I use plain old VIM, IPython and IDLE.

    If you really want PythonWin, then you can download Mark Hammond's Python
    for Windows extensions: http://sourceforge.net/projects/pywin32/

    Note also that with the pywin32 extensions, you can also use Python 2.5 to
    access ArcGIS using

    from win32com.client import Dispatch
    arcgis = Dispatch('esriGeoprocessing.GpDispatch')

    If you just need to access shapefiles, there is shapelib:
    http://shapelib.maptools.org/
    To make shapelib bindings for Python 2.5
    1. Download *shapelib_1_2_10.zip *from http://dl.maptools.org/dl/shapelib/
    2. Download *pyshapelib-0.3.zip* from
    ftp://intevation.de/users/bh/pyshapelib
    3. Extract *pyshapelib-0.3.zip*
    4. Extract *shapelib_1_2_10.zip* to the folder containing pyshapelib.
    Rename the extracted folder as *shapelib*
    5. From the pyshapelib directory, run python setup.py build. The script
    looks in its parent folder for the shapelib folder.
    5. From the pyshapelib directory, python setup.py install

    Hope that helps,
    Roy
    **
    On Fri, May 9, 2008 at 6:46 AM, Niklas Norrthon wrote:
    On 9 Maj, 12:30, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??
    There is a distribution of PythonWin bundled with the
    ArcGIS Desktop installation media, but it is not
    installed by the ArcGIS installer.

    You have three options:
    1. Install it manually from the ArcGIS installation
    media.
    2. Find it on the web (google for it), download and
    install.
    3. (My recommendation) Don't bother. IDLE is pretty
    good. Emacs even better (unless you hate emacs).

    --
    Niklas Norrthon
    ESRI S-GROUP
    --
    http://mail.python.org/mailman/listinfo/python-list
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://mail.python.org/pipermail/python-list/attachments/20080509/bf4c52c9/attachment.htm>
  • Ivan at May 9, 2008 at 11:46 am
    Not related (except that it is about python and ArcGIS): Remember you
    can set PYTHONINSPECT to enter interactive mode at the end of a
    script. With a script set as an ArcGIS tool, you can then enter
    interactive to play around or debug with all the ArcGIS stuff loaded.

    Is there a better way people do this?

    Ivan
  • Mike Driscoll at May 9, 2008 at 1:09 pm

    On May 9, 5:30?am, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??

    Thanks

    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike
  • Banibrata Dutta at May 9, 2008 at 1:23 pm
    if one has installed ActiveState Python 2.5, I think it'd have been
    Start Menu --> Programs --> ActiveSte ActivePython 2.5 --> <app>
    and I think it delivers IDLE, not PythonWin.

    On 5/9/08, Mike Driscoll wrote:
    On May 9, 5:30 am, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??

    Thanks

    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike

    --
    http://mail.python.org/mailman/listinfo/python-list


    --
    regards,
    Banibrata
    http://www.linkedin.com/in/bdutta
    http://octapod.wordpress.com
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://mail.python.org/pipermail/python-list/attachments/20080509/4903ac2b/attachment.htm>
  • Banibrata Dutta at May 9, 2008 at 1:30 pm
    oops moment!

    I was wrong. indeed, you should find PythonWin there, if you installed
    ActiveState Python.

    On 5/9/08, Banibrata Dutta wrote:

    if one has installed ActiveState Python 2.5, I think it'd have been
    Start Menu --> Programs --> ActiveSte ActivePython 2.5 --> <app>
    and I think it delivers IDLE, not PythonWin.

    On 5/9/08, Mike Driscoll wrote:
    On May 9, 5:30 am, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??

    Thanks

    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike

    --
    http://mail.python.org/mailman/listinfo/python-list


    --
    regards,
    Banibrata
    http://www.linkedin.com/in/bdutta
    http://octapod.wordpress.com



    --
    regards,
    Banibrata
    http://www.linkedin.com/in/bdutta
    http://octapod.wordpress.com
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://mail.python.org/pipermail/python-list/attachments/20080509/26b293d2/attachment-0001.htm>
  • 潍坊风筝 at May 9, 2008 at 1:46 pm
    In arcgis dvd , you can find a "desktop" file ,open the file ,then a "pythonwin" file,open the file ,then you install "pywin32-207.win32-py2.4.exe"
    THIS IS OK!
    Banibrata Dutta <banibrata.dutta at gmail.com> ???
    if one has installed ActiveState Python 2.5, I think it'd have been
    Start Menu --> Programs --> ActiveSte ActivePython 2.5 --> <app>
    and I think it delivers IDLE, not PythonWin.

    On 5/9/08, Mike Driscoll wrote: On May 9, 5:30 am, Clive_S wrote:
    Hi

    I am trying to use Python with ArcGIS.

    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.

    How do you install or launch pythonwin??

    Thanks

    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike
  • Clive_S at May 9, 2008 at 1:40 pm
    Hi all

    I downloaded (from Python) and installed python-2.4.4.msi

    I have python and pythonw.exe in the Python 24 folder (but not in my
    start menu).
    When I click on the pythonw.exe it is not launched??

    Thanks

    Clive

    On 9 May, 14:09, Mike Driscoll wrote:
    On May 9, 5:30?am, Clive_S wrote:

    Hi
    I am trying to use Python with ArcGIS.
    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.
    How do you install or launch pythonwin??
    Thanks
    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike
  • Ahmed, Shakir at May 9, 2008 at 1:54 pm
    You need to install the same version on your pc, if you have 2.5 already installed you need to download 2.5 pythonwin from http://sourceforge.net

    Hope it will work for you.
    Thanks
    sk


    -----Original Message-----
    From: python-list-bounces+shahmed=sfwmd.gov at python.org [mailto:python-list-bounces+shahmed=sfwmd.gov at python.org] On Behalf Of Clive_S
    Sent: Friday, May 09, 2008 9:41 AM
    To: python-list at python.org
    Subject: Re: Pythonwin

    Hi all

    I downloaded (from Python) and installed python-2.4.4.msi

    I have python and pythonw.exe in the Python 24 folder (but not in my
    start menu).
    When I click on the pythonw.exe it is not launched??

    Thanks

    Clive

    On 9 May, 14:09, Mike Driscoll wrote:
    On May 9, 5:30?am, Clive_S wrote:

    Hi
    I am trying to use Python with ArcGIS.
    I have installed Python 2.4. I have an icon for IDLE and command line.
    I do not see Python PythonWin.
    How do you install or launch pythonwin??
    Thanks
    Clive
    I have PythonWin installed in my Start Menu --> Programs --> Python
    2.5. I may have installed the ActiveState version though. Just check
    if it's there on your system and if not, you can follow Niklas's
    advice.

    Mike
    --
    http://mail.python.org/mailman/listinfo/python-list
  • Gabriel Genellina at May 9, 2008 at 2:02 pm

    En Fri, 09 May 2008 10:40:38 -0300, Clive_S <cliveswan at yahoo.co.uk> escribi?:

    I downloaded (from Python) and installed python-2.4.4.msi

    I have python and pythonw.exe in the Python 24 folder (but not in my
    start menu).
    When I click on the pythonw.exe it is not launched??
    pythonw.exe is NOT PythonWin - it's a consoleless version of the standard Python interpreter.
    PythonWin is part of the pywin32 package that you can download from https://sourceforge.net/projects/pywin32/ (make sure you get the right version)

    --
    Gabriel Genellina
  • Mike Driscoll at May 9, 2008 at 2:05 pm

    On May 9, 9:02?am, "Gabriel Genellina" wrote:
    En Fri, 09 May 2008 10:40:38 -0300, Clive_S <clives... at yahoo.co.uk> escribi?:
    I downloaded (from Python) and installed python-2.4.4.msi
    I have python and pythonw.exe in the Python 24 folder (but not in my
    start menu).
    When I click on the pythonw.exe it is not launched??
    pythonw.exe is NOT PythonWin - it's a consoleless version of the standard Python interpreter.
    PythonWin is part of the pywin32 package that you can download fromhttps://sourceforge.net/projects/pywin32/(make sure you get the right version)

    --
    Gabriel Genellina
    Ah. That's where I got it. Sorry for promulgating my own confusion!

    Mike

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedMay 9, '08 at 10:30a
activeMay 9, '08 at 2:05p
posts12
users9
websitepython.org

People

Translate

site design / logo © 2022 Grokbase