Skip to content

Issue with NavigationToolbar2QTAgg #26

Description

@JPHammonds

When trying to run with anaconda and pyqt 4.11.4 I got an error:

File "/Users/hammonds/anaconda/envs/BINoculars/bin/binoculars-gui", line 19, in
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg, NavigationToolbar2QTAgg
ImportError: cannot import name NavigationToolbar2QTAgg

I found on stackoverflow:
http://stackoverflow.com/questions/36346183/importerror-cannot-import-name-navigationtoolbar2qtagg

Which said that NavigationToolbar2QTAgg was removed after matplotlib version 1.5. This is not in matplotlib release notes although:
"Federico Ariza wrote the new ToolManager that comes as replacement for NavigationToolbar2"
is in there.

For now I have followed the stack overflow suggestion of changing:
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg
to
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT

and this is working so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions