[RESOLVED] Audit error for edupython package 3.14-20

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
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

October 16, 2025 - 11:26

Good morning,

I downloaded the 3.14-20 edupython package from the store and it installs without any problems.

The setup.py file simply installs the software.

Code: Select all

install_exe_if_needed(
        setup_file,
        silentflags=r'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS',
        key="EduPython_%s_is1" % control.get_software_version(),
        min_version=control.get_software_version(),
        timeout=900,
    )
The setup.py file does not include an audit function; only the audit function in the common.py file is executed. It returns the following error:

Code: Select all

Auditing col73-edupython
 OK: Uninstall Key EduPython_3.14_is1 in Windows Registry.
Audit aborted due to exception: list index out of range
Is there any way to remedy this?

Sincerely
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
italbot
Messages: 61
Registration: Sep 26, 2023 - 3:50 p.m.

October 16, 2025 - 4:17 PM

Hi Brice,

I see some differences between the code snippets you sent and the code in the package on our store. Did you modify it on your end?

In any case, I just tested our store package and I'm not experiencing your problem... Is it possible to see the entire code from your setup.py file?

Best regards,
Ingrid
Tranquil IT
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

October 22, 2025 - 08:57

Hello Ingrid,

Sorry for the late reply, I couldn't do it sooner :-/ . Thank you for your help.

It turns out that uninstalling my package didn't actually work either! (I hadn't noticed it in PyScripter.) I'm getting the same error, but this time with a much more explicit log:

Code: Select all

list index out of range
Traceback (most recent call last):
  File "<string>", line 1662, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 885, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1513, in _run
    self.result = self.wapt.remove(self.packagenames,
  File "C:\Program Files (x86)\wapt\common.py", line 5966, in remove
    self.uninstall(package)
  File "C:\Program Files (x86)\wapt\common.py", line 7559, in uninstall
    entry.call_setup_hook('uninstall', self, params=params,force=force)
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2994, in call_setup_hook
    setup = import_code(setuppy)
  File "C:\Program Files (x86)\wapt\waptutils.py", line 1638, in import_code
    exec(code, module.__dict__)
  File "<string>", line 31, in <module>
IndexError: list index out of range
This allowed me to find the error. The installation file name (setup_file) was in the global variables of the setup.py file, and even after importing the glob module into setup.py, the error still occurred. I moved this line into the install() function:

Code: Select all

def install():

    setup_file=glob.glob("Setup_EP*.exe")[0]

    #installation du logiciel
    install_exe_if_needed(
        setup_file,
        silentflags=r'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS /DIR="C:\EduPython"',
        key="EduPython_%s_is1" % control.get_software_version(),
        min_version=control.get_software_version(),
        timeout=900,
    )
Now everything works. :)

Sincerely
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 22, 2025 - 8:48 PM

brice73 wrote: Oct 22, 2025 - 8:57 AM This allowed me to find the error. The installation file name (setup_file) was in the global variables of the setup.py file, and even after importing the glob module into the setup.py file, the error occurred. I moved this line into the install() function:
That's normal.

The only time the binary is present is during installation. After that, the machine only keeps setup.py

so if in global you specify glob.glob('toto*.exe')[0]

In audit, session setup or uninstall, the file no longer exists, so [0] finds nothing -> "list index out of range"
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

October 23, 2025 - 9:30 AM

Hello Simon,

thank you for your explanation, it is indeed quite clear.

You can mark the thread as resolved.

Regards,
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 23, 2025 - 09:50

Hello Brice,

thank you for the feedback :-)

. Best regards,

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
Locked