[Numpy-discussion] numpy installation issues
Chris Bartels
c.l.l.bartels at gmail.com
Mon Jul 7 09:34:04 EDT 2008
After installing the old binutils. (I hope this will not be necessary for
future numpy versions, that these can run on an unmodified cygwin install)
I managed to build and install.
Running numpy in python now gives some errors in the unit test:
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test(all=True)
Numpy is installed in /usr/lib/python2.5/site-packages/numpy
Numpy version 1.1.0
Python version 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming
spe
cial, gdc 0.12, using dmd 0.125)]
Found 18/18 tests for numpy.core.tests.test_defmatrix
Found 3/3 tests for numpy.core.tests.test_errstate
Found 3/3 tests for numpy.core.tests.test_memmap
Found 286/286 tests for numpy.core.tests.test_multiarray
Found 70/70 tests for numpy.core.tests.test_numeric
Found 36/36 tests for numpy.core.tests.test_numerictypes
Found 12/12 tests for numpy.core.tests.test_records
Found 143/143 tests for numpy.core.tests.test_regression
Found 7/7 tests for numpy.core.tests.test_scalarmath
Found 2/2 tests for numpy.core.tests.test_ufunc
Found 16/16 tests for numpy.core.tests.test_umath
Found 63/63 tests for numpy.core.tests.test_unicode
Found 4/4 tests for numpy.distutils.tests.test_fcompiler_gnu
Found 5/5 tests for numpy.distutils.tests.test_misc_util
Found 2/2 tests for numpy.fft.tests.test_fftpack
Found 3/3 tests for numpy.fft.tests.test_helper
Found 10/10 tests for numpy.lib.tests.test_arraysetops
Found 1/1 tests for numpy.lib.tests.test_financial
Found 53/53 tests for numpy.lib.tests.test_function_base
Found 5/5 tests for numpy.lib.tests.test_getlimits
Found 6/6 tests for numpy.lib.tests.test_index_tricks
Found 15/15 tests for numpy.lib.tests.test_io
Found 1/1 tests for numpy.lib.tests.test_machar
Found 4/4 tests for numpy.lib.tests.test_polynomial
Found 1/1 tests for numpy.lib.tests.test_regression
Found 49/49 tests for numpy.lib.tests.test_shape_base
Found 15/15 tests for numpy.lib.tests.test_twodim_base
Found 43/43 tests for numpy.lib.tests.test_type_check
Found 1/1 tests for numpy.lib.tests.test_ufunclike
Found 24/24 tests for numpy.lib.tests.test__datasource
Found 89/89 tests for numpy.linalg.tests.test_linalg
Found 3/3 tests for numpy.linalg.tests.test_regression
Found 94/94 tests for numpy.ma.tests.test_core
Found 15/15 tests for numpy.ma.tests.test_extras
Found 17/17 tests for numpy.ma.tests.test_mrecords
Found 36/36 tests for numpy.ma.tests.test_old_ma
Found 4/4 tests for numpy.ma.tests.test_subclassing
Found 7/7 tests for numpy.tests.test_random
Found 16/16 tests for numpy.testing.tests.test_utils
Found 5/5 tests for numpy.tests.test_ctypeslib
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
..............................................................................E.
...
======================================================================
ERROR: check_basic (numpy.tests.test_ctypeslib.TestLoadLibrary)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/numpy/tests/test_ctypeslib.py",
line 9,
in check_basic
np.core.multiarray.__file__)
File "/usr/lib/python2.5/site-packages/numpy/ctypeslib.py", line 55, in
load_l
ibrary
raise e
OSError: No such file or directory
----------------------------------------------------------------------
Ran 1283 tests in 7.533s
FAILED (errors=1)
<unittest._TextTestResult run=1283 errors=1 failures=0>
>>>
Kind regards,
Chris
On Mon, Jul 7, 2008 at 3:11 PM, Chris Bartels <c.l.l.bartels at gmail.com>
wrote:
> Hi David (and others)
>
> This issue is known:
> http://www.scipy.org/scipy/numpy/ticket/811
>
> I think this is an issue for the numpy developers. (I don't know how to fix
> this easily, i can try to install an older version of binutils (if cygwin
> has these), but this will probably break a lot of other stuff. So that is
> not my preferred solution.)
>
> Kind regards,
> Chris
>
>
>
> On Mon, Jul 7, 2008 at 2:55 PM, Chris Bartels <c.l.l.bartels at gmail.com>
> wrote:
>
>> I created 2 symlinks (libpython2.5.a and libpython2.5.dll.a) in the
>> /usr/lib directory which both point to
>> /usr/lib/python2.5/config/libpython2.5.dll.a
>> This seems to solve the linker problem, now I just get some assembly
>> errors :p
>>
>> Included is a new buildlog, it ends with:
>>
>> gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umathmodule.c
>> In file included from numpy/core/src/umathmodule.c.src:2183:
>> numpy/core/src/ufuncobject.c: In function `_extract_pyvals':
>> numpy/core/src/ufuncobject.c:1164: warning: int format, long int arg (arg
>> 4)
>> numpy/core/src/ufuncobject.c:1164: warning: int format, long int arg (arg
>> 5)
>> /tmp/ccWY4IyY.s: Assembler messages:
>> /tmp/ccWY4IyY.s:72160: Error: suffix or operands invalid for `fnstsw'
>> /tmp/ccWY4IyY.s:72415: Error: suffix or operands invalid for `fnstsw'
>> In file included from numpy/core/src/umathmodule.c.src:2183:
>> numpy/core/src/ufuncobject.c: In function `_extract_pyvals':
>> numpy/core/src/ufuncobject.c:1164: warning: int format, long int arg (arg
>> 4)
>> numpy/core/src/ufuncobject.c:1164: warning: int format, long int arg (arg
>> 5)
>> /tmp/ccWY4IyY.s: Assembler messages:
>> /tmp/ccWY4IyY.s:72160: Error: suffix or operands invalid for `fnstsw'
>> /tmp/ccWY4IyY.s:72415: Error: suffix or operands invalid for `fnstsw'
>> error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
>> -Wstrict-prototypes -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/src
>> -Inumpy/core/include -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core
>> -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5
>> -I/usr/include/python2.5 -c
>> build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umathmodule.c -o
>> build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umathmodule.o"
>> failed with exit status 1
>>
>> Kind regards,
>> Chris
>>
>>
>> On Mon, Jul 7, 2008 at 2:38 PM, Chris Bartels <c.l.l.bartels at gmail.com>
>> wrote:
>>
>>> Hi David,
>>>
>>> I just discovered this:
>>> http://mail.python.org/pipermail/python-bugs-list/2006-April/032817.html
>>>
>>> I'm currently trying.
>>>
>>>
>>>
>>>
>>> On Mon, Jul 7, 2008 at 2:22 PM, David Cournapeau <
>>> david at ar.media.kyoto-u.ac.jp> wrote:
>>>
>>>> Chris Bartels wrote:
>>>> > Hi David,
>>>> >
>>>> > Thanks again.
>>>> >
>>>> > Unfortunately these variables are not set in the environment. (I
>>>> > checked with 'env'.)
>>>> > I also reinstalled the cygwin python package (again) and ran 'find .
>>>> > -name libpython* -print', this gives:
>>>> >
>>>> > /usr/bin/libpython2.5.dll
>>>> > /usr/lib/python2.5/config/libpython2.5.dll.a
>>>> >
>>>>
>>>> Mmh, ok, I am out of ideas by only looking at your build.log. I don't
>>>> understand why the linker does not get any LIBPATH information; I will
>>>> take a look by compiling it by myself, then,
>>>>
>>>> cheers,
>>>>
>>>> David
>>>> _______________________________________________
>>>> Numpy-discussion mailing list
>>>> Numpy-discussion at scipy.org
>>>> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080707/3a431e40/attachment.html>
More information about the NumPy-Discussion
mailing list