[PyQt] error when installing PyQt5

Denis Rouzaud denis.rouzaud at gmail.com
Fri Jan 10 09:45:44 GMT 2020


Here is the complete trace

    Traceback (most recent call last):
212      File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 207, in <module>
213        main()
214      File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 197, in main
215        json_out['return_val'] = hook(**hook_input['kwargs'])
216      File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 67, in prepare_metadata_for_build_wheel
217        config_settings)
218      File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 95, in _get_wheel_metadata_from_wheel
219        whl_basename = backend.build_wheel(metadata_directory,
config_settings)
220      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/sipbuild/api.py",
line 51, in build_wheel
221        project = AbstractProject.bootstrap('pep517')
222      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/sipbuild/abstract_project.py",
line 82, in bootstrap
223        project.setup(pyproject, tool, tool_description)
224      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/sipbuild/project.py",
line 387, in setup
225        self.apply_user_defaults(tool)
226      File "project.py", line 62, in apply_user_defaults
227        super().apply_user_defaults(tool)
228      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/pyqtbuild/project.py",
line 86, in apply_user_defaults
229        super().apply_user_defaults(tool)
230      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/sipbuild/project.py",
line 202, in apply_user_defaults
231        self.builder.apply_user_defaults(tool)
232      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/pyqtbuild/builder.py",
line 76, in apply_user_defaults
233        self._get_qt_configuration()
234      File "/tmp/pip-build-env-lubrgr6z/overlay/lib/python3.7/site-packages/pyqtbuild/builder.py",
line 463, in _get_qt_configuration
235        "v{0}".format(self.qt_version_str))
236    sipbuild.exceptions.UserException


aa


This happens in pyqtbuild/builder.py




Le ven. 10 janv. 2020 à 10:20, Phil Thompson <phil at riverbankcomputing.com>
a écrit :

> On 10/01/2020 09:11, Denis Rouzaud wrote:
> > Hi list,
> >
> > When running on Travis (ubuntu), I get this error:
> >
> > Collecting PyQt5 (from qgis-plugin-ci)
> > 194  Downloading
> >
> https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
> > (3.2MB)
> > 195  Installing build dependencies: started
> > 196  Installing build dependencies: finished with status 'done'
> > 197  Getting requirements to build wheel: started
> > 198  Getting requirements to build wheel: finished with status 'done'
> > 199    Preparing wheel metadata: started
> > 200    Preparing wheel metadata: finished with status 'error'
> > 201    Complete output from command
> > /home/travis/virtualenv/python3.7.1/bin/python
> >
> /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
> > prepare_metadata_for_build_wheel /tmp/tmpi7fqt297:
> > 202    Querying qmake about your Qt installation...
> > 203    /usr/bin/qmake -query
> > 204    Traceback (most recent call last):
> > 205      File
> >
> "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
> > line 64, in prepare_metadata_for_build_wheel
> > 206        hook = backend.prepare_metadata_for_build_wheel
> > 207    AttributeError: module 'sipbuild.api' has no attribute
> > 'prepare_metadata_for_build_wheel'
> > 208
> >
> >
> >
> >
> > Any idea?
>
> That's the error you get from pip when another error occurs. pip's error
> handling is awful which is why I don't recommend using it.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200110/fae5d8df/attachment-0001.html>


More information about the PyQt mailing list