[SOLVED] run(cmd) returns an error
Published: January 28, 2020 - 7:09 PM
Good morning,
code:
I'm running a test installation of PyScripter, but the command prompt (cmd) returns the following error:
I believe this is due to the fact that he puts "\\" two back bars.
How can I solve it?
code:
Code: Select all
for soft in installed_softwares("NetBeans"):
try:
cmd = WAPT.uninstall_cmd(soft['key'])
if len(cmd) == 2:
cmd = cmd[0]
if not '--silent' in cmd:
cmd = cmd + ' --silent --state {}state.xml'.format(path)
print(cmd)
run(cmd)
except ValueError:
print('An error occured!')Code: Select all
CalledProcessErrorOutput: Command 'C:\\Program Files\\NetBeans-11.2\\uninstall.exe --silent --state C:\\ProgramData\\state.xml' returned non-zero exit status 1.How can I solve it?
