[SciPy-User] 1.8.0rc1
Piet van Oostrum
piet at vanoostrum.org
Mon Oct 7 07:48:37 EDT 2013
Ralf Gommers <ralf.gommers at gmail.com> writes:
> On Sat, Oct 5, 2013 at 5:34 AM, Piet van Oostrum <piet at vanoostrum.org> wrote:
>
> Ralf Gommers <ralf.gommers at gmail.com> writes:
>
> > Piet, you should get one of the ones recommended at http://scipy.org/scipylib/building/
> macosx.html
> > #fortran
> >
> > The last error, test_io.TestSavezLoad, is real though. I can reproduce it, will try to
> figure it
> > out.
> >
> I have installed gfortran 4.2.3, which is the one recommended for Snow leopard:
>
> bash-3.2$ gfortran -v
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /Builds/unix/gcc/gcc-4.2/configure --prefix=/usr/local --mandir=/share/man
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --build=i686-apple-darwin8 --host=
> i686-apple-darwin8 --target=i686-apple-darwin8 --enable-languages=fortran
> Thread model: posix
> gcc version 4.2.3
>
> I can't reproduce it with the exact same OS and Fortran compiler. Looking at the tracebacks a bit
> more carefully, I see that the compile fails on missing symbols from the Python C API. Did you
> install Python with the dmg installer from python.org? And can you give the output of "$ locate
> Python.h"?
It does contain (among others) /Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m/Python.h (I am using Python 3.3.2)
I have some progress: I reinstalled XCode 3.2.6 after removing the old XCode. And I run the test with the default gcc, which is gcc-4.2 (=version 4.2.1).
$ gcc-4.2 -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
On my previous test I used
$ export CC=/usr/bin/gcc-4.0
$ export CXX=/usr/bin/g++-4.0
as recommended in http://scipy.org/scipylib/building/macosx.html, but maybe this recommendation is outdated as the Python is compiled with gcc version 4.2.1
Now there is only one error left:
ERROR: test_big_arrays (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
return f(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/lib/tests/test_io.py", line 149, in test_big_arrays
np.savez(tmp, a=a)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/lib/npyio.py", line 530, in savez
_savez(file, args, kwds, False)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/lib/npyio.py", line 589, in _savez
format.write_array(fid, np.asanyarray(val))
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/lib/format.py", line 417, in write_array
fp.write(array.tostring('C'))
OSError: [Errno 22] Invalid argument
That's the one you mentioned I think.
--
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
More information about the SciPy-User
mailing list