<div dir="ltr"><div>Hi<br></div><div><br></div>I have just tried this using openblas 0.2.8 and numpy 1.8.0 on mac OSx with ipython 1.1.0 and I can't reproduce your issue. <div>What is the output of numpy.show_config() from python and IPython? <br>

</div><div><br></div><div>Is the same install of numpy being picked up and used. I.e. what is the output of numpy.__file__ in python and IPython? </div><div><br></div><div>best regards</div><div>Jens</div><div><br></div>
<div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 1, 2013 at 9:42 AM, Florian M. Wagner <span dir="ltr"><<a href="mailto:wagnerfl@student.ethz.ch" target="_blank">wagnerfl@student.ethz.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Any ideas? Has someone here a
      functioning setup with Numpy-OpenBlas and the scientific (I)Python
      stack on Linux and is willing to share the necessary installation
      steps?<br>
      <br>
      Am <a href="tel:30.10.2013" value="+4530102013" target="_blank">30.10.2013</a> 09:46, schrieb Florian M. Wagner:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      <div>I reproduced the error with the
        latest IPython source:<br>
        <br>
        <blockquote><small>fwagner@fwagner-notebook ~/Downloads/ipython
            $ ipython</small><br>
          <small>Python 2.7.4 (default, Sep 26 2013, 03:20:26) </small><br>
          <small>Type "copyright", "credits" or "license" for more
            information.</small><br>
          <br>
          <small>IPython 2.0.0-dev -- An enhanced Interactive Python.</small><br>
          <small>?         -> Introduction and overview of IPython's
            features.</small><br>
          <small>%quickref -> Quick reference.</small><br>
          <small>help      -> Python's own help system.</small><br>
          <small>object?   -> Details about 'object', use 'object??'
            for extra details.</small><br>
          <br>
          <small>In [1]: A = np.random.randn(50,50)</small><br>
          <br>
          <small>In [2]: A[0,0]</small><br>
          <small>Out[2]: 0.62268531821589967</small><br>
          <br>
          <small>In [3]: A.T.dot(A)</small><br>
          <small>Speicherzugriffsfehler</small><br>
          <br>
        </blockquote>
        Compared to:<br>
        <br>
        <blockquote><small>Python 2.7.4 (default, Sep 26 2013, 03:20:26)
          </small><br>
          <small>[GCC 4.7.3] on linux2</small><br>
          <small>Type "help", "copyright", "credits" or "license" for
            more information.</small><br>
          <small>>>> import numpy as np</small><br>
          <small>>>> A = np.random.randn(50,50)</small><br>
          <small>>>> A.T.dot(A)</small><br>
          <small>array([[  4.61866860e+01,   1.97714469e+00,  
            8.78842173e+00, ...,</small><br>
          <small>         -9.65143259e+00,   4.74312877e+00, 
            -1.85163266e+01],</small><br>
          <small>       [  1.97714469e+00,   4.50113072e+01, 
            -1.13105045e+01, ...,</small><br>
          <small>          2.31604581e+00,   4.93068512e+00,  
            1.29316267e+01],</small><br>
          <small>       [  8.78842173e+00,  -1.13105045e+01,  
            6.02859864e+01, ...,</small><br>
          <small>         -2.65040891e+00,   3.98374437e+00, 
            -1.54860323e+01],</small><br>
          <small>       ..., </small><br>
          <small>       [ -9.65143259e+00,   2.31604581e+00, 
            -2.65040891e+00, ...,</small><br>
          <small>          3.81774984e+01,   1.63768677e+00,  
            1.16681961e+01],</small><br>
          <small>       [  4.74312877e+00,   4.93068512e+00,  
            3.98374437e+00, ...,</small><br>
          <small>          1.63768677e+00,   5.11159138e+01,  
            6.56039753e-02],</small><br>
          <small>       [ -1.85163266e+01,   1.29316267e+01, 
            -1.54860323e+01, ...,</small><br>
          <small>          1.16681961e+01,   6.56039753e-02,  
            6.61061915e+01]])</small><br>
        </blockquote>
        <br>
        <br>
        Am <a href="tel:30.10.2013" value="+4530102013" target="_blank">30.10.2013</a> 09:33, schrieb Florian M. Wagner:<br>
      </div>
      <blockquote type="cite">
        <pre>Thanks guys,

@Julian: Reducing the thread number did not help
@Thomas: dap is mpl-basemap dependency, fixed the import issue, but the 
error still occurs

It is really weird that it is occuring only when printing the array, or 
slicing the array. And whats more weird, that it works in plain Python 
as I understood that IPython has no numpy dependency?

Thanks and regards
Florian

Am <a href="tel:29.10.2013" value="+4529102013" target="_blank">29.10.2013</a> 19:39, schrieb Julian Taylor:
</pre>
        <blockquote type="cite">
          <pre>does this also happen if you do this before starting ipython?

export OPENBLAS_NUM_THREADS=1
(assuming bash shell)

On <a href="tel:29.10.2013" value="+4529102013" target="_blank">29.10.2013</a> 17:19, Florian M. Wagner wrote:
</pre>
          <blockquote type="cite">
            <pre>Dear all,

I recently compiled numpy with OpenBlas for faster matrix-matrix
multiplication. Everything works fine, but IPython seems to dislike it.
I get a Segmentation Fault error when trying this (I reinstalled IPython
1.1.0 after numpy compilation):

     fwagner@fwagner-notebook ~ $ ipython -c "import numpy as np; print
     np.__version__; import IPython; print IPython.__version__; A =
     np.random.randn(600, 600); print A[20,53]; print A"
     /usr/local/bin/ipython:5: UserWarning: Module dap was already
     imported from None, but /usr/lib/python2.7/dist-packages is being
     added to sys.path
       from pkg_resources import load_entry_point
     1.9.0.dev-54d3559
     1.1.0
     -2.1004055886
     Speicherzugriffsfehler

In comparison, this works fine (just python instead of ipython):

     fwagner@fwagner-notebook ~ $ python -c "import numpy as np; print
     np.__version__; import IPython; print IPython.__version__; A =
     np.random.randn(600, 600); print A[20,53]; print A"
     1.9.0.dev-54d3559
     1.1.0
     -1.10282239744
     [[ 0.13798084 -0.39195796 -0.15309986 ...,  1.47471232 -0.9158455
        0.97060671]
      [ 0.25720169  0.51895478  0.55175787 ..., -0.02010573  0.78047754
       -1.07891961]
      [ 1.59478156  0.81245486 -0.03959768 ..., -0.04816659 -0.03356907
       -0.11860379]
      ...,
      [-0.06299817 -0.0956477  -0.32987518 ..., -1.47714386  1.66736916
       -0.47704276]
      [-0.93769589  1.50006542  0.97782803 ..., -0.5034154   1.31592011
       -0.74482995]
      [-0.24661336 -0.98979706 -0.39366363 ...,  0.20507632  0.8701609
       -1.10449957]]

Any ideas what might cause this problem?

Thanks,

Florian



_______________________________________________
IPython-dev mailing list
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>

</pre>
          </blockquote>
        </blockquote>
        <pre>_______________________________________________
IPython-dev mailing list
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
IPython-dev mailing list
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>