Page 1 of 1

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

Published: January 25, 2024 - 4:05 PM
by cefinformatique
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

Re: Problem with package tis-microsoft-onenote 16001.14326.21738.0-62

Published: January 25, 2024 - 4:24 PM
by dcardon
Hi Marc,

which version of Wapt? (see forum rules)

Denis

Re: Problem with package tis-microsoft-onenote 16001.14326.21738.0-62

Published: January 25, 2024 - 4:31 PM
by cefinformatique
Sorry.

This is version 2.3.0.13516

Re: Problem with package tis-microsoft-onenote 16001.14326.21738.0-62

Published: January 26, 2024 - 12:31
by dcardon
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