[python-win32] Getting Started

Tim Roberts timr at probo.com
Wed Dec 27 21:51:05 CET 2006

Stacey Gamble wrote:
> I’m a new Python user, trying to use the geoprocessing dispatch
> object.  I get an error message as soon as I import the
> win32com.client.  See below.  What am I doing wrong?
> >>> Unhandled exception while debugging...
> Traceback (most recent call last):
>   File "C:\Python21\win32com\__init__.py", line 32, in SetupEnvironment
>     __path__.append( win32api.RegQueryValue(key, "Extensions" ))
> error: (2, 'RegQueryValue', 'The system cannot find the file specified.')
> [Dbg]>>>

What version of the pywin32 stuff did you install, and where did you get
it?  This key is optional, and this read should be wrapped in a
try/except block.

Python 2.1 is very, very old.  You would be much better served by
upgrading to 2.4

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the Python-win32 mailing list