Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. pip install pyqt5 gives errors
Forum Updated to NodeBB v4.3 + New Features

pip install pyqt5 gives errors

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MxButtmunch
    wrote on last edited by
    #1

    Hello,
    I am trying to install pyqt5 to my rapsbery pi 4 and I keep encountering errors. I would appreciate some help.

    This is what it is saying:

    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    Collecting pyqt5-tools
    Downloading pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
    Downloading pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
    Collecting python-dotenv
    Downloading https://www.piwheels.org/simple/python-dotenv/python_dotenv-0.20.0-py3-none-any.whl (17 kB)
    Collecting pyqt5==5.15.4
    Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
    command: /usr/bin/python3 /tmp/tmpfcl5u1dh_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_1hq1rbr
    cwd: /tmp/pip-install-xk_nj42_/pyqt5_486fac8581a5450798f8daec5209b9f1
    Complete output (37 lines):
    Querying qmake about your Qt installation...
    /usr/bin/qmake -query
    Traceback (most recent call last):
    File "/tmp/tmpfcl5u1dh_in_process.py", line 126, 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'

    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/tmp/tmpfcl5u1dh_in_process.py", line 280, in <module>
        main()
      File "/tmp/tmpfcl5u1dh_in_process.py", line 263, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/tmp/tmpfcl5u1dh_in_process.py", line 130, in prepare_metadata_for_build_wheel
        return _get_wheel_metadata_from_wheel(backend, metadata_directory,
      File "/tmp/tmpfcl5u1dh_in_process.py", line 159, in _get_wheel_metadata_from_wheel
        whl_basename = backend.build_wheel(metadata_directory, config_settings)
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 51, in build_wheel
        project = AbstractProject.bootstrap('pep517')
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
        project.setup(pyproject, tool, tool_description)
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 594, in setup
        self.apply_user_defaults(tool)
      File "project.py", line 63, in apply_user_defaults
        super().apply_user_defaults(tool)
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
        super().apply_user_defaults(tool)
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 241, in apply_user_defaults
        self.builder.apply_user_defaults(tool)
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 76, in apply_user_defaults
        self._get_qt_configuration()
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 495, in _get_qt_configuration
        for line in project.read_command_pipe([self.qmake, '-query']):
      File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 557, in read_command_pipe
        raise UserException(
    sipbuild.exceptions.UserException
    ----------------------------------------
    

    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: /usr/bin/python3 /tmp/tmpfcl5u1dh_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_1hq1rbr Check the logs for full command output.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's a question you should bring to the author of the PyQt5 bindings.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved