Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: "Zehnder, Rebekah" <>
- To: "" <>
- Subject: [mget-help] Error while running MGET related to Python installation
- Date: Tue, 1 Dec 2015 20:36:54 +0000
- Accept-language: en-US
Hi. I just installed MGET and am getting the same error when trying to run “Interpolate No Data Cells” as in this message: https://lists.nicholas.duke.edu/sympa/arc/mget-help/2014-06/msg00001.html.
I have ArcGIS 10.3, Python 2.7.8, and Matlab Component Runtime 7.7.
After reading your response to the message above, I checked my python installations and noticed that GeoEco was installed in ArcGIS10.3 but not in ArcGISx6410.3, so I tried copying _GeoEcoArcGISHelper.pyd and the GeoEco directory into ArcGISx6410.3\Lib\site-packages. I ran the tool again, and got a different error:
Executing: InterpolatorInpaintArcGISRaster sandtest2.tif K:\Data\gSSURGO\sandtest2_inpaint1.img Del2a # false Start Time: Tue Dec 01 14:23:56 2015 Running script InterpolatorInpaintArcGISRaster... python.exe: Traceback (most recent call last): python.exe: File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\InpaintGrid.py", line 128, in <module> python.exe: main() python.exe: File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\InpaintGrid.py", line 30, in main python.exe: Logger.Initialize() python.exe: File "C:\Python27\ArcGISx6410.3\lib\site-packages\GeoEco\Logging.py", line 253, in Initialize python.exe: cls.__doc__.Obj.ValidateMethodInvocation() python.exe: File "C:\Python27\ArcGISx6410.3\lib\site-packages\GeoEco\Metadata.py", line 468, in ValidateMethodInvocation python.exe: import GeoEco.MetadataUtils python.exe: ImportError: DLL load failed: %1 is not a valid Win32 application. RuntimeError: python.exe returned exit code 1, indicating failure. The following consequences resulted from the original error: Execution of C:\Python27\ArcGISx6410.3\python.exe failed. Failed script InterpolatorInpaintArcGISRaster...
Traceback (most recent call last): File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\InterpolatorInpaintArcGISRaster.py", line 5, in <module> ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.SpatialAnalysis.Interpolation', 'Interpolator', 'InpaintArcGISRaster') File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool exec sourceCode in globals(), locals() File "<string>", line 1, in <module> File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\SpatialAnalysis\Interpolation.py", line 726, in InpaintArcGISRaster ArcGISWorkspace(os.path.dirname(outputRaster), ArcGISRaster, pathCreationExpressions=[os.path.basename(outputRaster)]).ImportDatasets([InpaintedGrid(ArcGISRasterBand.ConstructFromArcGISPath(inputRaster), method, maxHoleSize, xEdgesWrap)], {False: u'Add', True: u'Replace'}[overwriteExisting], reportProgress=False) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\__init__.py", line 820, in ImportDatasets self._ImportDatasets(datasets, mode.lower(), reportProgress, options) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\Collections.py", line 694, in _ImportDatasets self._ImportDatasetsToPath(pathComponentsForPath[path], datasetsForPath[path], mode, progressReporter, options) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\ArcGIS.py", line 609, in _ImportDatasetsToPath self.DatasetType._ImportDatasetsToPath(os.path.join(self.Path, *pathComponents), sourceDatasets, mode, progressReporter, options) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\ArcGIS.py", line 1121, in _ImportDatasetsToPath GDALDataset._ImportDatasetsToPath(path, sourceDatasets, mode, None, {'useArcGISSpatialReference': True, 'useUnscaledData': useUnscaledData, 'calculateStatistics': False, 'blockSize': blockSize}) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\GDAL.py", line 1073, in _ImportDatasetsToPath data = "sourceDatasets[i].Data[rowsCopied:rowsCopied+rowsToCopy," :] File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\__init__.py", line 3670, in __getitem__ return getattr(self._Grid(), self._GetMethod)(key) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\__init__.py", line 3310, in _GetUnscaledDataAsArray data, actualNoDataValue = self._ReadNumpyArray(reorderedSliceList) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Datasets\Virtual.py", line 3379, in _ReadNumpyArray maxRunTime=None) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 575, in ExecuteProgram process.Execute() File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 498, in Execute Logger.RaiseException(RuntimeError(_(u'%(name)s returned exit code %(code)i, indicating failure.') % {u'name' : programName, u'code' : self.ExitCode})) File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Logging.py", line 104, in RaiseException raise exception RuntimeError: python.exe returned exit code 1, indicating failure.
Failed to execute (InterpolatorInpaintArcGISRaster). Failed at Tue Dec 01 14:23:57 2015 (Elapsed Time: 0.83 seconds)
Could you please help me figure out how to resolve this?
Thanks, Rebekah Zehnder
|
- [mget-help] Error while running MGET related to Python installation, Zehnder, Rebekah, 12/01/2015
- RE: [mget-help] Error while running MGET related to Python installation, Jason Roberts, 12/02/2015
- RE: [mget-help] Error while running MGET related to Python installation, Zehnder, Rebekah, 12/02/2015
- RE: [mget-help] Error while running MGET related to Python installation, Jason Roberts, 12/02/2015
Archive powered by MHonArc 2.6.19.