Troubles with PyQt5 meta data on install

Hello im fairly new to working with python i was installing my dependencies in my venv and ive run into an issue i’m hoping someone with more experience will be able to assist. ill provide what information i can this is the output from my cmd.exe the top is the error with the meta data and the bottom is obviously my installed dependencies.

`
cmd.exe logs

 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\klanc\pyproj_docprocessing\myvenv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\Users\klanc\pyproj_docprocessing\myvenv\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:\Users\klanc\pyproj_docprocessing\myvenv\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\klanc\AppData\Local\Temp\pip-build-env-323q74q0\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\klanc\AppData\Local\Temp\pip-build-env-323q74q0\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File "C:\Users\klanc\AppData\Local\Temp\pip-build-env-323q74q0\overlay\Lib\site-packages\sipbuild\project.py", line 602, in setup
      self.apply_user_defaults(tool)
    File "C:\Users\klanc\AppData\Local\Temp\pip-install-0ew8m7nb\pyqt5_d2772faa5f39473888c51d9b6a0e1552\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\klanc\AppData\Local\Temp\pip-build-env-323q74q0\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
    File "C:\Users\klanc\AppData\Local\Temp\pip-build-env-323q74q0\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File "C:\Users\klanc\AppData\Local\Temp\pip-build-env-323q74q0\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.
`

`
dependencies

(myvenv) C:\Users\klanc\pyproj_docprocessing\myvenv\Scripts>pip list myvenv
Package Version


annotated-types 0.7.0
blis 0.7.11
catalogue 2.0.10
certifi 2024.7.4
charset-normalizer 3.3.2
click 8.1.7
cloudpathlib 0.18.1
colorama 0.4.6
confection 0.1.5
cymem 2.0.8
en-core-web-sm 3.7.1
idna 3.7
Jinja2 3.1.4
joblib 1.4.2
langcodes 3.4.0
language_data 1.2.0
marisa-trie 1.2.0
markdown-it-py 3.0.0
MarkupSafe 2.1.5
mdurl 0.1.2
murmurhash 1.0.10
nltk 3.8.1
numpy 1.26.4
packaging 24.1
pandas 2.2.2
pdf2image 1.17.0
pillow 10.4.0
pip 24.1.1
preshed 3.0.9
pydantic 2.8.2
pydantic_core 2.20.1
Pygments 2.18.0
PyMuPDF 1.24.7
PyMuPDFb 1.24.6
PyQt5 5.15.10
PyQt5-Qt5 5.15.2
PyQt5-sip 12.13.0
python-dateutil 2.9.0.post0
pytz 2024.1
regex 2024.5.15
requests 2.32.3
rich 13.7.1
scikit-learn 1.5.1
scipy 1.14.0
setuptools 70.2.0
shellingham 1.5.4
six 1.16.0
smart-open 7.0.4
spacy 3.7.5
spacy-legacy 3.0.12
spacy-loggers 1.0.5
srsly 2.4.8
thinc 8.2.5
threadpoolctl 3.5.0
tqdm 4.66.4
typer 0.12.3
typing_extensions 4.12.2
tzdata 2024.1
urllib3 2.2.2
wasabi 1.1.3
weasel 0.4.1
wrapt 1.16.0
`
my apologies for such a long post. but ive tried updating pip, purging pip cache, and installing the pyqt5-tools with the version number and without.

You problem is that you have combination is PyQt5 an a python version that there is not prebuilt package for.

Suggest you use PyQt6 and python 3.12.
If you must use the old PyQt5 then try with python 3.11

1 Like

As a formatting hint for the future: when you use three backticks above and below the code block (to post the code here), do not put spaces between the backticks.

1 Like