nextgis / qgis_molusce

Modules for Land Use Change Simulations
https://github.com/nextgis/molusce
GNU General Public License v2.0
43 stars 15 forks source link

Trouble installing MOLUSCE on Ubuntu 16.04 LTS #15

Closed cuau-cabrera closed 7 years ago

cuau-cabrera commented 8 years ago

Hi group,

I'm working on Qgis wien 2.8 and I've just upgraded my Ubuntu version to 16.04 LTS. When I try to install MOLUSCE I get this error message "cannot import name NavigationToolbar2QTAgg" Does anybody know what is this error message about and how can I fix it? Thanks for your help!

yomlao commented 7 years ago

Same issue here, using QGIS 2.16 under Ubuntu 16.04. Seems that the problem comes from matplotlib (NavigationToolbar2QTAgg was removed in matplotlib 1.5.0) - see https://stackoverflow.com/questions/36346183/importerror-cannot-import-name-navigationtoolbar2qtagg/37200183

micha-silver commented 7 years ago

I "solved" this by replacing NavigationToolbar2QTAggwith NavigationToolbar2QT in the import statements in two source files: moluscedialog.py and neuralnetworkwidget.py