Skip to content

Mac / Installing QCustomPlot_PyQt5 error #10

@therobinojones

Description

@therobinojones

When trying to install ‘QCustomPlot_PyQt5’ to my environment It’s always crashing with the error below:

installing with pip like this > pip install QCustomPlot_PyQt5

Not sure why it’s looking for pyqt6 when installing QCustomPlot_PyQt5? I installed pyqt6 but same exact error.

I also tried compiling a version using the information on this github but it throws a pyqt6 error as well

(RobinoScanEnv) user@MacStudio QCustomPlot-PyQt % pip install QCustomPlot_PyQt5 
Collecting QCustomPlot_PyQt5
  Using cached QCustomPlot_PyQt5-2.1.1.2.tar.gz (487 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
  ╰─> [19 lines of output]
      Querying qmake about your Qt installation...
      
      Using Python version 3.10.14.
      Traceback (most recent call last):
        File "/Users/user/Documents/Python/Project/RobinoScanEnv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/user/Documents/Python/Project/RobinoScanEnv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/user/Documents/Python/Project/RobinoScanEnv/lib/python3.10/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 "/private/var/folders/3z/random_path/T/pip-build-env-abc123/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
        File "/private/var/folders/3z/random_path/T/pip-build-env-abc123/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 92, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "/private/var/folders/3z/random_path/T/pip-build-env-abc123/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 603, in setup
          self.update(tool)
        File "/private/var/folders/3z/random_path/T/pip-install-xyz789/qcustomplot-pyqt5_123456789/project.py", line 41, in update
          import PyQt6 as PyQt
      ModuleNotFoundError: No module named 'PyQt6'
      [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions