[Python-modules-team] Bug#948432: uncertainties ftbfs with Python 3.8

Matthias Klose doko at debian.org
Wed Jan 8 16:08:45 GMT 2020


Package: src:uncertainties
Version: 3.0.2.github-3
Severity: serious
Tags: sid bullseye

uncertainties ftbfs with Python 3.8:

[...]
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test -O--buildsystem=pybuild
	pybuild --test --test-nose -i python{version} -p "3.8 3.7"
I: pybuild base:217: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build; python3.8 -m nose -v
Failure: TypeError ('NoneType' object is not subscriptable) ... ERROR
Comparison between function derivatives and numerical derivatives. ... ok
Test equality between different formulas. ... ok
Test specific numerical examples ... ok
Full comparison to a Monte-Carlo calculation. ... ok
Operations with the math module ... ok
Special cases where derivatives cannot be calculated: ... ok
Test special cases of umath_core.pow(). ... ok
Checks special cases of umath_core.pow(). ... ok
Checks special cases of the umath_core.pow() power operator. ... ok
Tests the various means of constructing a constant number with ...
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:259:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  x2 = ufloat(representation)  # Obsolete
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:267:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  x2 = ufloat(representation, "pi")  # Obsolete
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:275:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  x2 = ufloat(representation, tag="pi")  # Obsolete
ok
Input of numbers with uncertainties as a string ...
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:382:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  num = ufloat(representation)  # Obsolete
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:388:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  num = ufloat(representation, 'test variable')  # Obsolete
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:394:
UserWarning: Obsolete: either use ufloat(nominal_value, std_dev),
ufloat(nominal_value, std_dev, tag), or the ufloat_fromstr() function, for
string representations. Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  num = ufloat(representation, tag='test variable')  # Obsolete
ok
Pre-calculated derivatives for operations on AffineScalarFunc. ... ok
Standard copy module integration ... ok
Standard pickle module integration. ... ok
Integer division ... ok
Test of comparison operators ... ok
Boolean logic: __nonzero__, bool. ... ok
Tests some obsolete creation of number with uncertainties ...
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:737:
UserWarning: Obsolete: instead of set_std_dev(), please use .std_dev = ... Code
can be automatically updated with python -m uncertainties.1to2 -w ProgramDirectory.
  x.set_std_dev.__call__(0.2)  # Obsolete
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/test_uncertainties.py:740:
UserWarning: Obsolete: the std_dev attribute should not be called anymore: use
.std_dev instead of .std_dev(). Code can be automatically updated with python -m
uncertainties.1to2 -w ProgramDirectory.
  assert x_std_dev() == 0.2  # Obsolete call
ok
Access to data from Variable and AffineScalarFunc objects. ... ok
Correlations between variables ... ok
Coercion of Variable object to a simple float. ... ok
Wrap a function that takes only positional-or-keyword parameters. ... ok
Wrap a function that takes only positional-or-keyword and ... ok
Wrap a function that takes only positional-or-keyword and ... ok
Wrap a function that takes positional-or-keyword, var-positional ... ok
Test uncertainty-aware functions obtained through wrapping. ... ok
Tests wrap() on functions with keyword arguments. ... ok
Uniform access to the standard deviation ... ok
Covariance matrix ... ok
Checks all cases for the value and derivatives of x**p. ... ok
Checks special cases of x**p. ... ok
Checks special cases of the built-in pow() power operator. ... ok
Test of the calculation of the number of significant digits for ... ok
Test the representation of numbers with uncertainty. ... ok
Test the formatting of numbers with uncertainty. ... ok
Test of the unicode formatting of numbers with uncertainties ... ok
Comparison with a Numpy array. ... ok
Correlated variables. ... ok
Tests the input of correlated value. ... ok

======================================================================
ERROR: Failure: TypeError ('NoneType' object is not subscriptable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in
loadTestsFromName
    module = self.importer.importFromPath(
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.8/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.8/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/unumpy/__init__.py",
line 73, in <module>
    from .core import *
  File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_uncertainties/build/uncertainties/unumpy/core.py",
line 535, in <module>
    pinv_default = numpy.linalg.pinv.__defaults__[0]  # Python 1, 2.6+:
TypeError: 'NoneType' object is not subscriptable

----------------------------------------------------------------------
Ran 40 tests in 1.461s

FAILED (errors=1)



More information about the Python-modules-team mailing list