[Numpy-discussion] recompiling needed for binary module after numpy 1.0

Erin Sheldon erin.sheldon at gmail.com
Mon Jan 15 14:45:14 CST 2007


On 1/13/07, Robert Kern <robert.kern at gmail.com> wrote:
> > Import of pylab still fails.  The failure is now different.  Using gdb I get
> > --snip--
> > Reading symbols for shared libraries . done
> > Reading symbols for shared libraries .. done
> > 20:48:11: Debug: ../src/common/object.cpp(224): assert
> > "sm_classTable->Get(m_className) == NULL" failed: class already in
> > RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may be by
> > linking some object module(s) twice)?
> > ../src/common/object.cpp(224): assert "sm_classTable->Get(m_className)
> > == NULL" failed: class already in RTTI table - have you used
> > IMPLEMENT_DYNAMIC_CLASS() twice (may be by linking some object
> > module(s) twice)?
> >
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> >
> > which I cannot parse.  Any ideas?
>
> Possibly you are linking against the wrong wx libraries. I missed that part in
> my instructions.
>
> http://sourceforge.net/mailarchive/message.php?msg_id=37895022


I found that if I took the following steps, basically eveything
works on my intel core 2 duo macbook.

Install XCode

Get gfortran
    http://hpc.sourceforge.net/
    http://prdownloads.sourceforge.net/hpc/gfortran-intel-bin.tar.gz?download

Go to this site:
    http://pythonmac.org/packages/py25-fat/index.html
Get these packages and install them in this order
    python-2.5-macosx.dmg
    numpy-1.0.1-py2.5-macosx10.4-2006-12-12.dmg
    wxPython2.6-osx-unicode-2.6.3.3-universal10.4-py2.5.dmg
    matplotlib-0.87.7-py2.5-macosx10.4-2006-12-12.dmg

Get Scipy.  No binary on pythonmac for scipy yet, but the compile
is straightforward with the right flags (thanks Robert).
    http://prdownloads.sourceforge.net/scipy/scipy-0.5.2.tar.gz
To build and install:
    python setup.py build_src build_clib --fcompiler=gnu95 build_ext
--fcompiler=gnu95 build
    sudo python setup.py install

Erin


More information about the Numpy-discussion mailing list