jnicoleoliveira / SPECData

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

ImportError: No module named PyQt4 #6

Closed jnicoleoliveira closed 7 years ago

jnicoleoliveira commented 7 years ago

When running the application, I get the following error on OSX. I am using Anaconda, and have installed pyqt, qtpy, etc. ... from PyQt4 import QtCore, QtGui ImportError: No module named PyQt4

jnicoleoliveira commented 7 years ago

This problem can occur in anaconda, because it will forcefully install pyqt5 over pyqt4. The solution of this is the following:

conda install --channel https://conda.anaconda.org/conda-forge pyqt
conda install -c anaconda pyqt=4.11.4

This will downgrade the pyqt5 to pyqt4. [Source] Resolves #6