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

Cannot run SUPPNET #6

Open
TrentinErasmo opened this issue Aug 10, 2023 · 0 comments
Open

Cannot run SUPPNET #6

TrentinErasmo opened this issue Aug 10, 2023 · 0 comments

Comments

@TrentinErasmo
Copy link

Hi,

I recently tried to follow the read.me file to install SUPPNET. I created the environment and the symbolic link but when I try to run SUPPNET (either by typing 'SUPPNET' or going to the directory and run 'python3 suppnet.py') this error message appears:

Calling python "/home/trentin/suppnet/suppnet.py"
Traceback (most recent call last):
  File "/home/trentin/suppnet/suppnet.py", line 17, in <module>
    from matplotlib.backends.backend_qt5agg import (
  File "/home/trentin/.local/lib/python3.8/site-packages/matplotlib/backends/backend_qt5agg.py", line 5, in <module>
    from .backend_qtagg import (
  File "/home/trentin/.local/lib/python3.8/site-packages/matplotlib/backends/backend_qtagg.py", line 12, in <module>
    from .backend_qt import (
  File "/home/trentin/.local/lib/python3.8/site-packages/matplotlib/backends/backend_qt.py", line 73, in <module>
    _MODIFIER_KEYS = [
  File "/home/trentin/.local/lib/python3.8/site-packages/matplotlib/backends/backend_qt.py", line 74, in <listcomp>
    (_to_int(getattr(_enum("QtCore.Qt.KeyboardModifier"), mod)),
TypeError: int() argument must be a string, a bytes-like object or a number, not 'KeyboardModifier'

The line in question is:


from matplotlib.backends.backend_qt5agg import (
    FigureCanvasQTAgg as FigureCanvas,
    NavigationToolbar2QT as NavigationToolbar)

But if I try to import this package on python by itself, it works fine.

Thank you in advance.

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

1 participant