Error: sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
Philippe Fremy
phil at freehackers.org
Wed Nov 17 14:55:03 GMT 2021
Hi,
Thanks for helping me. The version of pip is upgraded to the latest
before running the script, so this is not the source of the error.
Here is the rest of the inner exception. I did not notice it at first
but it seems to fail because it can not find qmake. Which is coherent.
But it does not explain why the source package was picked up.
During handling of the above exception, another exception occurred:
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 363, in <module>
main()
File
"D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py",
line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File
"D:\a\PyQt5-stubs\PyQt5-stubs\.tox\py310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py",
line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory,
config_settings)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\sipbuild\api.py",
line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\sipbuild\abstract_project.py",
line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\sipbuild\project.py",
line 587, in setup
self.apply_user_defaults(tool)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-install-tficl5sz\pyqt5_f4accc28b17a4530ae4aed86270f5f6a\project.py",
line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\pyqtbuild\project.py",
line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\sipbuild\project.py",
line 234, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File
"C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-v9lrq0f_\overlay\Lib\site-packages\pyqtbuild\builder.py",
line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding
https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz#sha256=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be
(from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command
errored out with exit status 1:
'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' Check the logs for
full command output.
ERROR: Could not find a version that satisfies the requirement
pyqt5==5.15.4 (from versions: 5.14.0, 5.14.1, 5.14.2, 5.15.0, 5.15.1,
5.15.2, 5.15.3, 5.15.4, 5.15.5, 5.15.6)
ERROR: No matching distribution found for pyqt5==5.15.4
=================================== log end
===================================
ERROR: could not install deps [-rrequirements/develop.txt, pip>=20.0]; v
=
InvocationError("'D:\\a\\PyQt5-stubs\\PyQt5-stubs\\.tox\\py310\\Scripts\\python.EXE'
-m pip install -rrequirements/develop.txt 'pip>=20.0'", 1)
___________________________________ summary
___________________________________
ERROR: py310: could not install deps [-rrequirements/develop.txt,
pip>=20.0]; v =
InvocationError("'D:\\a\\PyQt5-stubs\\PyQt5-stubs\\.tox\\py310\\Scripts\\python.EXE'
-m pip install -rrequirements/develop.txt 'pip>=20.0'", 1)
Error: Process completed with exit code 1.
Cheers,
Philippe
Le 16.11.2021 15:54, Benoit Pierre a écrit :
> On Tue, Nov 16, 2021 at 2:40 PM Philippe Fremy <phil at freehackers.org>
> wrote:
>
>> 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.
>
> This might be because your version of pip is too old.
>
>> The error then is rather cryptic. I suppose it is linked with trying
>> to
>> build the wheel from source ?
>
> This is a red herring, have you checked the rest of the output? (Like
> the inner exception)
>
> Cheers,
>
> --
> A: Because it destroys the flow of conversation.
> Q: Why is top posting dumb?
More information about the PyQt
mailing list