All Apps and Add-ons

WindowsError: [Error 193] %1 is not a valid Win32 application while packaging an app


I am trying to package an app in my local system but I am getting the below error.

Can somebody please help me regarding this...??

Below is the complete error that I get :

C:\Program Files\Splunk\bin>splunk package app supplychain
Your session is invalid. Please login.

An unforeseen error occurred:

    Exception: <type 'exceptions.WindowsError'>, Value: [Error 193] %1 is not a valid Win32 application

Traceback (most recent call last):
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\", line 1149, in main
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\", line 937, in parseAndRun
login({}, True)
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\", line 209, in login
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\", line 197, in print_login_banner
if[os.path.join(os.environ["SPLUNK_HOME"], "bin", "splunk"), "banner", "-uri", uri]) != 0:
File "C:\Program Files\Splunk\Python-2.7\Lib\", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Program Files\Splunk\Python-2.7\Lib\", line 394, in init
errread, errwrite)
File "C:\Program Files\Splunk\Python-2.7\Lib\", line 644, in _execute_child
WindowsError: [Error 193] %1 is not a valid Win32 application

Please file a case online at

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...