On Mon, Feb 2, 2009 at 11:00 PM, Brian Zambrano <span dir="ltr"><<a href="mailto:brianz@gmail.com">brianz@gmail.com</a>></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@ matplotlib/ site-packages.zip<br>lib-dynload/ numpy/ 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> File "...../dist/wx_mpl_dynamic_graph.app/Contents/Resources/wx_mpl_dynamic_graph.py", line 31, in <module><br> import matplotlib<br>ImportError: No module named matplotlib<br></blockquote><div><br>
After some hunting and digging I solved this. 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. The libraries were ending up in <br><br>dist/plot_in_wx_test.app/Contents/Resources/lib/python2.5/<br>
<br>which wasn't in sys.path. 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. Then I realized that Python wasn't being included in the build so upgraded to 2.5.4 (which wasn't as simple as I hoped). After that, the build worked no problem. Hopefully this will be useful to someone else.<br>
<br>BZ<br></div></div><br>