Repository navigation
Description
Describe the bug
Install stuck after "Getting requirements to build wheel"
To Reproduce
Steps to reproduce the behavior:
- Windows 11 x64 25H2
- run setup.ps1 or .bat with admin or user privs
- See error
`ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\cli\base_command.py", line 107, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\cli\base_command.py", line 98, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\cli\req_command.py", line 96, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\commands\install.py", line 392, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\resolution\legacy\resolver.py", line 184, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\resolution\legacy\resolver.py", line 506, in _resolve_one
dist = self._get_dist_for(req_to_install)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\resolution\legacy\resolver.py", line 459, in _get_dist_for
dist = self.preparer.prepare_linked_requirement(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\operations\prepare.py", line 542, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\operations\prepare.py", line 657, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\operations\prepare.py", line 77, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\distributions\sdist.py", line 55, in prepare_distribution_metadata
self._install_build_reqs(build_env_installer)
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\distributions\sdist.py", line 132, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\distributions\sdist.py", line 107, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_internal\utils\misc.py", line 700, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 196, in get_requires_for_build_wheel
return self._call_hook(
^^^^^^^^^^^^^^^^
File "C:\Users\simon\rwatermark\WatermarkRemover-AI\python\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 402, in _call_hook
raise BackendUnavailable(
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'mesonpy'
[X] Failed to install dependencies`

Activity
xCorvoss commentedon Mar 1, 2026
Same error. Any solution yet?
benshep commentedon Mar 2, 2026
I had the same error. I got a bit further by installing the
meson-pythonproject manually using pip (python\python.exe -m pip install meson-python), and setting myCCenvironment variable to point to a gcc.exe I had previously installed. But then I ended up with a different issue: "ERROR: Python dependency not found". I don't know how to resolve this.brad203tx commentedon Mar 3, 2026
I am having the same issue Install fails after "Getting requirements to build wheel" same stack as first
buouyu commentedon Mar 10, 2026
I have the same problem. Have you solved it?
Sim7b commentedon Mar 16, 2026
Workaround
omrid594 commentedon Mar 16, 2026
did it work for you?
Sim7b commentedon Mar 16, 2026
Yes but need a fresh install.
Unfortunately I have another problem when I try to remove watermark...
tjsky commentedon Mar 17, 2026
Simply remove
PyGObjectfrom therequirements.txtfile and then rerun theps1script, asPyGObjectis not needed at all on Windows systems—it's intended for Linux.从
requirements.txt文件中删除PyGObject,然后重新运行ps1脚本,因为 Windows 系统根本不需要PyGObject——它是给Linux用的Vitor333104 commentedon Apr 8, 2026
I tested it on my machine and it worked perfectly.
D-Ogi commentedon Sep 16, 2026
Keeping this as the main Windows PyGObject installation report; #72 and #75 contain the same build-failure pattern.
requirements.txtonmainstill includes PyGObject unconditionally. The logs show failures while building it, includingCannot import 'mesonpy'and a later missing Python development dependency after manually adding build tools. Installing Meson alone is therefore not a complete fix.#65 and #68 contain related platform/backend changes. A fix needs a fresh Windows installation test and a working Linux GUI backend; removing backend dependencies indiscriminately would leave another platform broken. This issue stays open until the fix is merged and those installation paths are verified.
D-Ogi commentedon Sep 16, 2026
Fixed in #88, with the dependency migration in #89 now also merged. Windows no longer installs PyGObject or uses the legacy resolver. Linux receives the complete Qt backend through its platform-specific requirement and documented system libraries.
Validation: fresh PowerShell and batch installs completed on Windows (including embedded Python 3.12.7); repeat PowerShell setup succeeded. Full application installation, pip check, and the JavaScript/Python desktop bridge passed on Windows, Linux and macOS. See #88 and #89 for the evidence and limits.
Please use a fresh checkout/application environment when upgrading an older IOPaint installation: https://github.com/D-Ogi/WatermarkRemover-AI/blob/main/docs/lama-runtime.md#installation-and-migration . Closing the reported PyGObject/Meson installation problem as fixed. A remaining GUI or processing error should be tracked separately with its own traceback.