<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't import pyplot in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549523#M42924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A common issue I see is that the PYDs are compiled with a manifest and expect a certain version of the Visual Studio C Runtime (MSVC*.dll) to be loaded in memory, and a different version is loaded in ArcMap.exe so it fails to load. The workaround is to find a build without a manifest in the PYD or rebuild the library yourself doing the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 18:48:06 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2012-07-11T18:48:06Z</dc:date>
    <item>
      <title>Can't import pyplot</title>
      <link>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549522#M42923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use matplotlib within my script to create some graphs of some data.&amp;nbsp; When I try and import pyplot through matplotlib I get the following error....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\reacch\problems\pyplot.py", line 2, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib import pyplot as plt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\pyplot.py", line 23, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.figure import Figure, figaspect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\figure.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from axes import Axes, SubplotBase, subplot_class_factory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\axes.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import matplotlib.axis as maxis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\axis.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import matplotlib.text as mtext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\text.py", line 31, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.backend_bases import RendererBase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\backend_bases.py", line 48, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import matplotlib.textpath as textpath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\textpath.py", line 9, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.mathtext import MathTextParser&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\lib\site-packages\matplotlib\mathtext.py", line 28, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import unicodedata&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: DLL load failed: The specified procedure could not be found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to import pyplot from matplotlib outside of ArcGIS inside the IDLE window everything works fine.&amp;nbsp; 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.&amp;nbsp; Does anyone know what may be the issue?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 15:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549522#M42923</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-07-11T15:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import pyplot</title>
      <link>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549523#M42924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A common issue I see is that the PYDs are compiled with a manifest and expect a certain version of the Visual Studio C Runtime (MSVC*.dll) to be loaded in memory, and a different version is loaded in ArcMap.exe so it fails to load. The workaround is to find a build without a manifest in the PYD or rebuild the library yourself doing the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 18:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549523#M42924</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-07-11T18:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import pyplot</title>
      <link>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549524#M42925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey thanks for the response.&amp;nbsp; I am sorry I am not very well versed in tech lingo.&amp;nbsp; I think the problem might have originally occurred when I added a bunch of enthought python modules to the c:/python27/ArcGIS10.1/Lib/Site-Packages directory.&amp;nbsp; All of the modules that I have tried which I added to this directory seem to work fine.&amp;nbsp; Importing matplotlib works fine as well but as soon as I try and import pyplot from matplotlib I get this huge error message.&amp;nbsp; Did I mess up the wiring for the matplotlib within ArcGIS when I added other modules from enthought to the ArcGIS site-packages directory?&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 00:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549524#M42925</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-07-19T00:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import pyplot</title>
      <link>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549525#M42926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think they're messed up per se, I just think they might be incompatible, period. You may need to reinstall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try gettig the libraries you want &lt;/SPAN&gt;&lt;A href="http://www.lfd.uci.edu/~gohlke/pythonlibs/"&gt;from this site&lt;/A&gt;&lt;SPAN&gt; instead. (&lt;/SPAN&gt;&lt;A href="http://www.lfd.uci.edu/~gohlke/pythonlibs/"&gt;http://www.lfd.uci.edu/~gohlke/pythonlibs/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 01:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-import-pyplot/m-p/549525#M42926</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-07-19T01:14:07Z</dc:date>
    </item>
  </channel>
</rss>

