jnicoleoliveira / SPECData

Interactive spectroscopic data analysis tool.
6 stars 4 forks source link

ImportError: No module named backend_qt4agg #1

Closed jnicoleoliveira closed 7 years ago

jnicoleoliveira commented 7 years ago

When running SPECdata, I get the following error: ImportError: No module named backend_qt4agg

jnicoleoliveira commented 7 years ago

Install missing matplotlib qt4 backend >> sudo apt-get install python-matplotlib-qt4

Get the Matplotlib config file path:

>> python
>> import matplotlib
>> matplotlib.matplotlib_fname()
>   u'/usr/lib64/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc'

In the config file, change the backend to qt4agg: > vi /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc

Change the line to :

backend : qt4agg

[Source: StackOverflow] (http://stackoverflow.com/a/20583922)