[Numpy-discussion] Segmentation Fault in Numpy.test()

Bruce Southey bsouthey@gmail....
Tue Aug 2 11:27:40 CDT 2011


On 08/02/2011 11:14 AM, Thomas Markovich wrote:
> I just have the default "apple" version of python that comes with Snow 
> Leopard (Python 2.6.1 (r261:67515, Aug  2 2010, 20:10:18)) and python 
> 2.7 (Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) ) 
> installed.
>
> Should I just remove 2.7 and reinstall everything with the standard 
> apple python?
>
> On Tue, Aug 2, 2011 at 11:08 AM, Olivier Delalleau <shish@keba.be 
> <mailto:shish@keba.be>> wrote:
>
>     It's a wild guess, but in the past I've had seg faults issues on
>     Mac due to conflicting versions of Python. Do you have multiple
>     Python installs on your Mac?
>
>     -=- Olivier
>
>
>     2011/8/2 Thomas Markovich <thomasmarkovich@gmail.com
>     <mailto:thomasmarkovich@gmail.com>>
>
>         Hi All,
>
>         I installed numpy from the scipy superpack on Snow Leopard
>         with python 2.7 and it all appears to work but when I do the
>         following, I get a segmentation fault.
>
>         >>> import numpy
>         >>> print numpy.__version__, numpy.__file__
>         2.0.0.dev-b5cdaee
>         /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy-2.0.0.dev_b5cdaee_20110710-py2.6-macosx-10.6-universal.egg/numpy/__init__.pyc
>         >>> numpy.test()
>         Running unit tests for numpy
>         NumPy version 2.0.0.dev-b5cdaee
>         NumPy is installed in
>         /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy-2.0.0.dev_b5cdaee_20110710-py2.6-macosx-10.6-universal.egg/numpy
>         Python version 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011,
>         15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
>         nose version 1.1.2
>         ............................................................................................................................................................................................................................................................................................................................Segmentation
>         fault
>         thomasmarkovich:~ Thomas$
>
>         What is the best way to trouble shoot this? Do you guys have
>         any suggestions? I have also included the core dump in this
>         email as a pastie link.
>
>         http://pastie.org/2309652
>
>         Best,
>
>         Thomas
>
>
Use the numpy test verbose argument ie numpy.test(verbose=10) to find 
which test it is causing the crash.

I have no idea of the Mac but I am curious why there is a 'py2.6' in 
your numpy version with Python2.7.

Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110802/5647fe01/attachment.html 


More information about the NumPy-Discussion mailing list