Dear Scott & Bryan, Thanks for the advice!
Neither the dmg nor the supposedly 32bit egg on sourceforge worked for me, even after I deleted 64bit Python 2.7.2. @Bryan: Thanks for suggesting MacPorts: I didn't know about that and you are right that that would have been a good solution. Here is how I solved it (with serious help from a friend): The problem seems to be that tcl/tk on MacOSX is 32bit, which is why there is no 64bit Mac distribution on sourceforge. I downloaded the source from sourceforge (matplotlib_1.0.1.tar.gz) then expanded it into a temp directory. In the root directory, cp setupext.py.template setup.py I uncommented line 11 basedir=/usr and changed it to basedir=/usr/X11 Then in setupext.py, line 832, I removed [-2] (as suggested by old.nabble.com/Can't-install-from-PyPi-td32404788.html) Then "python setup.py install" (do not use "build"). And that was all done. Another solution might be to build 64bit Tcl/Tk on MacOSX. Instructions are here: http://buffalothedestroyer.blogspot.com/2009/07/installing-64-bit-tcltk-on-mac-os-x.html http://bugs.python.org/issue6441 but I have not tried this and it seems like this solution needs python to be rebuilt as well. Does the installation page needs updating? http://matplotlib.sourceforge.net/users/installing.html#building-on-osx I'm copying this e-mail to the list so it is archived. Gavin. On 2 October 2011 23:05, Scott Lasley <slas...@space.umd.edu> wrote: > > On Oct 2, 2011, at 9:10 AM, Gavin Koh wrote: > >> Dear all, >> >> Just installed Python 2.7.2 on my Mac running OSX 10.6. Installed >> numpy 1.6.1 and scipy 0.9.0 both from the dmg's downloaded from scipy. >> Just tried to install matplotlib but there is no 64bit dmg available. >> Tried installing from the egg instead, but that doesn't help. >> Am getting >> ImportError: >> dlopen(/Library/Python/2.7/site-packages/matplotlib-1.0.1_r0-py2.7-macosx-10.3-fat.egg/matplotlib/_path.so, >> 2): no suitable image found. Did find: >> >> /Library/Python/2.7/site-packages/matplotlib-1.0.1_r0-py2.7-macosx-10.3-fat.egg/matplotlib/_path.so: >> no matching architecture in universal wrapper >> Trying to build from source but failing desperately. Help, please? > > This site helped me to build matplotlib for OS X a while back - > http://blog.hyperjeff.net/?p=160 > Since you already have python 2.7.2, numpy and scipy installed, you can > probably skip down to the section on building matplotlib. Some information > on the page is out of date. For example, the source is now on github at > https://github.com/matplotlib/matplotlib > > I use the gfortran compiler from the R project page - > http://r.research.att.com/tools/ > > I am by no means an expert at building matplotlib, but I'm happy to help if > you still have problems getting it running on your mac. -- Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. —Douglas Hofstadter (in Gödel, Escher, Bach, 1979) ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users