Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Jason Roberts" <> |
---|---|
To: | <> |
Cc: | <> |
Subject: | [mget-help] RE: Interpolate GHRSST Error |
Date: | Mon, 24 Jun 2013 17:12:30 -0400 |
Hi Caitlin, Thanks for sending the screenshot showing the complete tool output. That gives enough information to diagnose the issue. This is an installation problem relating to where Python and MGET are installed. Normally, when you install ArcGIS 10.1, it installs Python 2.7 for you in C:\Python27\ArcGIS10.1. The C:\Python27 directory itself will be empty except for the ArcGIS10.1 subdirectory, which will contain a complete Python installation. This is a change from ArcGIS 9.3.1, which installed Python directly in C:\Python25. Starting with 10.0, ArcGIS began using that subdirectory; in 10.0 it was C:\Python26\ArcGIS10.0. I think ESRI started doing this so that ArcGIS’s copy of Python might not conflict with another copy installed by the user. Deep in the red text of your output I can see that MGET is installed in C:\Python27, not in C:\Python27\ArcGIS10.1. You probably have two copies of Python 2.7 on the machine: one in C:\Python27 installed by you, and another in C:\Python27\ArcGIS10.1, installed by ArcGIS. When you installed the pywin32 package and MGET, you installed them to C:\Python27, but you actually needed to install them to C:\Python27\ArcGIS10.1. Now, when ArcGIS executes Python scripts, it appears to be using the Python in C:\Python27 instead of the one in C:\Python27\ArcGIS10.1. The one in C:\Python27 is not aware of ArcGIS’s own Python scripts. Specifically, it cannot find the utils.py module stored in C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy. Sorry if this is mumbo jumbo… The “correct” solution would be to start over: 1. Close all ArcGIS programs. 2. From the Windows Control Panel, uninstall MGET, pywin32, and anything starting with “Python 2.7”. 3. From the Windows Control Panel, uninstall ArcGIS 10.1 itself. 4. Manually delete the directory C:\Python27, if it still exists. 5. Install ArcGIS 10.1 again. If it asks if you should install Python, say yes. 6. Install the latest 10.1 service pack. 7. Install the pywin32 package. 8. Install MGET. That will remove all of the Python installations and restore the machine to the normal configuration expected by ArcGIS. But it can take several hours. As an alternative, you might be able to coerce ArcGIS to carrying on with the C:\Python27 instead of C:\Python27\ArcGIS10.1. To try that: 1. Close all ArcGIS programs 2. Save the attached file to the C:\Python27\\Lib\site-packages directory. This file tells Python where to find the ArcGIS Python scripts. 3. Try running the MGET tool again. If this works, there is a decent chance you are good to go and no further action is required. If it does not, you might need to try the “correct” solution. Let me know if you have any questions… Jason From: Caitlin Bovery [mailto:] Hello, When running the tool I am receiving what I believe is a Python related error that reads: Failed to open a update cursor due to AttributeERror: 'module' object has no attribute 'utils'. A screenshot of the log is attached if it helps. I am fairly well versed in ArcGIS but I am new to Python. Do you have any suggestions as to what may be causing this error? |
Attachment:
Desktop10.1.pth
Description: Binary data