Azure Batch - Getting this error "Value":"%1 is not a valid Win32 application

495 Views Asked by At

I'm trying to execute my python code in Azure Batch which pulls data from Adobe Analytics API. The code successfully runs in my local machine, not sure about the configuration in the pool in Az_Batch.

AZ_Batch Error

{"errorCategory":0,"code":"CommandLaunchFailed","message":"Failed to launch the specified command line","details":[{"Name":"Message","Value":"%1 is not a valid Win32 application."}]}

Could anyone please help me!!

Az_Batch Libraries installed Libraries installed locally

Environment Screenshot Libraries Screenshot

1

There are 1 best solutions below

4
Venkatesan On BEST ANSWER

"Value":"%1 is not a valid Win32 application

  • Please verify that the version of Python whether you are using 32 or 64 bit. If not, that might be the problem. if you would have install 64 bit binaries for the library while running a 32-bit version of Python.

  • Also Update NumPy.

    'pip install numpy --upgrade

  • Use the pip method uninstall the pywin32 :

      pip uninstall pywin32

The above command will remove the existing one which is by default for 32 bit computers. and again install pywin

      pip install pywin32
  • Check with path environment variables whether it is in correct path or is it in messed up, this could be one of the error you can faced.