<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: a = np.empty(shape=(0,0))

In [22]: np.lib.apply_along_axis(sum, 1, a)
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
&lt;ipython-input-22-2fcce4e707fd&gt; in &lt;module&gt;()
----&gt; 1 np.lib.apply_along_axis(sum, 1, a)

myvirtualenv/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/lib/shape_base.pyc in apply_along_axis(func1d, axis, arr, *args, **kwargs)
     89     outshape = asarray(arr.shape).take(indlist)
     90     i.put(indlist, ind)
---&gt; 91     res = func1d(arr[tuple(i.tolist())], *args, **kwargs)
     92     #  if res is a number, then we have a smaller output array
     93     if isscalar(res):

IndexError: index 0 is out of bounds for axis 0 with size 0"><pre class="notranslate"><code class="notranslate">In [21]: a = np.empty(shape=(0,0))

In [22]: np.lib.apply_along_axis(sum, 1, a)
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
&lt;ipython-input-22-2fcce4e707fd&gt; in &lt;module&gt;()
----&gt; 1 np.lib.apply_along_axis(sum, 1, a)

myvirtualenv/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/lib/shape_base.pyc in apply_along_axis(func1d, axis, arr, *args, **kwargs)
     89     outshape = asarray(arr.shape).take(indlist)
     90     i.put(indlist, ind)
---&gt; 91     res = func1d(arr[tuple(i.tolist())], *args, **kwargs)
     92     #  if res is a number, then we have a smaller output array
     93     if isscalar(res):

IndexError: index 0 is out of bounds for axis 0 with size 0
</code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1261" rel="nofollow">http://projects.scipy.org/numpy/ticket/1261</a> on 2009-10-13 by trac user dpeterson, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>.</em></p>
<p dir="auto">Sent to me via e-mail by Burkhard Neinhues:</p>
<p dir="auto">I've been trying to compile numpy and scipy on HP-UX. I succeeded in the end, but some patches were required.  I've also attached the results for numpy.test() to this email. Please find below the steps required to compile them, if you require the patches as separate files, please let me know.</p>
<p dir="auto"><em>NUMPY</em>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# to have native support for lapack and blas
export NUMPY_FCONFIG=&quot;config_fc --fcompiler=hpux&quot;
export LAPACK=/opt/mlib/lib/pa20_64/liblapack.sl
export BLAS=/opt/mlib/lib/pa20_64/libveclib.sl

# I had to add several missing information to this file. Is there any option to configure for 32 or 64 bits support?
# I've now hard-wired 64 bits"><pre class="notranslate"><code class="notranslate"># to have native support for lapack and blas
export NUMPY_FCONFIG="config_fc --fcompiler=hpux"
export LAPACK=/opt/mlib/lib/pa20_64/liblapack.sl
export BLAS=/opt/mlib/lib/pa20_64/libveclib.sl

# I had to add several missing information to this file. Is there any option to configure for 32 or 64 bits support?
# I've now hard-wired 64 bits
</code></pre></div>
<p dir="auto">The file <code class="notranslate">parisc-numpy.patch</code> contains the patches.  There are also some notes (as comments) in the file about why the various patches were done.  Note that some of the changes support builds on additional platforms such as Solaris and AIX.</p>
<p dir="auto">The file <code class="notranslate">parisc-test.out</code> is the test output Burkhard referred too.</p>