Skip to content

PyQT5 missing from dependencies #63

Open
@paulglx

Description

PyQT5 is missing from the dependencies and this raises an error when running graph-cli on macOS.

Full error :

> graph .monitoring/exported_data/cometbft_mempool_tx_size_bytes_bucket.csv
Traceback (most recent call last):
  File "/Users/paul/.pyenv/versions/3.11.8/bin/graph", line 8, in <module>
    sys.exit(main.main())

[...]

  File "/Users/paul/.pyenv/versions/3.11.8/lib/python3.11/site-packages/matplotlib/backends/backend_qt5agg.py", line 7, in <module>
    from .backend_qtagg import (    # noqa: F401, E402 # pylint: disable=W0611
  File "/Users/paul/.pyenv/versions/3.11.8/lib/python3.11/site-packages/matplotlib/backends/backend_qtagg.py", line 9, in <module>
    from .qt_compat import QT_API, QtCore, QtGui
  File "/Users/paul/.pyenv/versions/3.11.8/lib/python3.11/site-packages/matplotlib/backends/qt_compat.py", line 130, in <module>
    raise ImportError(
ImportError: Failed to import any of the following Qt binding modules: PyQt5, PySide2

Fix

This is fixed by running pip install pyqt5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions