pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2.03k stars 300 forks source link

Import error PyQt4 #25

Closed jahl08 closed 7 years ago

jahl08 commented 7 years ago

I have used ffn with no issues but after the weekend I suddenly got this error (I'm a python beginner). `--------------------------------------------------------------------------- ImportError Traceback (most recent call last)

in () ----> 1 import ffn C:\Anaconda2\lib\site-packages\ffn\__init__.py in () ----> 1 from . import core 2 from . import data 3 4 from .data import get 5 #from .core import year_frac, PerformanceStats, GroupStats, merge C:\Anaconda2\lib\site-packages\ffn\core.py in () 8 from pandas.core.base import PandasObject 9 from tabulate import tabulate ---> 10 from matplotlib import pyplot as plt 11 import sklearn.manifold 12 import sklearn.cluster C:\Anaconda2\lib\site-packages\matplotlib\pyplot.py in () 112 113 from matplotlib.backends import pylab_setup --> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() 115 116 _IP_REGISTERED = None C:\Anaconda2\lib\site-packages\matplotlib\backends\__init__.pyc in pylab_setup() 30 # imports. 0 means only perform absolute imports. 31 backend_mod = __import__(backend_name, ---> 32 globals(),locals(),[backend_name],0) 33 34 # Things we pull in from all backends C:\Anaconda2\lib\site-packages\matplotlib\backends\backend_qt4agg.py in () 16 17 ---> 18 from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase 19 20 from .backend_agg import FigureCanvasAgg C:\Anaconda2\lib\site-packages\matplotlib\backends\backend_qt5agg.py in () 13 14 from .backend_agg import FigureCanvasAgg ---> 15 from .backend_qt5 import QtCore 16 from .backend_qt5 import QtGui 17 from .backend_qt5 import FigureManagerQT C:\Anaconda2\lib\site-packages\matplotlib\backends\backend_qt5.py in () 29 figureoptions = None 30 ---> 31 from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__ 32 from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool 33 C:\Anaconda2\lib\site-packages\matplotlib\backends\qt_compat.py in () 122 # have been changed in the above if block 123 if QT_API in [QT_API_PYQT, QT_API_PYQTv2]: # PyQt4 API --> 124 from PyQt4 import QtCore, QtGui 125 126 try: ImportError: No module named PyQt4`