[SciPy-User] Problem with self-built numpy 1.4.1 on kubuntu lucid

Yosef Meller yosefmel@post.tau.ac...
Wed Jul 21 07:02:33 CDT 2010


Hi, 

I'm trying to build numpy 1.4.1 on an Ubuntu Lucid system. I've done this 
recently on a similar system and it went fine. But here, the build finishes fine, 
but the tests give me errors (see below).

I can;t find what I'm doing wrong, and searching the web didn't find earlier 
reports of this. Any idea?

Thanks,
Yosef.

--------------
In [3]: import numpy

In [4]: numpy.test()
Running unit tests for numpy
NumPy version 1.4.1
NumPy is installed in /usr/local/lib/python2.6/dist-packages/numpy
Python version 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3]
nose version 0.11.1
.EEEEEEEEEEE..........................................................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................SSS...........................................................................................................................................................................................................................................K........................................................................................K......................K.K......................................................................................................EEEEEEE.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_creation (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 10, in test_creation
    dt1 = np.dtype('M8[750%s]'%unit)
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_as (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 58, in 
test_divisor_conversion_as
    self.assertRaises(ValueError, lambda : np.dtype('M8[as/10]'))
  File "/usr/lib/python2.6/unittest.py", line 336, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 58, in <lambda>
    self.assertRaises(ValueError, lambda : np.dtype('M8[as/10]'))
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_bday (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 32, in 
test_divisor_conversion_bday
    assert np.dtype('M8[B/12]') == np.dtype('M8[2h]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_day (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 37, in 
test_divisor_conversion_day
    assert np.dtype('M8[D/12]') == np.dtype('M8[2h]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_fs (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 54, in 
test_divisor_conversion_fs
    assert np.dtype('M8[fs/100]') == np.dtype('M8[10as]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_hour (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 42, in 
test_divisor_conversion_hour
    assert np.dtype('m8[h/30]') == np.dtype('m8[2m]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_minute (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 46, in 
test_divisor_conversion_minute
    assert np.dtype('m8[m/30]') == np.dtype('m8[2s]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_month (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 21, in 
test_divisor_conversion_month
    assert np.dtype('M8[M/2]') == np.dtype('M8[2W]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_second (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 50, in 
test_divisor_conversion_second
    assert np.dtype('m8[s/100]') == np.dtype('m8[10ms]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_week (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 26, in 
test_divisor_conversion_week
    assert np.dtype('m8[W/5]') == np.dtype('m8[B]')
TypeError: data type not understood

======================================================================
ERROR: test_divisor_conversion_year (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-
packages/numpy/core/tests/test_datetime.py", line 16, in 
test_divisor_conversion_year
    assert np.dtype('M8[Y/4]') == np.dtype('M8[3M]')
TypeError: data type not understood

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_callback.py", line 4, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_mixed.py", line 7, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_return_character.py", line 3, in <module>
    from numpy.compat import asbytes
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_return_complex.py", line 3, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_return_integer.py", line 3, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_return_logical.py", line 3, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

======================================================================
ERROR: Failure: ImportError (cannot import name asbytes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/lib/python2.6/dist-
packages/numpy/f2py/tests/test_return_real.py", line 4, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/numpy/f2py/tests/util.py", line 
21, in <module>
    from numpy.compat import asbytes, asstr
ImportError: cannot import name asbytes

----------------------------------------------------------------------
Ran 2501 tests in 9.603s

FAILED (KNOWNFAIL=4, SKIP=11, errors=18)
Out[4]: <nose.result.TextTestResult run=2501 errors=18 failures=0>


More information about the SciPy-User mailing list