Skip to Content.

mget-help - [mget-help] RE: python not found in registry

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: Jason Roberts <>
To: "Corcoran, Jennifer (DNR)" <>
Cc: "" <>
Subject: [mget-help] RE: python not found in registry
Date: Thu, 21 May 2015 18:18:43 +0000
Accept-language: en-US
Authentication-results: spf=none (sender IP is ) ;

Hi Jennifer,

 

I can help you with this. It is a relatively odd problem. When Python installs on Windows, by default it stores the version and installation directory in a well-known place in the registry, so that subsequent package installs (e.g. pywin32 and MGET) can locate the installation directory. It is possible to disable this “write to registry” option in the Python installer. Presumably that happened, or the information was somehow deleted from the registry after Python was installed.

 

One possibility would be a sequence like this:

 

1.    Python is installed once, e.g. by the ArcGIS installer when ArcGIS was installed. This writes to the registry.

2.    Python is installed a second time, e.g. by a user. This overwrites the registry.

3.    Python installation #2 is uninstalled. This removes the registry information, but it does not restore it to point to Python #1. Python installation #1 is still there, but there’s nothing in the registry.

 

In general, I do not recommend ever installing Python yourself if you are just planning to use ArcGIS and are not an expert Python programmer. Another source of trouble with multiple Python installations involves the Windows file associations. ArcGIS expects that the Windows file associations are configured to use ArcGIS’s copy of Python as the handler for Python .py scripts. If you install your own copy of Python and allow it to register itself as the handler of .py files, not all geoprocessing tools will run correctly, including some that come with ArcGIS and additional ones such as MGET. It is possible to patch your own copy of Python that will allow it to work, but this is slightly complicated and I don’t recommend it unless you are an expert Python user. (If you are, please let me know and I’m happy to share what I’ve found.)

 

Anyway, assuming you are trying to run MGET from ArcGIS (the most common scenario, by far), the smoothest way to restore everything to the appropriate state is to uninstall ArcGIS and install it again. This will remove ArcGIS’s copy of Python and install it again, setting the registry to point to it.

 

If that is not feasible for some reason, let me know and I can try to recommend a more complicated surgical fix.

 

Best,

 

Jason

 

From: Corcoran, Jennifer (DNR) [mailto:]
Sent: Thursday, May 21, 2015 1:37 PM
To:
Subject: [mget-help] python not found in registry

 

To whom it may concern~

 

I am trying to install pywin in order to install the MGET, but I get the error “Python version 2.7 required, which was not found in the registry.” When I in fact do have Python 2.7 installed on my machine.

 

Any ideas for help?

 

~Jennifer

 

 

--

Jennifer M. Corcoran, PhD

Minnesota Department of Natural Resources

Division of Forestry

201A Green Hall

1530 Cleveland Avenue N

Saint Paul, MN 55108-6146

Phone: 651-642-0660 (UMN - Primary)

Phone: 651-259-5898 (Central Office)

alt email:

 

Archives powered by MHonArc.
Top of Page