Thanks for the help so far! Initially, the building timed out, so I added a higher timeout in the _execute
function in pip/pyqt5/defs.bzl
def _execute(repository_ctx, arguments, quiet = False):
pip_vendor = str(repository_ctx.path(pip_vendor_label).dirname)
return repository_ctx.execute(arguments, environment = {
"PYTHONPATH": pip_vendor,
}, timeout = 9000000, quiet = quiet)
After that, moved on to a new error (this log is from attempting to rebuild so ignore the build time):
nasfarley88@wesley /m/u/anki-git (master)> ./scripts/build
INFO: Repository pyqt5 instantiated at:
/media/usb/anki-git/WORKSPACE:14:11: in <toplevel>
/media/usb/anki-git/defs.bzl:39:18: in setup_deps
Repository rule install_pyqt5 defined at:
/media/usb/anki-git/pip/pyqt5/defs.bzl:26:32: in <toplevel>
ERROR: An error occurred during the fetch of repository 'pyqt5':
Traceback (most recent call last):
File "/media/usb/anki-git/pip/pyqt5/defs.bzl", line 24, column 13, in _install_pyqt5_impl
fail("failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: failed: Processing /media/usb/anki-git/nasfarley88-cache/pip/wheels/8d/ae/57/40547abf06792b4af4a7d6459061b340b48ed0f4313c10078b/PyQt5-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2014_aarch64.whl
Installing collected packages: pyqt5
Successfully installed pyqt5-5.15.2
Collecting pyqtwebengine==5.15.2
Using cached PyQtWebEngine-5.15.2.tar.gz (48 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
( ERROR: Command errored out with exit status 1:
command: /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/python/python /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b3
39da9c44f7a52da1e/external/com_github_ali5h_rules_pip/third_party/py/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl99wxtjo
cwd: /tmp/pip-install-knv2a94a/pyqtwebengine
Complete output (6 lines):
Querying qmake about your Qt installation...
/usr/bin/qmake -query
These bindings will be built: QtWebEngineCore, QtWebEngine, QtWebEngineWidgets.
Generating the QtWebEngineCore bindings...
_in_process.py: Unable to find file "QtCore/QtCoremod.sip"
----------------------------------------
ERROR: Command errored out with exit status 1: /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/python/python /media/usb/anki-git/nasfarley88-cache/bazel/_
bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/com_github_ali5h_rules_pip/third_party/py/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl99wxtjo Check the logs for full c
ommand output.
Traceback (most recent call last):
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 163, in <module>
main()
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 119, in main
_pkg = install_package(with_version, folder, [])
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 54, in install_package
dist_info = glob.glob(os.path.join(directory, "*.dist-info"))[0]
IndexError: list index out of range
)
ERROR: /media/usb/anki-git/qt/aqt/BUILD.bazel:74:11: //qt/aqt:aqt_with_data depends on @pyqt5//:pkg in repository @pyqt5 which failed to fetch. no such package '@pyqt5//': failed: Processing /media/usb/anki-git/
nasfarley88-cache/pip/wheels/8d/ae/57/40547abf06792b4af4a7d6459061b340b48ed0f4313c10078b/PyQt5-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2014_aarch64.whl
Installing collected packages: pyqt5
Successfully installed pyqt5-5.15.2
Collecting pyqtwebengine==5.15.2
Using cached PyQtWebEngine-5.15.2.tar.gz (48 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
( ERROR: Command errored out with exit status 1:
command: /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/python/python /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b3
39da9c44f7a52da1e/external/com_github_ali5h_rules_pip/third_party/py/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl99wxtjo
cwd: /tmp/pip-install-knv2a94a/pyqtwebengine
Complete output (6 lines):
Querying qmake about your Qt installation...
/usr/bin/qmake -query
These bindings will be built: QtWebEngineCore, QtWebEngine, QtWebEngineWidgets.
Generating the QtWebEngineCore bindings...
_in_process.py: Unable to find file "QtCore/QtCoremod.sip"
----------------------------------------
ERROR: Command errored out with exit status 1: /media/usb/anki-git/nasfarley88-cache/bazel/_bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/python/python /media/usb/anki-git/nasfarley88-cache/bazel/_
bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/com_github_ali5h_rules_pip/third_party/py/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl99wxtjo Check the logs for full c
ommand output.
Traceback (most recent call last):
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 163, in <module>
main()
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 119, in main
_pkg = install_package(with_version, folder, [])
File "/media/usb/anki-git/pip/pyqt5/install_pyqt5.py", line 54, in install_package
dist_info = glob.glob(os.path.join(directory, "*.dist-info"))[0]
IndexError: list index out of range
)
ERROR: Analysis of target '//:dist' failed; build aborted: Analysis failed
INFO: Elapsed time: 13.609s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
nasfarley88@wesley /m/u/anki-git (master) [1]>
This file was present in ./bazel/_bazel_nasfarley88/c06b69b14aa56b339da9c44f7a52da1e/external/pyqt5/PyQt5/bindings/QtCore/QtCoremod.sip
but I couldn’t figure out if this was the right file and/or how to hook it up