[SOLVED] Problem with package tis-microsoft-onenote 16001.14326.21738.0-62

Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided 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 (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Locked
cefinformatique
Messages: 31
Registration: May 26, 2023 - 2:25 p.m.

January 25, 2024 - 4:05 PM

Good morning,

When installing this package (the previous version works without any problems) on a Windows 10 Pro 22H2 PC, I get the following error:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4074, in install_wapt
    exitstatus = setup.install()
  File "C:\Windows\TEMP\wapt4c7ye69o\setup.py", line 31, in install
NameError: name 'get_host_architecture' is not defined

NameError: name 'get_host_architecture' is not defined
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 25, 2024 - 4:24 PM

Hi Marc,

which version of Wapt? (see forum rules)

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
cefinformatique
Messages: 31
Registration: May 26, 2023 - 2:25 p.m.

January 25, 2024 - 4:31 PM

Sorry.

This is version 2.3.0.13516
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 26, 2024 - 12:31

Hello Marc,

Thanks for your feedback. The get_host_architecture() function was moved to setuphelpers with version 2.4... The package should have taken this into account (or specified that the minimum version of wapt is 2.4).

To resolve the issue, you can add the function below to your setup.py file, above the `def install()` function

Code: Select all


def get_host_architecture():
    if isARM64():
        return "arm64"
    elif isARM():
        return "arm"
    elif is64():
        return "x64"
    elif is32():
        return "x86"

I encourage you to upgrade to version 2.5, it includes quite a few fixes and the upgrade is fairly simple.

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
Locked