Page 1 sur 1

FATAL ERROR : TypeError: not enough arguments for format

Publié : 14 juin 2018 - 17:29
par olivetree
Wapt 1.5
Serveur Windows server 2012r2

Je voulais créer un paquet pour installer les Dell Command & configure.

Par l'interface graphique de la console, j'avais des erreurs string ou d'arguments.
J'ai essayé en ligne de commande :
c:\waptdev>wapt-get make-template C:\Users\wstaff\Downloads\Dell-Command-Configure.EXE tarkin-Dell_Command_Configure

Et en retour j'ai cette erreur :
FATAL ERROR : TypeError: not enough arguments for format string

Si je fais avec l'assistant, je fais comme ça (image ci dessous) et ça donne ça (image suivante)
wapt_er01Capture.PNG
wapt_er01Capture.PNG (16.17 Kio) Consulté 3588 fois
wapt_er02Capture.PNG
wapt_er02Capture.PNG (19.28 Kio) Consulté 3588 fois
Auriez vous une idée?

Re: FATAL ERROR : TypeError: not enough arguments for format

Publié : 05 juil. 2018 - 16:32
par julienlevi
Egalement dans le même cas pour un fichier .msi

Si quelqu'un a une solution ?

Merci

Re: FATAL ERROR : TypeError: not enough arguments for format

Publié : 05 juil. 2018 - 17:34
par dcardon
Bonjour Olivier,
olivetree a écrit : 14 juin 2018 - 17:29 Wapt 1.5
Serveur Windows server 2012r2

Je voulais créer un paquet pour installer les Dell Command & configure.

Par l'interface graphique de la console, j'avais des erreurs string ou d'arguments.
J'ai essayé en ligne de commande :
c:\waptdev>wapt-get make-template C:\Users\wstaff\Downloads\Dell-Command-Configure.EXE tarkin-Dell_Command_Configure

Et en retour j'ai cette erreur :
FATAL ERROR : TypeError: not enough arguments for format string

Si je fais avec l'assistant, je fais comme ça (image ci dessous) et ça donne ça (image suivante)
wapt_er01Capture.PNG
wapt_er02Capture.PNG

Auriez vous une idée?
le problème vient du caractère spécial (un | pipe) dans le champ "nom du produit" des attributs du fichier, et d'un bug du wizard de création de paquet. Je vais voir avec Hubert pour corriger ce bug. J'ai créé deux issues par rapport à ce problème.

https://roundup.tranquil.it/wapt/issue959
https://roundup.tranquil.it/wapt/issue960

Par contre ça fonctionne pour moi en ligne de commande (version 1.6.1) avec le fichier téléchargé sur le site https://www.dell.com/support/home/fr/fr ... erid=fvgf9 . A creuser.

Note : vous pouvez toujours créer votre paquet en créant un paquet vide et en mettant l'exe dedans.

Cordialement,

Denis

Re: FATAL ERROR : TypeError: not enough arguments for format

Publié : 06 juil. 2018 - 12:09
par julienlevi
N'ayant que le msi a disposition. Je ne peux pas faire un package avec un exe :(

Re: FATAL ERROR : TypeError: not enough arguments for format

Publié : 06 juil. 2018 - 18:42
par sfonteneau
Vous pouvez en attendant executer la commande :

Code : Tout sélectionner

 wapt-get make-template tarkin-dell-configure
 
(attention a bien supprimer avant d'executer la commande le dossier tarkin-dell-configure dans c:\waptdev)

Vous pouvez ensuite copier le binaire (exe ou msi) directement dans le dossier c:\waptdev\tarkin-dell-configure\

Et écrire votre paquet

Re: FATAL ERROR : TypeError: not enough arguments for format

Publié : 11 juil. 2018 - 16:43
par julienlevi
Merci beaucoup, cela a fonctionné