On Mon, Feb 2, 2009 at 11:00 PM, Brian Zambrano <span dir="ltr">&lt;<a href="mailto:brianz@gmail.com">brianz@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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></blockquote><div><br>
After some hunting and digging I solved this.&nbsp; After upgrading Python
2.5.1 which comes in OS X 10.5 to Python 2.5.4, all is well.<br>
<br>
I found this out in a roundabout way....first I got it working after realizing the path was off when the App fired up.&nbsp; The libraries were ending up in <br><br>dist/plot_in_wx_test.app/Contents/Resources/lib/python2.5/<br>
<br>which wasn&#39;t in sys.path.&nbsp; What *was* in sys.path was:<br><br>dist/plot_in_wx_test.app/Contents/Resources/lib/python2.5/site-packages<br><br>After a little hackery I got it working.&nbsp; Then I realized that Python wasn&#39;t being included in the build so upgraded to 2.5.4 (which wasn&#39;t as simple as I hoped).&nbsp; After that, the build worked no problem.&nbsp; Hopefully this will be useful to someone else.<br>
<br>BZ<br></div></div><br>