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.
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.