Closed ghisvail closed 9 years ago
OK, thanks for the report, I will investigate it.
2015-08-24 9:06 GMT+02:00 Ghislain Antony Vaillant <notifications@github.com
:
Hi Pierre,
Whilst refreshing the packaging for version 0.13.6, a portion of the test suite is now failing. It seems to be related to selected results within the doctest.
I: pybuild base:170: cd /home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose --with-doctest /home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/fft.py:28: PyOperatorsWarning: The pyFFTW library is not installed. warn('The pyFFTW library is not installed.', PyOperatorsWarning)
.......FF..F....FF..FF.......F.E..F.E
ERROR: Failure: ImportError (No module named pywt)
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 420, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/operators_pywt.py", line 8, in
import pywt ImportError: No module named pywt ERROR: Failure: ValueError (line 10 of the docstring for pyoperators.utils.misc.deprecated lacks blank after >>>: '>>>@deprecated')
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 154, in generate for r in result: File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 228, in loadTestsFromModule tests = self.finder.find(module) File "/usr/lib/python2.7/doctest.py", line 926, in find self._find(tests, obj, name, module, source_lines, globs, {}) File "/usr/lib/python2.7/doctest.py", line 980, in _find globs, seen) File "/usr/lib/python2.7/doctest.py", line 968, in _find test = self._get_test(obj, name, module, globs, source_lines) File "/usr/lib/python2.7/doctest.py", line 1052, in _get_test filename, lineno) File "/usr/lib/python2.7/doctest.py", line 671, in get_doctest return DocTest(self.get_examples(string, name), globs, File "/usr/lib/python2.7/doctest.py", line 685, in get_examples return [x for x in self.parse(string, name) File "/usr/lib/python2.7/doctest.py", line 647, in parse self._parse_example(m, name, lineno) File "/usr/lib/python2.7/doctest.py", line 705, in _parse_example self._check_prompt_blank(source_lines, indent, name, lineno) File "/usr/lib/python2.7/doctest.py", line 792, in _check_prompt_blank line[indent:indent+3], line)) ValueError: line 10 of the docstring for pyoperators.utils.misc.deprecated lacks blank after >>>: '>>>@deprecated'
FAIL: Doctest: pyoperators.iterative.optimize.FminCG
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.iterative.optimize.FminCG File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 143, in FminCG
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 280, in pyoperators.iterative.optimize.FminCG Failed example: res1 = optimize.fmin_cg(f, x0, fprime=gradf, args=args) Expected nothing Got: Optimization terminated successfully. Current function value: 1.617021 Iterations: 2 Function evaluations: 5
Gradient evaluations: 5
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 281, in pyoperators.iterative.optimize.FminCG Failed example: print 'res1 = ', res1 Expected: Optimization terminated successfully. Current function value: 1.617021 Iterations: 2 Function evaluations: 5 Gradient evaluations: 5 res1 = [-1.80851064 -0.25531915] Got:
res1 = [-1.80851064 -0.25531915]
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 299, in pyoperators.iterative.optimize.FminCG Failed example: res2 = optimize.minimize(f, x0, jac=gradf, args=args, method='CG', options=opts) Expected: Optimization terminated successfully. Current function value: 1.617021 Iterations: 2 Function evaluations: 5 Gradient evaluations: 5 Got: Optimization terminated successfully. Current function value: 1.617021 Iterations: 2 Function evaluations: 5
Gradient evaluations: 5
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 306, in pyoperators.iterative.optimize.FminCG Failed example: res2.x # minimum found Expected: array([-1.80851064 -0.25531915]) Got: array([-1.80851064, -0.25531915])
FAIL: Doctest: pyoperators.iterative.optimize.FminCOBYLA
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.iterative.optimize.FminCOBYLA File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 143, in FminCOBYLA
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/iterative/optimize.py", line 263, in pyoperators.iterative.optimize.FminCOBYLA Failed example: fmin_cobyla(objective, [0.0, 0.1], [constr1, constr2], rhoend=1e-7) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.iterative.optimize.FminCOBYLA[3]>", line 1, in
fmin_cobyla(objective, [0.0, 0.1], [constr1, constr2], rhoend=1e-7) NameError: name 'fmin_cobyla' is not defined FAIL: Doctest: pyoperators.linear.DenseOperator
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.linear.DenseOperator File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 273, in DenseOperator
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 299, in pyoperators.linear.DenseOperator Failed example: print(op.T(op(input))) Expected: [[ 1. 0.] [ 0. 1.] [-1. 0.] [ 0. -1.]] Got: [[ 1.00000000e+00 -1.01465364e-17] [ -1.01465364e-17 1.00000000e+00] [ -1.00000000e+00 1.01465364e-17] [ 1.01465364e-17 -1.00000000e+00]]
FAIL: Doctest: pyoperators.linear.Rotation2dOperator
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.linear.Rotation2dOperator File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 743, in Rotation2dOperator
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 757, in pyoperators.linear.Rotation2dOperator Failed example: r([1, 0]) Expected nothing Got: array([[ 7.07106781e-01, 7.07106781e-01], [ 6.12323400e-17, 1.00000000e+00]])
FAIL: Doctest: pyoperators.linear.Rotation3dOperator
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.linear.Rotation3dOperator File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 782, in Rotation3dOperator
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 823, in pyoperators.linear.Rotation3dOperator Failed example: print(r2([1, 0, 0])) Expected: [ 0.49240388 0.58682409 -0.64278761]d Got: [ 0.49240388 0.58682409 -0.64278761]
FAIL: Doctest: pyoperators.linear.SymmetricBandToeplitzOperator
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.linear.SymmetricBandToeplitzOperator File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1369, in SymmetricBandToeplitzOperator
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1378, in pyoperators.linear.SymmetricBandToeplitzOperator Failed example: N = SymmetricBandToeplitzOperator(5, [3, 2, 1, 1]) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in run compileflags, 1) in test.globs File "<doctest pyoperators.linear.SymmetricBandToeplitzOperator[0]>", line 1, in
N = SymmetricBandToeplitzOperator(5, [3, 2, 1, 1]) File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1410, in __init fplan = pyfftw.FFTW(NameError: global name 'pyfftw' is not defined
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1379, in pyoperators.linear.SymmetricBandToeplitzOperator Failed example: print(N.todense().astype(int)) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.linear.SymmetricBandToeplitzOperator[1]>", line 1, in
print(N.todense().astype(int)) NameError: name 'N' is not defined FAIL: Doctest: pyoperators.linear.TridiagonalOperator.init
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.linear.TridiagonalOperator.init File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1027, in init
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1049, in pyoperators.linear.TridiagonalOperator.init Failed example: import operators Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in run compileflags, 1) in test.globs File "<doctest pyoperators.linear.TridiagonalOperator.__init[0]>", line 1, in
import operators ImportError: No module named operators
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1050, in pyoperators.linear.TridiagonalOperator.init Failed example: T = operators.TridiagonalOperator([1, 2, 3], [4, 5], [6, 7]) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in run compileflags, 1) in test.globs File "<doctest pyoperators.linear.TridiagonalOperator.__init[1]>", line 1, in
T = operators.TridiagonalOperator([1, 2, 3], [4, 5], [6, 7]) NameError: name 'operators' is not defined
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/linear.py", line 1051, in pyoperators.linear.TridiagonalOperator.init Failed example: T.todense() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in run compileflags, 1) in test.globs File "<doctest pyoperators.linear.TridiagonalOperator.__init[2]>", line 1, in
T.todense() NameError: name 'T' is not defined FAIL: Doctest: pyoperators.nonlinear.NumexprOperator
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.nonlinear.NumexprOperator File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/nonlinear.py", line 603, in NumexprOperator
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/nonlinear.py", line 620, in pyoperators.nonlinear.NumexprOperator Failed example: print op(1) == np.exp(2.2) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.nonlinear.NumexprOperator[2]>", line 1 print op(1) == np.exp(2.2) ^ SyntaxError: invalid syntax
FAIL: Doctest: pyoperators.rules.RuleManager
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pyoperators.rules.RuleManager File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 255, in RuleManager
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 268, in pyoperators.rules.RuleManager Failed example: from pyoperators.rules import rules Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.rules.RuleManager[0]>", line 1, in
from pyoperators.rules import rules ImportError: cannot import name rules
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 269, in pyoperators.rules.RuleManager Failed example: rules['none'] = True Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.rules.RuleManager[1]>", line 1, in
rules['none'] = True NameError: name 'rules' is not defined
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 271, in pyoperators.rules.RuleManager Failed example: with rules(none=True): print(rules['none'])
in this context, operator simplification rules are inhibited
Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.rules.RuleManager[2]>", line 1, in
with rules(none=True): NameError: name 'rules' is not defined
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 274, in pyoperators.rules.RuleManager Failed example: print(rules['none']) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest pyoperators.rules.RuleManager[3]>", line 1, in
print(rules['none']) NameError: name 'rules' is not defined
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 279, in pyoperators.rules.RuleManager Failed example: print(rule_manager['none']) Expected nothing Got:
False
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 280, in pyoperators.rules.RuleManager Failed example: with rule_manager(none=True) as new_rule_manager: print(rule_manager['none']) with new_rule_manager(none=False): print(rule_manager['none']) print(rule_manager['none']) Expected nothing Got: True False
True
File "/home/ghislain/debian/packages/build-area/pyoperators-0.13.6/.pybuild/pythonX.Y_2.7/build/pyoperators/rules.py", line 285, in pyoperators.rules.RuleManager Failed example: print(rule_manager['none']) Expected: False True False True False Got: False
Ran 37 tests in 0.507s
FAILED (errors=2, failures=9)
Could you please update the tests so that calling nose --with-doctest succeeds.
Thanks, Ghis
— Reply to this email directly or view it on GitHub https://github.com/pchanial/pyoperators/issues/22.
La propagande est à la démocratie ce que la violence est à la dictature. Noam Chomsky
As a result of the FTBFS, the package is flagged for removal in Debian testing within the next few days. Please let me know of a quick / temporary patch that could be applied now if you are aware of one, whilst you work on fixing this.
Many thanks.
OK, I'm on it.
2015-09-15 9:41 GMT+02:00 Ghislain Antony Vaillant <notifications@github.com
:
As a result of the FTBFS, the package is flagged for removal in Debian testing within the next few days. Please let me know of a quick / temporary patch that could be applied now if you are aware of one, whilst you work on fixing this.
Many thanks.
— Reply to this email directly or view it on GitHub https://github.com/pchanial/pyoperators/issues/22#issuecomment-140308405 .
La propagande est à la démocratie ce que la violence est à la dictature. Noam Chomsky
The doctest should be fixed now, with or without the pyfftw or pywt package installed. Thanks!
Great, can you push a release tarball of 0.13.7
to pypi then?
Done!
2015-09-16 19:25 GMT+02:00 Ghislain Antony Vaillant < notifications@github.com>:
Great, can you push a release tarball of 0.13.7 to pypi then?
— Reply to this email directly or view it on GitHub https://github.com/pchanial/pyoperators/issues/22#issuecomment-140811673 .
La propagande est à la démocratie ce que la violence est à la dictature. Noam Chomsky
I am getting this:
python2.7 -m nose
/tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/fft.py:26: PyOperatorsWarning: The pyFFTW library is not installed.
warn('The pyFFTW library is not installed.', PyOperatorsWarning)
E
======================================================================
ERROR: Failure: NameError (name 'pywt' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 420, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/__init__.py", line 20, in <module>
from .operators_pywt import *
File "/tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/operators_pywt.py", line 29, in <module>
for l in pywt.wavelist():
NameError: name 'pywt' is not defined
----------------------------------------------------------------------
Ran 1 test in 0.109s
FAILED (errors=1)
Any clues for a fix?
FYI, I am not building with either pyFFTW
or pywt
.
ooops... my bad! I've uploaded 0.13.8 to fix that. Btw pywt should be added as a recommended dependency. And don't you think that pyFFTW should be made a mandatory dependency for debian's python-pyoperators ?
2015-09-16 21:11 GMT+02:00 Ghislain Antony Vaillant < notifications@github.com>:
I am getting this:
python2.7 -m nose /tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/fft.py:26: PyOperatorsWarning: The pyFFTW library is not installed. warn('The pyFFTW library is not installed.', PyOperatorsWarning)
E
ERROR: Failure: NameError (name 'pywt' is not defined)
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 420, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/init.py", line 20, in
from .operators_pywt import * File "/tmp/buildd/pyoperators-0.13.7/.pybuild/pythonX.Y_2.7/build/pyoperators/operators_pywt.py", line 29, in for l in pywt.wavelist(): NameError: name 'pywt' is not defined
Ran 1 test in 0.109s
FAILED (errors=1)
Any clues for a fix?
FYI, I am not building with either pyFFTW or pywt.
— Reply to this email directly or view it on GitHub https://github.com/pchanial/pyoperators/issues/22#issuecomment-140849695 .
La propagande est à la démocratie ce que la violence est à la dictature. Noam Chomsky
Hi Pierre,
Whilst refreshing the packaging for version
0.13.6
, a portion of the test suite is now failing. It seems to be related to selected results within the doctest.Could you please update the tests so that calling
nose --with-doctest
succeeds.Thanks, Ghis