Mac / Installing QCustomPlot_PyQt5 error

I’m porting a program I made on Windows to my new Mac Studio with M2 cpu and the ‘QCustomPlot_PyQt5’ dependency is giving me a hard time.

All other dependencies installed perfectly but 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

(RobinoScanEnv) user@MacStudio QCustomPlot-PyQt % pip install QCustomPlot_PyQt5 
Collecting QCustomPlot_PyQt5
  Using cached QCustomPlot_PyQt5- (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/", line 353, in <module>
        File "/Users/user/Documents/Python/Project/RobinoScanEnv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/", 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/", 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/", 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/", 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/", line 603, in setup
        File "/private/var/folders/3z/random_path/T/pip-install-xyz789/qcustomplot-pyqt5_123456789/", 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.

I’m working with pyQt5 not 6… not sure why it’s looking for pyqt6.

So I installed pyqt6 but same exact error, here’s the list of dependencies:

(RobinoScanEnv) user@MacStudio QCustomPlot-PyQt % pip list
Package                 Version
----------------------- -----------
contourpy               1.2.1
cycler                  0.12.1
fonttools               4.51.0
kiwisolver              1.4.5
matplotlib              3.9.0
MouseInfo               0.1.3
numpy                   1.26.4
packaging               24.0
pillow                  10.3.0
pip                     23.0.1
PyAutoGUI               0.9.54
PyGetWindow             0.0.9
PyMsgBox                1.0.9
pyobjc-core             10.2
pyobjc-framework-Cocoa  10.2
pyobjc-framework-Quartz 10.2
pyparsing               3.1.2
pyperclip               1.8.2
PyQt5                   5.15.10
PyQt5-Qt5               5.15.13
PyQt5-sip               12.13.0
PyQt6                   6.7.0
PyQt6-Qt6               6.7.0
PyQt6-sip               13.6.0
pyqtgraph               0.13.7
PyRect                  0.2.0
PyScreeze               0.1.30
pyserial                3.5
python-dateutil         2.9.0.post0
pytweening              1.2.0
rubicon-objc            0.4.9
setuptools              65.5.0
six                     1.16.0

I also tried the installation information at the bottom of the github, scroll down to mac installation they make you compile a version and install it but even when trying to compile it throws a pyqt6 error.

Anyone ever been able to install ‘QCustomPlot_PyQt5’ on Mac? Any help appreciated.

Suggest you report the problem to the author of the package.
This is the home page GitHub - salsergey/QCustomPlot-PyQt: Bindings for graphics lib QCustomPlot for PyQt5 and PyQt6

1 Like

I just reported it as well.