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

PyQT5 missing from dependencies #63

Open
paulglx opened this issue Jan 15, 2025 · 1 comment
Open

PyQT5 missing from dependencies #63

paulglx opened this issue Jan 15, 2025 · 1 comment

Comments

@paulglx
Copy link

paulglx commented Jan 15, 2025

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

@mcastorina
Copy link
Owner

Thanks for reporting! There was a previous discussion about this in #22.

The tldr from that issue was that adding PyQt5 as a dependency broke pip installations on ubuntu for some reason, so I removed it in this commit.

I must be doing something wrong with setup.py, but for now I think it'll be helpful to add a note to the README.

Contributions welcome for either case!

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

2 participants