I am trying to use matplotlib within my script to create some graphs of some data. When I try and import pyplot through matplotlib I get the following error....
Traceback (most recent call last):
File "C:\reacch\problems\pyplot.py", line 2, in <module>
from matplotlib import pyplot as plt
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\pyplot.py", line 23, in <module>
from matplotlib.figure import Figure, figaspect
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\figure.py", line 18, in <module>
from axes import Axes, SubplotBase, subplot_class_factory
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\axes.py", line 14, in <module>
import matplotlib.axis as maxis
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\axis.py", line 14, in <module>
import matplotlib.text as mtext
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\text.py", line 31, in <module>
from matplotlib.backend_bases import RendererBase
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\backend_bases.py", line 48, in <module>
import matplotlib.textpath as textpath
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\textpath.py", line 9, in <module>
from matplotlib.mathtext import MathTextParser
File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\mathtext.py", line 28, in <module>
import unicodedata
ImportError: DLL load failed: The specified procedure could not be found.
When I try to import pyplot from matplotlib outside of ArcGIS inside the IDLE window everything works fine. This seems odd to me considering the site packages for matplotlib are the exact same for running the script both in and outside of ArcGIS. Does anyone know what may be the issue? Thanks!