AnsweredAssumed Answered

Unable to run OptimizeRaster from command line

Question asked by diraluesriaustralia-com-au-esridist Employee on Dec 14, 2019

I can successfully run the OptimizeRasters script within it's 'Pro Toolbox' but running the script from the command line (python.exe accessible prompt) it fails with the messages:

 

log-critical:No module named azure.storage.blob

log-critical:Unable to initialize the (Azure) upload module! Check module setup/credentials. Quitting..

log-status:[Failed!]

I have 'pip-installed' (for c:\Python27) and 'conda installed' (for arcgispro-py3) the azure package and even done it for azure-storage-blob but cannot make progress and receive the same error.

NOTE: I took the command parameters from the successful toolbox run of the script in here: 

C:\Image_Mgmt_Workflows\OptimizeRasters\logs

and this line in the XML: 

<Cmd-line>
   <Message>-config=C:/Image_Mgmt_Workflows/OptimizeRasters/UserTemplates/Imagery_to_MRF_JPEG_20191214160457.xml -output=imagery -tempoutput=C:\temp -input=D:\client_imagery\input_image -cloudupload=true -outputprofile=client_azure_storage -clouduploadtype=azure -outputbucket=arcgis -cache=D:\client_imagery\imagery_cache -rasterproxypath=D:\client_imagery\raster_proxies

   <Duration>0</Duration>

</Cmd-line>

What might be the cause?

Outcomes