FATAL ERROR: TypeError: not enough arguments for format

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
User avatar
olivetree
Messages: 28
Registration: February 19, 2018 - 10:42
Location: Orsay
Contact :

June 14, 2018 - 5:29 PM

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
wapt_er01Capture.PNG (16.17 KB) Viewed 6777 times
wapt_er02Capture.PNG
wapt_er02Capture.PNG (19.28 KB) Viewed 6777 times
Do you have any idea?
--
/r/ComedyCemetery/ "If I install Windows 10 of 32 bits twice... Will it become 64 bits?"
System Management Blog https://deployadmin.com/
julienlevi
Messages: 10
Registration: May 4, 2018 - 09:18

July 5, 2018 - 4:32 PM

I'm experiencing the same issue with an .msi file.

Does anyone have a solution?

Thanks.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 5, 2018 - 5:34 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
julienlevi
Messages: 10
Registration: May 4, 2018 - 09:18

July 6, 2018 - 12:09

Since I only have the MSI file available, I can't create a package with an EXE file :(
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

July 6, 2018 - 6:42 PM

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
julienlevi
Messages: 10
Registration: May 4, 2018 - 09:18

July 11, 2018 - 4:43 PM

Thank you so much, it worked!
Locked