[SciPy-user] failure of scipy.test(level=5)

eric jones eric at enthought.com
Mon Jun 10 02:15:50 CDT 2002


Hey Damian,

I expect this is a recently fixed bug in the weave tests.  The fixed
version is in CVS.  The nightly Linux tests/building of packages seems
to be hanging occasionally, so the source code on the download page may
be a little behind the actual CVS. 

The old test in test_inline_tools.py around line 25 was something like:

  throw throw_error(PyExc_ValueError,
                    "the variable 'a' should not be less than 2");

the new test code should be:

  throw_error(PyExc_ValueError,
              "the variable 'a' should not be less than 2");

If your code is like the second and you're still getting this error, let
me know.

Thanks,
eric

> -----Original Message-----
> From: scipy-user-admin at scipy.net [mailto:scipy-user-admin at scipy.net]
On
> Behalf Of damian
> Sent: Sunday, June 09, 2002 10:49 PM
> To: scipy-user at scipy.net
> Subject: [SciPy-user] failure of scipy.test(level=5)
> 
> Hello,
> 
> The result I get from the test are :
>
........................................................................
..
> ..........................................
> ======================================================================
> ERROR: check_exceptions (test_inline_tools.test_inline)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.2/site-
> packages/scipy/weave/tests/test_inline_tools.py",
> line 25, in check_exceptions
>     result = inline_tools.inline(code,['a'])
>   File "/usr/local/lib/python2.2/site-
> packages/scipy/weave/inline_tools.py",
> line 327, in inline
>     auto_downcast = auto_downcast,
>   File "/usr/local/lib/python2.2/site-
> packages/scipy/weave/inline_tools.py",
> line 426, in compile_function
>     verbose=verbose, **kw)
>   File
"/usr/local/lib/python2.2/site-packages/scipy/weave/ext_tools.py",
> line
> 321, in compile
>     verbose = verbose, **kw)
>   File "/usr/local/lib/python2.2/site-
> packages/scipy/weave/build_tools.py",
> line 203, in build_extension
>     setup(name = module_name, ext_modules = [ext],verbose=verb)
>   File "/usr/local/lib/python2.2/distutils/core.py", line 157, in
setup
>     raise SystemExit, "error: " + str(msg)
> CompileError: error: command 'gcc' failed with exit status 1
> 
> ----------------------------------------------------------------------
> Ran 601 tests in 244.250s
> 
> FAILED (errors=1)
> <unittest.TextTestRunner instance at 0x858556c>
> 
> 
> 
> 
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Platform information:
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>
> >>>>>>>>>>>>>>>>>>>>>>>>>
> 
> 	posix linux2
> uname -a:
> 	Linux localhost.localdomain 2.4.18-3smp #1 SMP Thu Apr 18
07:27:31
> EDT 2002
> i686
> 
> OS:  redhat 7.3
> 
> gcc -v:
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
> 
>  g77 --version
> GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.3 2.96-110)
> 
>  python22 -c 'import sys;print sys.version'
> 2.2.1 (#1, Jun  2 2002, 08:38:08)
> [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)]
> 
>  python22 -c 'import Numeric;print Numeric.__version__'
> 21.0
> 
> f2py:
> F2PY-2.13.175-1250
> 
> atlas:
> atlas3.4.0.
> the atlas libraries are located in /usr/local/lib/atals
> the lpack libraries are located in /usr/local/lib
> 
> system_info.py:
> atlas_info:
>   FOUND:
>     libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
>     library_dirs = ['/usr/local/lib', '/usr/local/lib/atlas']
> 
> fftw_info:
>   FOUND:
>     libraries = ['dfftw', 'drfftw', 'dfftw_threads', 'drfftw_threads']
>     library_dirs = ['/usr/local/lib']
>     define_macros = [('SCIPY_DFFTW_H', 1)]
>     include_dirs = ['/usr/local/include']
> 
> x11_info:
>   FOUND:
>     libraries = ['X11']
>     library_dirs = ['/usr/X11R6/lib']
>     include_dirs = ['/usr/X11R6/include']
>
........................................................................
..
> .............................
>  python22 build_flib.py
> command: f77 -V -c /tmp/__dummy.f -o /tmp/__dummy.o
> 256 f77: invalid version number format
> command: f77 -version
> 256 f77: unrecognized option `-version'
> /usr/bin/ld: cannot open output file a.out: Permission denied
> collect2: ld returned 1 exit status
> command: f90 -V
> 32512 sh: f90: command not found
> command: ifc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o
> 32512 sh: ifc: command not found
> command: efc -FI -V -c /tmp/__dummy.f -o /tmp/__dummy.o
> 32512 sh: efc: command not found
> command: f95 -V
> 32512 sh: f95: command not found
> command: fort -V
> 32512 sh: fort: command not found
> command: DF /what
> 32512 sh: DF: command not found
> command: g77 --version
> 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.3 2.96-110)
> Copyright (C) 1997 Free Software Foundation, Inc.
> For more version information on components of the GNU Fortran
> compilation system, especially useful when reporting bugs,
> type the command `g77 --verbose'.
> 
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> or type the command `info -f g77 Copying'.
> command: vf90 -v
> 32512 sh: vf90: command not found
> command: f90 +version
> 32512 sh: f90: command not found
> command: g77 --version
> 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.3 2.96-110)
> Copyright (C) 1997 Free Software Foundation, Inc.
> For more version information on components of the GNU Fortran
> compilation system, especially useful when reporting bugs,
> type the command `g77 --verbose'.
> 
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> or type the command `info -f g77 Copying'.
> command: F -V
> 32512 sh: F: command not found
> command: g77 --version
> 0 GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.3 2.96-110)
> Copyright (C) 1997 Free Software Foundation, Inc.
> For more version information on components of the GNU Fortran
> compilation system, especially useful when reporting bugs,
> type the command `g77 --verbose'.
> 
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> or type the command `info -f g77 Copying'.
> Gnu 0.5.26
> 
> 
> 
> 
> Thanks,
> D. Bernard
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user




More information about the SciPy-user mailing list