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, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to