[SciPy-Dev] Fwd: scipy.test gives error

K.-Michael Aye kmichael.aye@gmail....
Thu Oct 20 06:59:05 CDT 2011


Motivated by this simple way to start some tests, I tried this on my 
Enthought installation, but it fails very early without running any 
test? What is going wrong? Do I see it right, that a os.getcwd() 
returns 'No such file or directory'? How can that be possible?

maye@paradigm: results$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.1-2 (32-bit)

Python 2.7.2 |EPD 7.1-2 (32-bit)| (default, Jul 27 2011, 13:29:32) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "packages", "demo" or "enthought" for more information.
>>> exit()
maye@paradigm: results$ python -c 'import scipy;scipy.test(verbose=10)'
Running unit tests for scipy
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/numpy/testing/nosetester.py", 
line 318, in test
    self._show_system_info()
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/numpy/testing/nosetester.py", 
line 187, in _show_system_info
    nose = import_nose()
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/numpy/testing/nosetester.py", 
line 56, in import_nose
    import nose
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/nose/__init__.py", 
line 1, in <module>
    from nose.core import collector, main, run, run_exit, runmodule
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/nose/core.py", 
line 11, in <module>
    from nose.config import Config, all_config_files
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/nose/config.py", 
line 9, in <module>
    from nose.plugins.manager import NoPlugins
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/nose/plugins/__init__.py", 
line 156, in <module>
    from nose.plugins.manager import *
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/nose/plugins/manager.py", 
line 405, in <module>
    import pkg_resources
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 2699, in <module>
    _declare_state('object', working_set = WorkingSet())
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 435, in __init__
    self.add_entry(entry)
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 450, in add_entry
    for dist in find_distributions(entry, True):
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 1723, in find_on_path
    path_item = _normalize_cached(path_item)
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 1872, in _normalize_cached
    _cache[filename] = result = normalize_path(filename)
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pkg_resources.py", 
line 1866, in normalize_path
    return os.path.normcase(os.path.realpath(filename))
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/posixpath.py", 
line 375, in realpath
    return abspath(filename)
  File 
"/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/posixpath.py", 
line 347, in abspath
    cwd = os.getcwd()
OSError: [Errno 2] No such file or directory


On 2011-10-18 17:13:34 +0000, akshar bhosale said:

> python -c 'import scipy;scipy.test(verbose=10)' gives me :
> 
> NumPy version 1.6.0
> NumPy is installed in /home/akshar/.local/lib/python2.6/site-packages/numpy
> SciPy version 0.9.0
> SciPy is installed in /home/akshar/.local/lib/python2.6/site-packages/scipy
> Python version 2.6 (r26:66714, May 29 2011, 15:10:47) [GCC 4.1.2 
> 20071124 (Red Hat 4.1.2-42)]
> nose version 1.0.0
> nose.config: INFO: Excluding tests matching ['f2py_ext', 
> 'f2py_f90_ext', 'gen_ext', 'pyrex_ext', 'swig_ext']
> nose.selector: INFO: 
> /home/akshar/.local/lib/python2.6/site-packages/scipy/fftpack/convolve.so 
> is executable; skipped
> nose.selector: INFO: 
> /home/akshar/.local/lib/python2.6/site-packages/scipy/integrate/vode.so 
> is executable; skipped
> .
> .
> .
> .
> .
> Tests maxRstat(Z, R, 1) on linkage and inconsistency matrices with 
> different numbers of clusters. Expecting exception. ... ok
> Tests maxRstat(Z, R, 1) on empty linkage. Expecting exception. ... ok
> Tests maxRstat(Z, R, 1) on linkage with one cluster. ... ok
> Tests maxRstat(Z, R, 2) on the Q data set using centroid linkage. ... ok
> Tests maxRstat(Z, R, 2) on the Q data set using complete linkage. ... ok
> Tests maxRstat(Z, R, 2) on the Q data set using median linkage. ... ok
> Tests maxRstat(Z, R, 2) on the Q data set using single linkage. ... ok
> Tests maxRstat(Z, R, 2) on the Q data set using Ward linkage. ... ok
> Tests maxRstat(Z, R, 2) on linkage and inconsistency matrices with 
> different numbers of clusters. Expecting exception. ... ok
> Tests maxRstat(Z, R, 2) on empty linkage. Expecting exception. ... ok
> Tests maxRstat(Z, R, 2) on linkage with one cluster. ... ok
> Tests maxRstat(Z, R, 3) on the Q data set using centroid linkage. ... ok
> Tests maxRstat(Z, R, 3) on the Q data set using complete linkage. ... ok
> Tests maxRstat(Z, R, 3) on the Q data set using median linkage. ... ok
> Tests maxRstat(Z, R, 3) on the Q data set using single linkage. ... ok
> Tests maxRstat(Z, R, 3) on the Q data set using Ward linkage. ... ok
> Tests maxRstat(Z, R, 3) on linkage and inconsistency matrices with 
> different numbers of clusters. Expecting exception. ... ok
> Tests maxRstat(Z, R, 3) on empty linkage. Expecting exception. ... ok
> Tests maxRstat(Z, R, 3) on linkage with one cluster. ... ok
> Tests maxRstat(Z, R, 3.3). Expecting exception. ... ok
> Tests maxRstat(Z, R, -1). Expecting exception. ... ok
> Tests maxRstat(Z, R, 4). Expecting exception. ... ok
> Tests num_obs_linkage(Z) on linkage over 2 observations. ... ok
> Tests num_obs_linkage(Z) on linkage over 3 observations. ... ok
> Tests num_obs_linkage(Z) on linkage on observation sets between sizes 4 
> and 15 (step size 3). ... ok
> Tests num_obs_linkage(Z) with empty linkage. ... ok
> Tests to_mlab_linkage on linkage array with multiple rows. ... ok
> Tests to_mlab_linkage on empty linkage array. ... ok
> Tests to_mlab_linkage on linkage array with single row. ... ok
> test_hierarchy.load_testing_files ... ok
> Ticket #505. ... ok
> Testing that kmeans2 init methods work. ... MKL FATAL ERROR: Cannot 
> load libmkl_lapack.so
> 
> 
> ---------- Forwarded message ----------
> From: akshar bhosale <akshar.bhosale@gmail.com>
> Date: Tue, Oct 18, 2011 at 7:51 PM
> Subject: Fwd: scipy.test gives error
> To: scipy-dev@scipy.org
> 
> 
> 
> 
> 
> On Tue, Oct 18, 2011 at 12:23 PM, akshar bhosale 
> <akshar.bhosale@gmail.com> wrote:
> 
> 
> 
> ---------- Forwarded message ----------
> From: akshar bhosale <akshar.bhosale@gmail.com>
> Date: Mon, Oct 17, 2011 at 11:26 PM
> Subject: scipy.test gives error
> To: scipy-user@scipy.org, scipy-dev-owner@scipy.org
> 
> 
> Hi,
> scipy.test gives following error :
> MKL FATAL ERROR : can not load libmkl_lapack.so
> import numpy;import scipy does not throw any error.
> This library is present in the LD_LIBARY_PATH.
> What can be the issue? 
> These modules were installed few days back and used to work.
> 
> -Aksharb
> 
> 
> 
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20111020/e1bedd63/attachment.html 


More information about the SciPy-Dev mailing list