Page 1 of 1
FATAL ERROR: TypeError: not enough arguments for format
Published: June 14, 2018 - 5:29 PM
by olivetree
Wapt 1.5
Windows Server 2012 R2
I wanted to create a package to install and configure Dell Command & Configure.
Through the console's graphical interface, I was getting string or argument errors.
I tried using the command line:
c:\waptdev>wapt-get make-template C:\Users\wstaff\Downloads\Dell-Command-Configure.EXE tarkin-Dell_Command_Configure
And in return I get this error:
FATAL ERROR: TypeError: not enough arguments for format string
If I use the assistant, I do it like this (image below) and it gives this result (next image)

- wapt_er01Capture.PNG (16.17 KB) Viewed 6785 times

- wapt_er02Capture.PNG (19.28 KB) Viewed 6785 times
Do you have any idea?
Re: FATAL ERROR: TypeError: not enough arguments for format
Published: July 5, 2018 - 4:32 PM
by julienlevi
I'm experiencing the same issue with an .msi file.
Does anyone have a solution?
Thanks.
Re: FATAL ERROR: TypeError: not enough arguments for format
Published: July 5, 2018 - 5:34 PM
by dcardon
Hello Olivier,
olivetree wrote: ↑June 14, 2018 - 5:29 PM
Wapt 1.5
Windows Server 2012r2
I wanted to create a package to install Dell Command & Configure.
Using the console's graphical interface, I was getting string or argument errors.
I tried using the command line:
c:\waptdev>wapt-get make-template C:\Users\wstaff\Downloads\Dell-Command-Configure.EXE tarkin-Dell_Command_Configure
And I get this error:
FATAL ERROR: TypeError: not enough arguments for format string
If I use the wizard, I do it like this (image below) and it gives this (next image)
wapt_er01Capture.PNG
wapt_er02Capture.PNG
Do you have any idea?
The problem stems from a special character (a pipe |) in the "product name" field of the file attributes, and a bug in the package creation wizard. I'll check with Hubert to fix this bug. I've created two issues related to this problem.
https://roundup.tranquil.it/wapt/issue959
https://roundup.tranquil.it/wapt/issue960
However, it works for me via command line (version 1.6.1) with the file downloaded from the website
https://www.dell.com/support/home/fr/fr ... erid=fvgf9 Something to look into.
Note: you can always create your package by creating an empty package and putting the executable inside.
Sincerely,
Denis
Re: FATAL ERROR: TypeError: not enough arguments for format
Published: July 6, 2018 - 12:09 PM
by julienlevi
Since I only have the MSI file available, I can't create a package with an EXE file

Re: FATAL ERROR: TypeError: not enough arguments for format
Published: July 6, 2018 - 6:42 PM
by sfonteneau
In the meantime, you can execute the following command:
Code: Select all
wapt-get make-template tarkin-dell-configure
(Be sure to delete the tarkin-dell-configure folder in c:\waptdev before running the command)
You can then copy the binary (exe or msi) directly into the folder c:\waptdev\tarkin-dell-configure\
And write your package
Re: FATAL ERROR: TypeError: not enough arguments for format
Published: July 11, 2018 - 4:43 PM
by julienlevi
Thank you so much, it worked!