Bonjour,

pour des raisons particulières sur un paquet, je souhaiterais éxécuter une commande "wapt-get remove -f ..." dans le script python d'un paquet.

J'ai mis dans le script :

run(r'wapt-get remove -f chal-fusioninventoryagent')

mais ça me renvoie :

2014-08-08 14:15:33,443 CRITICAL Fatal error in install script: CalledProcessErr
or: Command '('wapt-get remove -f chal-fusioninventoryagent',)' returned non-zer
o exit status 3:Traceback (most recent call last):
 File "C:\wapt\common.py", line 2926, in install_wapt
   exitstatus = setup.install()
 File "c:\users\admini~1\appdata\local\temp\waptnejtfn\setup.py", line 25, in i
nstall
   run(r'wapt-get remove -f chal-fusioninventoryagent')
 File "C:\wapt\common.py", line 2773, in run
   return setuphelpers.run(*arg,pidlist=self.pidlist,**args)
 File "C:\wapt\setuphelpers.py", line 561, in run
   raise subprocess.CalledProcessError(proc.returncode,cmd,''.join(output))
CalledProcessError: Command '('wapt-get remove -f chal-fusioninventoryagent',)'
returned non-zero exit status 3

2014-08-08 14:15:33,489 CRITICAL Package chal-ocsinventoryagent not installed du
e to errors : CalledProcessError: Command '('wapt-get remove -f chal-fusioninven
toryagent',)' returned non-zero exit status 3

Ce que je veux faire n'est pas possible ?
Ou y a t'il une procédure particulière pour éxécuter un wapt-get remove -f dans un script python ?

Merci.