Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while doing 'pip install Pyqt5-tools' #100

Closed
BIVANBLAZE13 opened this issue Jan 3, 2022 · 23 comments
Closed

Error while doing 'pip install Pyqt5-tools' #100

BIVANBLAZE13 opened this issue Jan 3, 2022 · 23 comments

Comments

@BIVANBLAZE13
Copy link

BIVANBLAZE13 commented Jan 3, 2022

Hello, I am using Pycharm, Python 3.10.0, windows 10, and trying to install pyqt5 designer via the pyqt5-tools. If someone can help me fix it, that would be helpful.

Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4
  Using cached 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'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: click in c:\users\bivan\pyproj\pythonproject545\venv\lib\site-packages (from pyqt5-tools) (8.0.3)
Collecting pyqt5==5.15.3
  Using cached PyQt5-5.15.3.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'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.2
  Using cached PyQt5-5.15.2.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'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.2.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.0.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.1
  Using cached PyQt5-5.15.1.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'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.1.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.3.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.3.0.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.1.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.0
  Using cached PyQt5-5.15.0.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'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.0.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.3.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.3.0.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.14.2
  Using cached PyQt5-5.14.2.tar.gz (3.2 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.14.2.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.3.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.3.0.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.2.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.14.1
  Using cached PyQt5-5.14.1.tar.gz (3.2 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.14.1.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.3.0.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.3.0.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.1.2-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.14.0.3.2-py3-none-any.whl (29 kB)
  Using cached pyqt5_tools-5.14.0.3.1-py3-none-any.whl (28 kB)
Collecting pyqt5==5.14.0
  Using cached PyQt5-5.14.0.tar.gz (3.2 MB)

  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpgyv3yrbi'
       cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_3c4b2d54f6b74d49864776380cd9bc3e
  Complete output (29 lines):
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_3c4b2d54f6b74d49864776380cd9bc3e\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\overlay\Lib\site-packages\sipbuild\project.py", line 234, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mmh0duuy\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: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpgyv3yrbi' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpm5n5pzfa'
       cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_98f615cd400d461c9e4e5feccb14733d
  Complete output (29 lines):
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_98f615cd400d461c9e4e5feccb14733d\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\overlay\Lib\site-packages\sipbuild\project.py", line 234, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-zeirwqpr\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/6e/86/d715e71771cece0e060f2ebab20f3ded067b08a0927dfb3143530cae8098/PyQt5-5.15.3.tar.gz#sha256=965ba50e7029b37f218a54ace24e87c77db3e5a9f0b83baeb21fb57b4154b838 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command errored out with exit status 1: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpm5n5pzfa' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmp6qvx4c4z'
       cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_0ec1277ab5dd45c8ae41f96ac1fcc922
  Complete output (29 lines):
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_0ec1277ab5dd45c8ae41f96ac1fcc922\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\overlay\Lib\site-packages\sipbuild\project.py", line 234, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-9u3klfzv\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/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/PyQt5-5.15.2.tar.gz#sha256=372b08dc9321d1201e4690182697c5e7ffb2e0770e6b4a45519025134b12e4fc (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmp6qvx4c4z' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmp6f6_y3j8'
       cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_9f2806cbc4e74289b6da4d65bec43f04
  Complete output (29 lines):
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_9f2806cbc4e74289b6da4d65bec43f04\project.py", line 64, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\overlay\Lib\site-packages\sipbuild\project.py", line 234, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-mbeq7h4y\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/1d/31/896dc3dfb6c81c70164019a6cbba6ab037e3af7653d9ca60ccc874ee4c27/PyQt5-5.15.1.tar.gz#sha256=d9a76b850246d08da9863189ecb98f6c2aa9b4d97a3e85e29330a264aed0f9a1 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmp6f6_y3j8' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpnls_9_8n'
       cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_9a67b32bb3084d228af7709bc02c85f4
  Complete output (29 lines):
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Bivan\pyproj\pythonProject545\venv\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\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-install-1w7ruxd1\pyqt5_9a67b32bb3084d228af7709bc02c85f4\project.py", line 62, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\overlay\Lib\site-packages\sipbuild\project.py", line 234, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-rifbvkaf\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/8c/90/82c62bbbadcca98e8c6fa84f1a638de1ed1c89e85368241e9cc43fcbc320/PyQt5-5.15.0.tar.gz#sha256=c6f75488ffd5365a65893bc64ea82a6957db126fbfe33654bcd43ae1c30c52f9 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\pyproj\pythonProject545\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpnls_9_8n' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\AppData\Local\Temp\pip-standalone-pip-z7do5c7j\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q6j5nm1y\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.0.1, <6' 'PyQt-builder >=1.1.0, <2'
       cwd: None
  Complete output (178 lines):
  Collecting sip<6,>=5.0.1
    Using cached sip-5.5.0.tar.gz (1.1 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 'done'
  Collecting PyQt-builder<2,>=1.1.0
    Using cached PyQt_builder-1.12.2-py3-none-any.whl (5.6 MB)
  Collecting packaging
    Using cached packaging-21.3-py3-none-any.whl (40 kB)
  Collecting toml
    Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  Collecting PyQt-builder<2,>=1.1.0
    Using cached PyQt_builder-1.12.1-py3-none-any.whl (5.6 MB)
    Using cached PyQt_builder-1.12.0-py3-none-any.whl (5.6 MB)
    Using cached PyQt_builder-1.11.0-py3-none-any.whl (5.6 MB)
  Collecting pyparsing!=3.0.5,>=2.0.2
    Using cached pyparsing-3.0.6-py3-none-any.whl (97 kB)
  Building wheels for collected packages: sip
    Building wheel for sip (pyproject.toml): started
    Building wheel for sip (pyproject.toml): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\AppData\Local\Temp\tmpbohkxebt_in_process.py' build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmpxt9yh9fg'
         cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-czrgzrkr\sip_135117084314485b9247b869c378bf28
    Complete output (147 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    creating build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\abstract_builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\abstract_project.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\api.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\argument_parser.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\bindings.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\buildable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\configurable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\distutils_builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\exceptions.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\helpers.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\installable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\project.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\pyproject.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\py_versions.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\version.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\__init__.py -> build\lib.win-amd64-3.10\sipbuild
    creating build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\distinfo.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\main.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\__init__.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    creating build\lib.win-amd64-3.10\sipbuild\legacy
    copying sipbuild\legacy\sip5.py -> build\lib.win-amd64-3.10\sipbuild\legacy
    copying sipbuild\legacy\__init__.py -> build\lib.win-amd64-3.10\sipbuild\legacy
    creating build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\abi_version.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\main.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\module.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\__init__.py -> build\lib.win-amd64-3.10\sipbuild\module
    creating build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\build.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\install.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\sdist.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\wheel.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\__init__.py -> build\lib.win-amd64-3.10\sipbuild\tools
    creating build\lib.win-amd64-3.10\sipbuild\module\source
    creating build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\apiversions.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\array.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\array.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\bool.cpp -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\descriptors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\int_convertors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\MANIFEST.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\objmap.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\pyproject.toml -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\qtlib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\README.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\setup.cfg.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\setup.py.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.h.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.pyi -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.rst.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sipint.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\siplib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\threads.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\voidptr.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    creating build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\apiversions.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\array.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\array.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\bool.cpp -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\descriptors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\int_convertors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\MANIFEST.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\objmap.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\pyproject.toml -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\qtlib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\README.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\setup.cfg.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\setup.py.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.h.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.pyi -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.rst.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sipint.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\siplib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\threads.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\voidptr.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    warning: build_py: byte-compiling is disabled, skipping.
  
    running build_ext
    Traceback (most recent call last):
      File "C:\Users\Bivan\AppData\Local\Temp\tmpbohkxebt_in_process.py", line 363, in <module>
        main()
      File "C:\Users\Bivan\AppData\Local\Temp\tmpbohkxebt_in_process.py", line 345, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "C:\Users\Bivan\AppData\Local\Temp\tmpbohkxebt_in_process.py", line 261, in build_wheel
        return _build_backend().build_wheel(wheel_directory, config_settings,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\build_meta.py", line 230, in build_wheel
        return self._build_with_temp_dir(['bdist_wheel'], '.whl',
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
        self.run_setup()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\build_meta.py", line 267, in run_setup
        super(_BuildMetaLegacyBackend,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 49, in <module>
        setup(
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\__init__.py", line 155, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
        return run_commands(dist)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
        dist.run_commands()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
        self.run_command('build')
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 79, in run
        _build_ext.run(self)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
        self.build_extensions()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
        self._build_extensions_serial()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
        self.build_extension(ext)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
        _build_ext.build_extension(self, ext)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
        objects = self.compiler.compile(sources,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
        self.initialize()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q3_82bdx\overlay\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
        raise distutils.errors.DistutilsPlatformError(
    setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
    ERROR: Failed building wheel for sip
  Failed to build sip
  ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/4d/81/b9a66a28fb9a7bbeb60e266f06ebc4703e7e42b99e3609bf1b58ddd232b9/PyQt5-5.14.2.tar.gz#sha256=bd230c6fd699eabf1ceb51e13a8b79b74c00a80272c622427b80141a22269eb0 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\AppData\Local\Temp\pip-standalone-pip-z7do5c7j\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\Bivan\AppData\Local\Temp\pip-build-env-q6j5nm1y\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.0.1, <6' 'PyQt-builder >=1.1.0, <2' Check the logs for full command output.
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\AppData\Local\Temp\pip-standalone-pip-sux400mn\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\Bivan\AppData\Local\Temp\pip-build-env-8mtp7rh6\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.0.1, <6' 'PyQt-builder >=1.1.0, <2'
       cwd: None
  Complete output (178 lines):
  Collecting sip<6,>=5.0.1
    Using cached sip-5.5.0.tar.gz (1.1 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 'done'
  Collecting PyQt-builder<2,>=1.1.0
    Using cached PyQt_builder-1.12.2-py3-none-any.whl (5.6 MB)
  Collecting toml
    Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  Collecting packaging
    Using cached packaging-21.3-py3-none-any.whl (40 kB)
  Collecting PyQt-builder<2,>=1.1.0
    Using cached PyQt_builder-1.12.1-py3-none-any.whl (5.6 MB)
    Using cached PyQt_builder-1.12.0-py3-none-any.whl (5.6 MB)
    Using cached PyQt_builder-1.11.0-py3-none-any.whl (5.6 MB)
  Collecting pyparsing!=3.0.5,>=2.0.2
    Using cached pyparsing-3.0.6-py3-none-any.whl (97 kB)
  Building wheels for collected packages: sip
    Building wheel for sip (pyproject.toml): started
    Building wheel for sip (pyproject.toml): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 'C:\Users\Bivan\AppData\Local\Temp\tmpdkbm958a_in_process.py' build_wheel 'C:\Users\Bivan\AppData\Local\Temp\tmph1184h_0'
         cwd: C:\Users\Bivan\AppData\Local\Temp\pip-install-u2gbtt0y\sip_e950418f7b954a5fa76b765aee8028d4
    Complete output (147 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    creating build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\abstract_builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\abstract_project.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\api.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\argument_parser.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\bindings.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\buildable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\configurable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\distutils_builder.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\exceptions.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\helpers.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\installable.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\project.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\pyproject.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\py_versions.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\version.py -> build\lib.win-amd64-3.10\sipbuild
    copying sipbuild\__init__.py -> build\lib.win-amd64-3.10\sipbuild
    creating build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\distinfo.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\main.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    copying sipbuild\distinfo\__init__.py -> build\lib.win-amd64-3.10\sipbuild\distinfo
    creating build\lib.win-amd64-3.10\sipbuild\legacy
    copying sipbuild\legacy\sip5.py -> build\lib.win-amd64-3.10\sipbuild\legacy
    copying sipbuild\legacy\__init__.py -> build\lib.win-amd64-3.10\sipbuild\legacy
    creating build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\abi_version.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\main.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\module.py -> build\lib.win-amd64-3.10\sipbuild\module
    copying sipbuild\module\__init__.py -> build\lib.win-amd64-3.10\sipbuild\module
    creating build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\build.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\install.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\sdist.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\wheel.py -> build\lib.win-amd64-3.10\sipbuild\tools
    copying sipbuild\tools\__init__.py -> build\lib.win-amd64-3.10\sipbuild\tools
    creating build\lib.win-amd64-3.10\sipbuild\module\source
    creating build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\apiversions.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\array.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\array.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\bool.cpp -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\descriptors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\int_convertors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\MANIFEST.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\objmap.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\pyproject.toml -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\qtlib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\README.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\setup.cfg.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\setup.py.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.h.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.pyi -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sip.rst.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\sipint.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\siplib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\threads.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    copying sipbuild\module\source\12.7\voidptr.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.7
    creating build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\apiversions.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\array.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\array.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\bool.cpp -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\descriptors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\int_convertors.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\MANIFEST.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\objmap.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\pyproject.toml -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\qtlib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\README.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\setup.cfg.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\setup.py.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.h.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.pyi -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sip.rst.in -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\sipint.h -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\siplib.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\threads.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    copying sipbuild\module\source\12.8\voidptr.c -> build\lib.win-amd64-3.10\sipbuild\module\source\12.8
    warning: build_py: byte-compiling is disabled, skipping.
  
    running build_ext
    Traceback (most recent call last):
      File "C:\Users\Bivan\AppData\Local\Temp\tmpdkbm958a_in_process.py", line 363, in <module>
        main()
      File "C:\Users\Bivan\AppData\Local\Temp\tmpdkbm958a_in_process.py", line 345, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "C:\Users\Bivan\AppData\Local\Temp\tmpdkbm958a_in_process.py", line 261, in build_wheel
        return _build_backend().build_wheel(wheel_directory, config_settings,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\build_meta.py", line 230, in build_wheel
        return self._build_with_temp_dir(['bdist_wheel'], '.whl',
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
        self.run_setup()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\build_meta.py", line 267, in run_setup
        super(_BuildMetaLegacyBackend,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 49, in <module>
        setup(
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\__init__.py", line 155, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
        return run_commands(dist)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
        dist.run_commands()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
        self.run_command('build')
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
        cmd_obj.run()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 79, in run
        _build_ext.run(self)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
        self.build_extensions()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
        self._build_extensions_serial()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
        self.build_extension(ext)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
        _build_ext.build_extension(self, ext)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
        objects = self.compiler.compile(sources,
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
        self.initialize()
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "C:\Users\Bivan\AppData\Local\Temp\pip-build-env-ksea16ni\overlay\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
        raise distutils.errors.DistutilsPlatformError(
    setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
    ERROR: Failed building wheel for sip
  Failed to build sip
  ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
  ----------------------------------------
WARNING: Discarding 

https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-

5.14.1.tar.gz#sha256=2f230f2dbd767099de7a0cb915abdf0cbc3256a0b5bb910eb09b99117db7a65b (from 

https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: 

'C:\Users\Bivan\pyproj\pythonProject545\venv\Scripts\python.exe' 

'C:\Users\Bivan\AppData\Local\Temp\pip-standalone-pip-sux400mn\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 

'C:\Users\Bivan\AppData\Local\Temp\pip-build-env-8mtp7rh6\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.0.1, <6' 'PyQt-builder >=1.1.0, <2' Check the logs for full command output.

ERROR: pyqt5==5.14.0 from 

https://files.pythonhosted.org/packages/7c/5b/e760ec4f868cb77cee45b4554bf15d3fe6972176e89c4e3faac941213694/PyQt5-

5.14.0.tar.gz#sha256=0145a6b7de15756366decb736c349a0cb510d706c83fda5b8cd9e0557bc1da72 (from pyqt5-tools) has a pyproject.toml file that does not comply with PEP 518: 'build-system.requires' contains an invalid requirement: 'sip >=5.0.1 <6'
@altendky
Copy link
Owner

altendky commented Jan 4, 2022

I didn't track through all the pieces but pip is doing some backtracking to older versions to try to satisfy some constraint and then also trying to build pyqt5==5.14.0 and falling apart on that. You probably don't want to be building PyQt. :]

What command did you run? What are you looking for in terms of versions? Do you need to use PyQt5 instead of PyQt6?

@liudonghua123
Copy link

I have the same erros.

C:\Users\Liu.D.H>pip install PyQt5
Collecting PyQt5
  Using cached PyQt5-5.15.6-cp36-abi3-win_amd64.whl (6.7 MB)
Collecting PyQt5-Qt5>=5.15.2
  Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
Collecting PyQt5-sip<13,>=12.8
  Using cached PyQt5_sip-12.9.1-cp310-cp310-win_amd64.whl (77 kB)
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.1

C:\Users\Liu.D.H>pip install PyQt5-tools
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
  Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
Collecting click
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.2
  Using cached PyQt5-5.15.2.tar.gz (3.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\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'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\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\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
          project = AbstractProject.bootstrap('pep517')
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-lmck1ydb\pyqt5_d337c407e37e43469adb9b9b0124b1fd\project.py", line 63, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

C:\Users\Liu.D.H>python -V
Python 3.10.2

C:\Users\Liu.D.H>pip --version
pip 22.0.3 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

C:\Users\Liu.D.H>pip install --upgrade pip
Requirement already satisfied: pip in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (22.0.3)

C:\Users\Liu.D.H>

@Bachewalchandu
Copy link

I have the same erros.

C:\Users\Liu.D.H>pip install PyQt5
Collecting PyQt5
  Using cached PyQt5-5.15.6-cp36-abi3-win_amd64.whl (6.7 MB)
Collecting PyQt5-Qt5>=5.15.2
  Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
Collecting PyQt5-sip<13,>=12.8
  Using cached PyQt5_sip-12.9.1-cp310-cp310-win_amd64.whl (77 kB)
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.1

C:\Users\Liu.D.H>pip install PyQt5-tools
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
  Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
Collecting click
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting PyQt5-tools
  Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
  Using cached pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.2
  Using cached PyQt5-5.15.2.tar.gz (3.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\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'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\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\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
          project = AbstractProject.bootstrap('pep517')
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-lmck1ydb\pyqt5_d337c407e37e43469adb9b9b0124b1fd\project.py", line 63, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

C:\Users\Liu.D.H>python -V
Python 3.10.2

C:\Users\Liu.D.H>pip --version
pip 22.0.3 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

C:\Users\Liu.D.H>pip install --upgrade pip
Requirement already satisfied: pip in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (22.0.3)

C:\Users\Liu.D.H>

Yup! I got same issue while installing pyqt5-tools in command , can any one help us to solve the problem

@Kirchoff-max
Copy link

Yeah I have the same errors while installing pyqt5-tools using 'pip install PyQt5-tools'

C:\WINDOWS\system32>pip install PyQt5-tools
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4
Downloading PyQt5-5.15.4.tar.gz (3.3 MB)
---------------------------------------- 3.3/3.3 MB 40.1 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\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'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\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\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
      project = AbstractProject.bootstrap('pep517')
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-install-gn00vu06\pyqt5_a407ac430c8e422da60abee46016e5c8\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
      raise PyProjectOptionException('qmake',
  sipbuild.pyproject.PyProjectOptionException
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@abulgher
Copy link

I have the same problem. My guess is that we are on python 3.10 and apparently the wheel binary build is only up to 3.9, so it falls back to the source and probably we are missing several development modules to get to the end.

@abulgher
Copy link

abulgher commented Jul 1, 2022

I have tried to download and install from local the wheel file. I got the following error message:

(simpleenv) c:\Users\Antonio\Documents\pyenv\simpleenv>pip install "c:\Users\Antonio\Downloads\pyqt5_tools-5.15.4.3.2-py3-none-any.whl"
Processing c:\users\antonio\downloads\pyqt5_tools-5.15.4.3.2-py3-none-any.whl
Collecting python-dotenv
  Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
ERROR: Could not find a version that satisfies the requirement pyqt5-plugins<5.15.4.3,>=5.15.4.2.2 (from pyqt5-tools) (from versions: none)
ERROR: No matching distribution found for pyqt5-plugins<5.15.4.3,>=5.15.4.2.2

Due to this error pip it is trying to build from source and then failing.

@liudonghua123
Copy link

@Bachewalchandu @Kirchoff-max @altendky Maybe you could try my temporary workarounds commentted on #98.

@abulgher
Copy link

abulgher commented Jul 1, 2022 via email

@blacknibolion
Copy link

having the same issue with django project.

@wuddz-devs
Copy link

I'm having the same issue as well, I read I'd have to install an earlier version of python, which in this day and age shouldn't be the case tbh.

@abulgher
Copy link

abulgher commented Sep 9, 2022

@wuddz-devs instead of installing an older version of python (that is very annoying) you can follow the procedure suggested by @AndrewUshakov here #98 (comment)

@William20101209
Copy link

The same issue also happened when I'm using Python 3.11 and another site:

Collecting pyqt5-tools
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/70/a25aab849a5e38ae78716acde1f917a14d9d819c8600bbb8cf536781f7c5/pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyqt5==5.15.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz (3.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, 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 "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 148, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\lingz\AppData\Local\Temp\pip-install-xzz8tsgk\pyqt5_72e0c4cd1f6b4d94b9f8bf994dd3902c\project.py", line 63, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

So it happens that PyQt5's wheel only supports Python 3.6~3.9 (pip tries to download the .tar.gz file), and when you check pypi, you see that PyQt6 has the same problem.(only supports Python 3.7)

@liudonghua123
Copy link

@William20101209 You can also try my temp workaround, see #108. Both of python 3.10, 3.11 support.

@R1veltm
Copy link

R1veltm commented Jan 30, 2023

I have problems with downloading the pyqt5-tools (Here u tried to download pyqt6-tools, but it gives me the same error)
Can someone help me?

C:\Users\mikro>pip install pyqt6-tools
Collecting pyqt6-tools
  Downloading pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.21.1-py3-none-any.whl (19 kB)
Collecting click
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 1.4 MB/s eta 0:00:00
Collecting pyqt6==6.1.0
  Using cached PyQt6-6.1.0.tar.gz (946 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\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'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\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\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
        File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\mikro\AppData\Local\Temp\pip-install-f0701yh8\pyqt6_19d19e38a44444ec8a5619341b7a07fb\project.py", line 60, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@ACHREF999
Copy link

same issue

@MichaelWoodc
Copy link

MichaelWoodc commented Mar 15, 2023

Edit:
I can't recall everything I may have done, but it seems you can get around it on a raspberry pi by using
sudo apt install

and not using pip.

Original:
Same Issue here giys! I'm using python 3.8.10, if I am inputting my commands properly.

`Collecting pyqt5
Downloading PyQt5-5.15.9.tar.gz (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 462.5 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 585, in setup
self.apply_user_defaults(tool)
File "/tmp/pip-install-1fsaj9qr/pyqt5_019219f7d984473d91cd2ceeb5eac65d/project.py", line 68, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/tmp/pip-build-env-rb1g08lr/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
science@raspberrypi:~ $
`

We shell see if I can come up with a solution.

@altendky
Copy link
Owner

Hey all, this is a common note I'm adding to several issues.

I apologize for the hassle you have all dealt with around this project. I don't work with Qt anymore and every time I've come back to this I have run into various problems trying to get it going again. This time I made it through the five days of work to get the release out (fingers crossed that it actually works). It would be great to get some community involvement around updating and debugging whatever issues come up. Maybe the next Python, Qt, or PyQt release will provide an opportunity for someone to offer that. Maybe I'll find time to continue cleaning this up so it's a bit more maintainable. If interested, there's been some discussion about the project at #110.

In an effort to make it easier to monitor issues around the latest release I am closing this issue. Discussion can continue if still applicable, but I want to make it easier to move forward. If there are issues with the new releases, please open new issues.

Things to be aware of that may ease some cases:

  • If you just want the Qt applications, you can directly use qt-tools which provides helpers around qt-applications. This skips the PyQt specific layers. You won't have access to the plugins, such as for showing custom PyQt Designer widget plugins in Designer, but you also won't have the hassle of needing a version matching your PyQt version. At least not quite as closely.
  • If I once again fail to maintain this, or you just want a specific version I didn't include, you can set environment variables to select the versions when building. PYQT_VERSION=6.5.0 QT_VERSION=6.5.2 venv/bin/pip install git+https://github.com/altendky/qt-applications@v2.3 for example would try to build and install qt-applications v2.3 including (a theoretical future) PyQt version 6.5.0 and Qt 6.5.2. I'm sure there are corners around this, but it would be relevant.

@abhitiwari978
Copy link

Issue while installing PyQt5Designer

pip install pyqt5-tools
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
Collecting click (from pyqt5-tools)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting pyqt5==5.15.9 (from pyqt5-tools)
Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4 (from pyqt5-tools)
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Users\gopal\AppData\Roaming\Python\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\gopal\AppData\Roaming\Python\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gopal\AppData\Roaming\Python\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\gopal\AppData\Local\Temp\pip-install-frh0oybk\pyqt5_3d1e9fa8a29943739fa9d51d03cb785a\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\gopal\AppData\Local\Temp\pip-build-env-oyusrlrg\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@SanjeevNayak234
Copy link

Same issue while try to install pyqt5
C:\Windows\System32>pip install pyqt5==5.15.3
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5==5.15.3
Downloading PyQt5-5.15.3.tar.gz (3.3 MB)
---------------------------------------- 3.3/3.3 MB 3.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-aslyckom\pyqt5_09670a9c0f92430a9c6f251db2d58f8c\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-i46fsnvi\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

C:\Windows\System32>pip install pyqt5-tools==5.15.3.3.1
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5-tools==5.15.3.3.1
Downloading pyqt5_tools-5.15.3.3.1-py3-none-any.whl.metadata (8.3 kB)
Requirement already satisfied: click in c:\users\asus\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from pyqt5-tools==5.15.3.3.1) (8.1.7)
Collecting pyqt5==5.15.3 (from pyqt5-tools==5.15.3.3.1)
Using cached PyQt5-5.15.3.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-ak9vdpbt\pyqt5_7e6cd1051a264824ae14be1b74f10aed\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-26fuv4pf\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@Kiran-pro2001
Copy link

Same issue, kindly help -

pip install PyQt5-tools
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
Collecting click (from PyQt5-tools)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting pyqt5==5.15.9 (from PyQt5-tools)
Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
Collecting pyqt5==5.15.4 (from PyQt5-tools)
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\kk984\AppData\Local\Temp\pip-install-jz645r53\pyqt5_c5d0862e165241fda3cadc6b8a86609a\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\kk984\AppData\Local\Temp\pip-build-env-roreoejd\overlay\Lib\site-packages\pyqtbuild\builder.py", line 50, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@slmgrerr
Copy link

Well, it seems that PyQT5-tools and PyQT6-tools has the same problem. It seems to be a fatal development error, existing across versions. But the error gived by pip does not seem to be just a permission error, since I'm running the installation on an admin command prompt.

`Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Querying qmake about your Qt installation...
Traceback (most recent call last):
File "D:\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "D:\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fsp4wxj0\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fsp4wxj0\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fsp4wxj0\overlay\Lib\site-packages\sipbuild\project.py", line 603, in setup
self.update(tool)
File "C:\Users\Admin\AppData\Local\Temp\pip-install-iqf45j5p\pyqt6_526e80f415424cd1ad697a028a32daec\project.py", line 157, in update
raise UserException(
sipbuild.exceptions.UserException
Traceback (most recent call last):
File "D:\Python\Python312\Lib\shutil.py", line 650, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] Another program is using the code, the process can't reach it.: 'C:\Users\Admin\AppData\Local\Temp\tmptzg7typt'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "D:\Python\Python312\Lib\tempfile.py", line 905, in onexc
      _os.unlink(path)
  PermissionError: [WinError 5] Visiting denied.: 'C:\\Users\\lingz\\AppData\\Local\\Temp\\tmptzg7typt'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "D:\Python\Python312\Lib\weakref.py", line 666, in _exitfunc
      f()
    File "D:\Python\Python312\Lib\weakref.py", line 590, in __call__
      return info.func(*info.args, **(info.kwargs or {}))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Python\Python312\Lib\tempfile.py", line 935, in _cleanup
      cls._rmtree(name, ignore_errors=ignore_errors)
    File "D:\Python\Python312\Lib\tempfile.py", line 930, in _rmtree
      _shutil.rmtree(name, onexc=onexc)
    File "D:\Python\Python312\Lib\shutil.py", line 820, in rmtree
      return _rmtree_unsafe(path, onexc)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Python\Python312\Lib\shutil.py", line 652, in _rmtree_unsafe
      onexc(os.rmdir, path, err)
    File "D:\Python\Python312\Lib\tempfile.py", line 920, in onexc
      cls._rmtree(path, ignore_errors=ignore_errors,
    File "D:\Python\Python312\Lib\tempfile.py", line 930, in _rmtree
      _shutil.rmtree(name, onexc=onexc)
    File "D:\Python\Python312\Lib\shutil.py", line 820, in rmtree
      return _rmtree_unsafe(path, onexc)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Python\Python312\Lib\shutil.py", line 652, in _rmtree_unsafe
      onexc(os.rmdir, path, err)
    File "D:\Python\Python312\Lib\shutil.py", line 650, in _rmtree_unsafe
      os.rmdir(path)
  PermissionError: [WinError 32] Another program is using the code, the process can't reach it.: 'C:\\Users\\Admin\\AppData\\Local\\Temp\\tmptzg7typt'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

From what I had known, PyQT5-tools and PyQT6-tools both have this problem. But it seemed to be like that because python is trying to build its own wheel for the lib. So @Kiran-pro2001 try using the #108 for current substitute support for both PyQT5-tools and PyQT6-tools.

@slmgrerr
Copy link

slmgrerr commented Apr 27, 2024

And I suppose this issue is already closed, guys. Try messing around the other uploads such as the #108 I mentioned or the #110 in working so your problem can be solved.

@ErisXiang
Copy link

ErisXiang commented Jul 4, 2024

I found that, dont use the newest version of python will solve the issues!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests