Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined symbol: clapack_sgesv
    primarykey
    data
    text
    <p>I have this little code:</p> <pre><code>from numpy import * from scipy import signal, misc import matplotlib.pyplot as plt path="~/pics/" band_1 = misc.imread(path + "foo.tif"); H = array((1/2.0, 1/4.0, 1/2.0)); signal.convolve2d(band_1.flatten(), H) plt.figure() plt.imshow(band_1) plt.show() </code></pre> <p>then I execute this code <code>python foo.py</code> and it throws this error:</p> <pre><code>Traceback (most recent call last): File "foo.py", line 2, in &lt;module&gt; from scipy import signal File "/usr/lib/python2.6/site-packages/scipy/signal/__init__.py", line 10, in &lt;module&gt; from filter_design import * File "/usr/lib/python2.6/site-packages/scipy/signal/filter_design.py", line 12, in &lt;module&gt; from scipy import special, optimize File "/usr/lib/python2.6/site-packages/scipy/optimize/__init__.py", line 14, in &lt;module&gt; from nonlin import * File "/usr/lib/python2.6/site-packages/scipy/optimize/nonlin.py", line 113, in &lt;module&gt; from scipy.linalg import norm, solve, inv, qr, svd, lstsq, LinAlgError File "/usr/lib/python2.6/site-packages/scipy/linalg/__init__.py", line 9, in &lt;module&gt; from basic import * File "/usr/lib/python2.6/site-packages/scipy/linalg/basic.py", line 14, in &lt;module&gt; from lapack import get_lapack_funcs File "/usr/lib/python2.6/site-packages/scipy/linalg/lapack.py", line 15, in &lt;module&gt; from scipy.linalg import clapack ImportError: /usr/lib/python2.6/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgesv </code></pre> <p>What is wrong? It seems to be <code>from scipy import signal</code> but I do not know clearly.</p> <p>I have check another sources and forums but there is no reasons yet:</p> <ul> <li><a href="http://old.nabble.com/scipy.interpolate-imports---%3E-lapack-errors-td30343730.html" rel="nofollow">http://old.nabble.com/scipy.interpolate-imports---%3E-lapack-errors-td30343730.html</a></li> <li><a href="http://permalink.gmane.org/gmane.comp.python.scientific.user/27290" rel="nofollow">http://permalink.gmane.org/gmane.comp.python.scientific.user/27290</a></li> </ul> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload