I&#39;ve searched around and found some mentions of problems when building apps with matplotlib, but didn&#39;t see any definitive solutions.<br><br>I&#39;m trying to build a simple using matplotlib, numpy and wx.&nbsp; My setup.py looks like this:<br>
<br>from setuptools import setup<br><br>APP = [&#39;plot_in_wx_test.py&#39;]<br>DATA_FILES = [&#39;IMV_0.log&#39;]<br>OPTIONS = { <br>&nbsp;&nbsp;&nbsp; &#39;argv_emulation&#39;: True,<br>&nbsp;&nbsp;&nbsp; &#39;packages&#39;: [&#39;matplotlib&#39;, &#39;numpy&#39;]<br>
}<br><br>setup(<br>&nbsp;&nbsp;&nbsp; app=APP,<br>&nbsp;&nbsp;&nbsp; data_files=DATA_FILES,<br>&nbsp;&nbsp;&nbsp; options={&#39;py2app&#39;: OPTIONS},<br>&nbsp;&nbsp;&nbsp; setup_requires=[&#39;py2app&#39;],<br>)<br><br># EOF<br><br>When I do:<br><br>brianz@omaha$ ls -F dist/plot_in_wx_test.app/Contents/Resources/lib/python2.5/<br>
config@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; matplotlib/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; site-packages.zip<br>lib-dynload/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; numpy/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; site.py@<br><br>Yet, when I try to run ./dist/wx_mpl_dynamic_graph.app/Contents/MacOS/wx_mpl_dynamic_graph I get an import error....the application appears to know nothing about any type of matplotlib:<br>
<br>&nbsp; File &quot;...../dist/wx_mpl_dynamic_graph.app/Contents/Resources/wx_mpl_dynamic_graph.py&quot;, line 31, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; import matplotlib<br>ImportError: No module named matplotlib<br><br>Am I doing something wrong or is this a known issue?<br>
<br>BZ<br>