You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

ArcGIS Enterprise Marketplace Linux image comes with ArcPy. Thus, it is possible to run MDCS script (in theory).

Step-by-step guide

  1. Copy the entire contents of https://github.com/Esri/mdcs-py/blob/master/scripts/ to working directory.


MDTools_Setup.exe cannot be installed. MDTools is a set of command line tools that simplifies some common management tasks when working with rasters in a mosaic dataset.

Error 999999

Arcpy throws an error when it adds an item.

log-msg: Command:AR->Add rasters/data to a mosaic dataset.
log-msg: Adding rasters:
log-msg:        Using mosaic dataset/ID:CERES_Hourly_Solar/power
log-msg:        Using ART for CERES_HOURLY_SOLAR: Table / Raster Catalog
log-msg: Adding items..
log-warning: Args less than required, filling with default (#)
log-msg: Calling (arcpy.AddRastersToMosaicDataset_management)
log-critical: ERROR 999999: Something unexpected caused the tool to fail. Conta\
ct Esri Technical Support (http://esriurl.com/support) to Report a Bug, and ref\
er to the error help for potential solutions or workarounds.
Failed to execute (AddRastersToMosaicDataset).

Installing Missing Packages

  1. conda install pip
  2. "z:\home\arcgis\bin\Python\envs\test\Scripts\pip.exe" install logger

Use of py cache (.pyc)  files and Python version

Use of solutionsLib.pyc is not compatible with Python3 [1]. Always use source https://github.com/Esri/mdcs-py/blob/master/scripts/solutionsLib.py.

Z:\home\arcgis\src\SDT-56>"z:\home\arcgis\bin\Python\envs\test\python.exe" MDCS.py 
Traceback (most recent call last):
  File "MDCS.py", line 34, in <module>
    import solutionsLib  # import Raster Solutions library
ImportError: bad magic number in 'solutionsLib': b'\x03\xf3\r\n'


References

  1. https://github.com/Miserlou/Zappa/issues/854
  • No labels