Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.12-pyqt6-webengine-6.8.0: cannot build on darwin #375059

Open
3 tasks done
yuanw opened this issue Jan 19, 2025 · 0 comments · May be fixed by #375088
Open
3 tasks done

python3.12-pyqt6-webengine-6.8.0: cannot build on darwin #375059

yuanw opened this issue Jan 19, 2025 · 0 comments · May be fixed by #375088
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin

Comments

@yuanw
Copy link
Contributor

yuanw commented Jan 19, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

when building python3.13-pyqt6-webengine-6.8.0 or python3.12-pyqt6-webengine-6.8.0. on darwin, the following error would occurs.

builder for '/nix/store/jldxqxcvhg15q8bn85wpqwnqgqf8crf2-python3.13-pyqt6-webengine-6.8.0.drv' failed with exit code 1;
       last 36 log lines:
       > Sourcing python-remove-tests-dir-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Sourcing python-remove-bin-bytecode-hook.sh
       > Sourcing pypa-build-hook
       > Using pypaBuildPhase
       > Sourcing python-runtime-deps-check-hook
       > Using pythonRuntimeDepsCheckHook
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: qtPreHook
       > Running phase: qmakePrePhase
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/2vrkcfmmyrf330zvyrkq9bkg80b290n8-PyQt6_WebEngine-6.8.0.tar.gz
       > source root is PyQt6_WebEngine-6.8.0
       > setting SOURCE_DATE_EPOCH to timestamp 1733496583 of file PyQt6_WebEngine-6.8.0/PKG-INFO
       > Running phase: patchPhase
       > applying patch /nix/store/190w0x39jkkarl38s96z5hag0xnf1zab-qvariant.patch
       > patching file sip/QtWebEngineCore/qwebengineframe.sip
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: buildPhase
       > Executing pypaBuildPhase
       > Creating a wheel...
       > pypa build flags: --no-isolation --outdir dist/ --wheel
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Querying qmake about your Qt installation...
       > /nix/store/ljklg8pncqc98acc25r78dz6llh21dk6-qtbase-6.8.1/bin/qmake -query
       > These bindings will be built: QtWebEngineCore, QtWebEngineQuick, QtWebEngineWidgets.
       > Generating the QtWebEngineCore bindings...
       > _in_process.py: /private/tmp/nix-build-python3.13-pyqt6-webengine-6.8.0.drv-0/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip: line 28: column 9: 'QtWebChannel/QtWebChannelmod.sip' could not be found
       >
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run 'nix log /nix/store/jldxqxcvhg15q8bn85wpqwnqgqf8crf2-python3.13-pyqt6-webengine-6.8.0.drv'.

I see in QtWebEngineCoremod.sip, there is import statement for QtWebChannelmod.sip

%Module(name=PyQt6.QtWebEngineCore, keyword_arguments="Optional", use_limited_api=True)

%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Import QtNetwork/QtNetworkmod.sip
%Import QtWebChannel/QtWebChannelmod.sip

i think the issue seems due to darwin's version of PyQt6 are missing QHWebChannel.abi3.so in /nix/store/pba0k9dzk0l20wm8hn0wgqrii27c58l6-python3.12-pyqt6-6.8.0/lib/python3.12/site-packages/PyQt6 and QtWebChannel is missing site-packages/PyQt6/bindings

Steps to reproduce

nix build "nixpkgs#python312Packages.pyqt6-webengine"

Expected behaviour

package install correctly

Screenshots

No response

Relevant log output

nix build "nixpkgs#python312Packages.pyqt6-webengine"
error: builder for '/nix/store/63q6ghl6zrfy1kld7dwh81k9y380x9k2-python3.12-pyqt6-webengine-6.8.0.drv' failed with exit code 1;
       last 36 log lines:
       > Sourcing python-remove-tests-dir-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Sourcing python-remove-bin-bytecode-hook.sh
       > Sourcing pypa-build-hook
       > Using pypaBuildPhase
       > Sourcing python-runtime-deps-check-hook
       > Using pythonRuntimeDepsCheckHook
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: qtPreHook
       > Running phase: qmakePrePhase
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/2vrkcfmmyrf330zvyrkq9bkg80b290n8-PyQt6_WebEngine-6.8.0.tar.gz
       > source root is PyQt6_WebEngine-6.8.0
       > setting SOURCE_DATE_EPOCH to timestamp 1733496583 of file PyQt6_WebEngine-6.8.0/PKG-INFO
       > Running phase: patchPhase
       > applying patch /nix/store/190w0x39jkkarl38s96z5hag0xnf1zab-qvariant.patch
       > patching file sip/QtWebEngineCore/qwebengineframe.sip
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: buildPhase
       > Executing pypaBuildPhase
       > Creating a wheel...
       > pypa build flags: --no-isolation --outdir dist/ --wheel
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Querying qmake about your Qt installation...
       > /nix/store/ljklg8pncqc98acc25r78dz6llh21dk6-qtbase-6.8.1/bin/qmake -query
       > These bindings will be built: QtWebEngineCore, QtWebEngineQuick, QtWebEngineWidgets.
       > Generating the QtWebEngineCore bindings...
       > _in_process.py: /private/tmp/nix-build-python3.12-pyqt6-webengine-6.8.0.drv-0/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/QtWebEngineCoremod.sip: line 28: column 9: 'QtWebChannel/QtWebChannelmod.sip' could not be found
       >
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run 'nix log /nix/store/63q6ghl6zrfy1kld7dwh81k9y380x9k2-python3.12-pyqt6-webengine-6.8.0.drv'.

x

Additional context

No response

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 24.1.0, macOS 15.1
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.24.11
  • nixpkgs: /nix/store/xb4yfxa32hsjpincdgjv7xdq9kyys8l9-source

Are you using nix-darwin?

Yes, I am using nix-darwin.

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@yuanw yuanw added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Jan 19, 2025
@yuanw yuanw linked a pull request Jan 19, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant