Skip to content

Cannot run SUPPNET #6

@TrentinErasmo

Description

@TrentinErasmo

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.

Metadata

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