Skip to content

Regression: "No module named 'mesonbuild.dependencies.ui'" in Windows MSI version #12036

Closed

Description

@brakhane

Describe the bug
Using the 1.2.0 MSI, the module 'mesonbuild.dependencies.ui' is missing, while it seems to be available in 1.1.1

To Reproduce
Minimal meson.build (bug also appears if there is an actual executable() line):

project('bug', 'c')

dependency('sdl2')
> md subprojects
> meson wrap install sdl2
> meson setup build
The Meson build system
Version: 1.2.0
Source dir: F:\bug
Build dir: F:\bug\build
Build type: native build
Project name: bug
Project version: undefined
C compiler for the host machine: cl (msvc 19.36.32537 "Microsoft (R) C/C++-Optimierungscompiler Version 19.36.32537 f�r x64")
C linker for the host machine: link link 14.36.32537.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Traceback (most recent call last):
  File "mesonbuild\mesonmain.py", line 194, in run
  File "mesonbuild\msetup.py", line 358, in run
  File "mesonbuild\msetup.py", line 183, in generate
  File "mesonbuild\msetup.py", line 228, in _generate
  File "mesonbuild\interpreter\interpreter.py", line 2997, in run
  File "mesonbuild\interpreterbase\interpreterbase.py", line 164, in run
  File "mesonbuild\interpreterbase\interpreterbase.py", line 190, in evaluate_codeblock
  File "mesonbuild\interpreterbase\interpreterbase.py", line 182, in evaluate_codeblock
  File "mesonbuild\interpreterbase\interpreterbase.py", line 196, in evaluate_statement
  File "mesonbuild\interpreterbase\interpreterbase.py", line 521, in function_call
  File "mesonbuild\interpreterbase\decorators.py", line 826, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 826, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 826, in wrapped
  [Previous line repeated 4 more times]
  File "mesonbuild\interpreterbase\decorators.py", line 109, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 127, in wrapped
  File "mesonbuild\interpreterbase\decorators.py", line 277, in wrapper
  File "mesonbuild\interpreterbase\decorators.py", line 596, in wrapper
  File "mesonbuild\interpreter\interpreter.py", line 1774, in func_dependency
  File "mesonbuild\interpreter\dependencyfallbacks.py", line 355, in lookup
  File "mesonbuild\interpreter\dependencyfallbacks.py", line 87, in _do_dependency
  File "mesonbuild\dependencies\detect.py", line 115, in find_external_dependency
  File "mesonbuild\dependencies\detect.py", line 193, in _build_external_dependency_list
  File "collections\__init__.py", line 1123, in __getitem__
  File "mesonbuild\dependencies\detect.py", line 39, in __missing__
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonbuild.dependencies.ui'

meson.build:3:0: ERROR: Unhandled python exception

    This is a Meson bug and should be reported!

Expected behavior
setup step should complete successfully, like it does with 1.1.1

system parameters

  • Plain native build
  • Windows 10
  • System Python is 3.11.0,
  • meson 1.2.0
  • ninja 1.11.1

Activity

  1. changed the title [-]Regression: mesonbuild.dependencies.ui missing from Windows MSI version[/-] [+]Regression: "No module named 'mesonbuild.dependencies.ui'" in Windows MSI version[/+] on Jul 25, 2023
  2. added a commit that references this issue on Jul 25, 2023
    6aceb7e
  3. eli-schwartz commented on Jul 25, 2023

    @eli-schwartz
    Member

    This silly error only affects the MSI packaging. I am not sure when @jpakkane will have time to upload fixed binaries, so this may just end up fixed in 1.2.1 instead.

  4. added a commit that references this issue on Aug 7, 2023
    42723f1
  5. eli-schwartz commented on Aug 8, 2023

    @eli-schwartz
    Member

    The bugfix release is out now, please give the new meson-1.2.1-64.msi a try.

  6. brakhane commented on Aug 9, 2023

    @brakhane
    Author

    Thanks. I can confirm it works now.

  7. added a commit that references this issue on Aug 25, 2023
    6a82e0d
  8. added a commit that references this issue on May 1, 2025
    866ce84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions