So I could either regress numpy or build Matplotlib from source. Since I like being able to get the latest bug fixes for Matplotlib and the last time I build it from svn it went without a hitch, I decided to try to build Matplotlib from source. Unfortunately it didn't work this time. I get the error shown below. I have a powerbook g4 with 10.4.6 and Universal Python 2.4.3-2006-04-07.dmg. What am I missing?
svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/ matplotlib matplotlib Checked out revision 2411. edit darwin path in setupext.py basedir = { 'win32' : ['win32_static',], 'linux2' : ['/usr/local', '/usr',], 'linux' : ['/usr/local', '/usr',], 'cygwin' : ['/usr/local', '/usr',], 'darwin' : ['/usr/local','/opt/local','/usr'], 'freebsd4' : ['/usr/local', '/usr'], 'freebsd5' : ['/usr/local', '/usr'], 'freebsd6' : ['/usr/local', '/usr'], 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',], 'gnukfreebsd5' : ['/usr/local', '/usr'], 'gnukfreebsd6' : ['/usr/local', '/usr'], } from terminal export WX_CONFIG="usr/local/lib/wxPython-ansi-2.6.3.2rc2/bin/wx-config" cd matplotlib python setup.py build gcc: src/_ns_cntr.c In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/pyport.h:90, from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55, from src/_ns_cntr.c:17: /usr/include/architecture/ppc/math.h:477: warning: conflicting types for built-in function 'scalb' In file included from src/_ns_cntr.c:28: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:139: error: redefinition of typedef 'ushort' /usr/include/sys/types.h:85: error: previous declaration of 'ushort' was here /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:140: error: redefinition of typedef 'uint' /usr/include/sys/types.h:86: error: previous declaration of 'uint' was here In file included from src/_ns_cntr.c:28: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:139: error: redefinition of typedef 'ushort' /usr/include/sys/types.h:85: error: previous declaration of 'ushort' was here /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:140: error: redefinition of typedef 'uint' /usr/include/sys/types.h:86: error: previous declaration of 'uint' was here lipo: can't figure out the architecture type of: /var/tmp//ccR0VtyV.out In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/pyport.h:90, from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55, from src/_ns_cntr.c:17: /usr/include/architecture/ppc/math.h:477: warning: conflicting types for built-in function 'scalb' In file included from src/_ns_cntr.c:28: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:139: error: redefinition of typedef 'ushort' /usr/include/sys/types.h:85: error: previous declaration of 'ushort' was here /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:140: error: redefinition of typedef 'uint' /usr/include/sys/types.h:86: error: previous declaration of 'uint' was here In file included from src/_ns_cntr.c:28: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:139: error: redefinition of typedef 'ushort' /usr/include/sys/types.h:85: error: previous declaration of 'ushort' was here /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include/numpy/arrayobject.h:140: error: redefinition of typedef 'uint' /usr/include/sys/types.h:86: error: previous declaration of 'uint' was here lipo: can't figure out the architecture type of: /var/tmp//ccR0VtyV.out error: Command "gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/ Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ numpy/core/include -I/usr/local/include -I/opt/local/include -I/usr/ include -I. -I/Library/Frameworks/Python.framework/Versions/2.4/ include/python2.4 -c src/_ns_cntr.c -o build/temp.macosx-10.4-fat-2.4/ src/_ns_cntr.o -DSCIPY=1" failed with exit status 1 albook:smithsm$ On 23 May, 2006, at 11:52, Charlie Moad wrote: > Yeah, mpl 0.87.2 was built with numpy 0.9.6. I don't think a new > matplotlib release is in the near future unless the new numpy warrants > a minor bump. > > - Charlie > > On 5/23/06, Samuel M. Smith <[EMAIL PROTECTED]> wrote: >> Charlie, >> >> I finally had some time to update my python matplotlib installation. >> >> I installed >> Universal Python 2.4.3-2006-04-07.dmg >> numpy 0.9.8 from source >> wxPython2.6-osx-unicode-2.6.3.2rc2-universal10.4-py.2.4.dmg >> wxPython2.6-osx-ansi-2.6.3.2rc2-universal10.4.py2.4.dmg >> >> Iipython 0.7.1.fix1 was already installed >> >> I tried a test of matplotlib using ipython and get a segmentation >> fault. >> >> ipython -pylab >> loaded rc file /Users/smithsm/.matplotlib/matplotlibrc >> matplotlib version 0.87.2 >> verbose.level helpful >> interactive is False >> platform is darwin >> numerix numpy 0.9.8 >> Segmentation fault >> >> I am guessing that you used a different version of numpy? >> >> If I just do python from terminal and import matplotlob then no >> segmentation fault >> >> >>> import matplotlib >> loaded rc file /Users/smithsm/.matplotlib/matplotlibrc >> matplotlib version 0.87.2 >> verbose.level helpful >> interactive is False >> platform is darwin >> >> Anybody have any ideas what is happening? >> >> On 03 May, 2006, at 20:09, Charlie Moad wrote: >> >> > I posted a universal build of matplotlib 0.87.2 on >> sourceforge in >> > egg and mpkg format. It is compiled against the latest numarray, >> > numpy, and Numeric as well as Tk and the new wxPython-rc2 >> > universal. Libpng and freetype2 are statically linked in. Please >> > post or link to >> > either/both at "http://pythonmac.org/packages/py24-fat/". >> > >> > http://sourceforge.net/project/showfiles.php? >> > group_id=80706&package_id=82474 >> > >> > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and > Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 > _______________________________________________ > Matplotlib-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig