[SciPy-dev] misprint & system_info.py problem

Arnd Baecker arnd.baecker at web.de
Tue Mar 2 02:59:01 CST 2004


Hi,

I just checked out the CVS version (scipy.__version__, '0.2.1_253.3734' )
and found two small issues

a) >>> help("scipy.xplt")
 File
"/opt/python/lib/python2.3/site-packages/scipy/optimize/optimize.py", line
268
    if (c<=0) or (i%3)==2):
                         ^
SyntaxError: invalid syntax

Removing the additional bracket fixes the problem.

b)  python scipy_core/scipy_distutils/system_info.py
   gives the following error (shortened, full output at the end):

python scipy_core/scipy_distutils/system_info.py
atlas_blas_info:
[...]
atlas_blas_threads_info:
[...]
atlas_info:
[...]
system_info.atlas_info
[...]
atlas_threads_info:
[...]
blas_info:
[...]
blas_opt_info:
Traceback (most recent call last):
  File "scipy_core/scipy_distutils/system_info.py", line 1190, in ?
    show_all()
  File "scipy_core/scipy_distutils/system_info.py", line 1187, in show_all
    r = c.get_info()
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 279, in get_info
    self.calc_info()
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 930, in calc_info
    atlas_version = get_atlas_version(**version_info)
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 771, in get_atlas_version
    from scipy_distutils.core import Extension, setup
ImportError: No module named scipy_distutils.core


   This happens before doing a scipy installation, i.e.
   if there are no scipy* in site-packages.
   After the installation `python
      scipy_core/scipy_distutils/system_info.py`
   works fine. This may have been like this for quite a while
   as normally I don't remove the scipy* directories in site-packages.

Many thanks,

Arnd

Full output:
-----------

python scipy_core/scipy_distutils/system_info.py
atlas_blas_info:
( library_dirs = /opt/python/lib:/usr/local/lib:/usr/lib )
( paths: /opt/python/lib/libf77blas.a )
( paths: /opt/python/lib/libcblas.a )
( paths: /opt/python/lib/libatlas.a )
system_info.atlas_blas_info
( include_dirs = /usr/local/include:/usr/include:/opt/python/include )
( paths: /opt/python/lib/cblas.h )
  FOUND:
    libraries = ['f77blas', 'cblas', 'atlas']
    library_dirs = ['/opt/python/lib']
    language = c
    include_dirs = ['/opt/python/lib']

atlas_blas_threads_info:
( library_dirs = /opt/python/lib:/usr/local/lib:/usr/lib )
( paths: /opt/python/lib/libatlas.a )
system_info.atlas_blas_threads_info
  NOT AVAILABLE

atlas_info:
( library_dirs = /opt/python/lib:/usr/local/lib:/usr/lib )
( paths: /opt/python/lib/libf77blas.a )
( paths: /opt/python/lib/libcblas.a )
( paths: /opt/python/lib/libatlas.a )
( paths: /opt/python/lib/liblapack.a )
system_info.atlas_info
( include_dirs = /usr/local/include:/usr/include:/opt/python/include )
( paths: /opt/python/lib/cblas.h )
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/opt/python/lib']
    language = f77
    include_dirs = ['/opt/python/lib']

atlas_threads_info:
( library_dirs = /opt/python/lib:/usr/local/lib:/usr/lib )
( paths: /opt/python/lib/libatlas.a )
system_info.atlas_threads_info
  NOT AVAILABLE

blas_info:
( library_dirs = /opt/python/lib:/usr/local/lib:/usr/lib )
( paths: /usr/lib/libblas.so )
  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib']
    language = f77

blas_opt_info:
Traceback (most recent call last):
  File "scipy_core/scipy_distutils/system_info.py", line 1190, in ?
    show_all()
  File "scipy_core/scipy_distutils/system_info.py", line 1187, in show_all
    r = c.get_info()
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 279, in get_info
    self.calc_info()
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 930, in calc_info
    atlas_version = get_atlas_version(**version_info)
  File
"/tmp/baecker/CompileDir/scipy/scipy_core/scipy_distutils/system_info.py",
line 771, in get_atlas_version
    from scipy_distutils.core import Extension, setup
ImportError: No module named scipy_distutils.core




More information about the Scipy-dev mailing list