Error: sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
Philippe Fremy
phil at freehackers.org
Tue Nov 16 14:40:19 GMT 2021
Hi,
As part of a tox script, I am getting the below error while trying to
install PyQt5.15.4 . What I don't understand is why pip does not pick
the avilable wheel and uses instead the source package.
The error then is rather cryptic. I suppose it is linked with trying to
build the wheel from source ?
If anybody can help, that would be welcome.
Cheers,
Philippe
[5764] D:\a\PyQt5-stubs\PyQt5-stubs$
'D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\Scripts\python.EXE' -m pip
install -rrequirements/develop.txt 'pip>=20.0'
>.tox\py310\log\py310-1.log
ERROR: invocation failed (exit code 1), logfile:
D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\log\py310-1.log
================================== log start
==================================
Requirement already satisfied: pip>=20.0 in
d:\a\pyqt5-stubs\pyqt5-stubs\.tox\py310\lib\site-packages (21.3.1)
Collecting attrs==21.2.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting iniconfig==1.1.1
Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting mypy==0.910
Downloading mypy-0.910-py3-none-any.whl (2.1 MB)
Collecting mypy-extensions==0.4.3
Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting packaging==21.0
Downloading packaging-21.0-py3-none-any.whl (40 kB)
Collecting pluggy==0.13.1
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting py==1.10.0
Downloading py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting pyparsing==2.4.7
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting pyqt5==5.15.4
Downloading PyQt5-5.15.4.tar.gz (3.3 MB)
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 metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\Scripts\python.EXE'
'D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py'
prepare_metadata_for_build_wheel
'C:\Users\RUNNER~1\AppData\Local\Temp\tmpkfwyt49i'
cwd:
C:\Users\runneradmin\AppData\Local\Temp\pip-install-tficl5sz\pyqt5_f4accc28b17a4530ae4aed86270f5f6a
Complete output (29 lines):
Traceback (most recent call last):
File
"D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py",
line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute
'prepare_metadata_for_build_wheel'
More information about the PyQt
mailing list