Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11262 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2019-01-22 20:40 +0100 |
| Last post | 2019-01-22 23:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.maint.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Build time test failures for seaborn 0.9 (Was: seaborn - update to 0.9 - where is debian folder on salsa?) Andreas Tille <andreas@an3as.eu> - 2019-01-22 20:40 +0100
Re: Build time test failures for seaborn 0.9 (Was: seaborn - update to 0.9 - where is debian folder on salsa?) Yaroslav Halchenko <debian@onerussian.com> - 2019-01-22 23:40 +0100
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2019-01-22 20:40 +0100 |
| Subject | Build time test failures for seaborn 0.9 (Was: seaborn - update to 0.9 - where is debian folder on salsa?) |
| Message-ID | <xja3U-1DQ-7@gated-at.bofh.it> |
Hi,
On Tue, Jan 22, 2019 at 08:03:22PM +0100, Andreas Tille wrote:
>
> > IgDiscover needs it in a version different from 0.8 to circumvent a
> > bug that the testing of their plot routine triggers
> > https://github.com/NBISweden/IgDiscover/issues/78. I somewhat happily
> > address the update to 0.9.
I tried to upgrade seaborn to version 0.9 in Git[1]. Unfortunately
the build time test suite throws a lot of errors:
debian/rules override_dh_auto_test
make[1]: Entering directory '/build/seaborn-0.9.0'
xvfb-run --auto-servernum --server-num=20 dh_auto_test override_dh_auto_test
I: pybuild base:217: cd /build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build; python2.7 -m nose -v.
Test that bootstrapping gives the right answer in dumb cases. ... ERROR
Test that we get a bootstrap array of the right shape. ... ERROR
...
======================================================================
ERROR: Test that bootstrapping gives the right answer in dumb cases.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
TypeError: test_bootstrap() takes exactly 1 argument (0 given)
-------------------- >> begin captured logging << --------------------
matplotlib: DEBUG: $HOME=/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn
matplotlib: DEBUG: matplotlib data path /usr/share/matplotlib2/mpl-data
matplotlib: DEBUG: loaded rc file /build/seaborn-0.9.0/build/matplotlibrc
matplotlib: DEBUG: matplotlib version 2.2.3
matplotlib: DEBUG: interactive is False
matplotlib: DEBUG: platform is linux2
matplotlib: DEBUG: loaded modules: ['email.MIMEAudio', 'numpy.core.info', 'nose.plugins.doctest', 'nose.plugins.tempfile', 'ctypes.os', 'hotshot.warnings', 'runpy', 'gc', 'pkg_resources
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
TypeError: test_bootstrap() takes exactly 1 argument (0 given)
-------------------- >> begin captured logging << --------------------
matplotlib: DEBUG: $HOME=/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn
matplotlib: DEBUG: matplotlib data path /usr/share/matplotlib2/mpl-data
...
matplotlib.font_manager: DEBUG: createFontDict: /usr/share/matplotlib2/mpl-data/fonts/afm/phvbo8an.afm
matplotlib.font_manager: DEBUG: createFontDict: /usr/share/matplotlib2/mpl-data/fonts/pdfcorefonts/Courier-BoldOblique.afm
matplotlib.font_manager: INFO: generated new fontManager
matplotlib.backends: DEBUG: backend agg version v2.2
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Test that we get a bootstrap array of the right shape.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
TypeError: test_bootstrap_length() takes exactly 1 argument (0 given)
======================================================================
ERROR: Test that boostrapping a random array stays within the right range.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
TypeError: test_bootstrap_range() takes exactly 1 argument (0 given)
...
======================================================================
FAIL: seaborn.tests.test_regression.TestRegressionPlots.test_three_point_colors
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build/seaborn/tests/test_regression.py", line 589, in test_three_point_colors
(1, 0, 0))
File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", line 568, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", line 980, in assert_array_almost_equal
precision=decimal)
File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", line 796, in assert_array_compare
raise AssertionError(msg)
AssertionError:.
Arrays are not almost equal to 7 decimals
(mismatch 100.0%)
x: array([0.4 , 0.7607843, 0.6470588])
y: array([1, 0, 0])
----------------------------------------------------------------------
Ran 523 tests in 55.053s
FAILED (SKIP=5, errors=99, failures=28)
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build; python2.7 -m nose -v.
Any idea how to fix this?
Kind regards
Andreas.
[1] https://salsa.debian.org/science-team/seaborn
--
http://fam-tille.de
[toc] | [next] | [standalone]
| From | Yaroslav Halchenko <debian@onerussian.com> |
|---|---|
| Date | 2019-01-22 23:40 +0100 |
| Subject | Re: Build time test failures for seaborn 0.9 (Was: seaborn - update to 0.9 - where is debian folder on salsa?) |
| Message-ID | <xjcS6-3m4-19@gated-at.bofh.it> |
| In reply to | #11262 |
Quick one takes exactly 1 argument (0 given) suggests that bay be upstream switched from nose to pytest and started to use it's magical fixtures. Try using -m pytest instead of -m nose On January 22, 2019 2:35:50 PM EST, Andreas Tille <andreas@an3as.eu> wrote: >Hi, > >On Tue, Jan 22, 2019 at 08:03:22PM +0100, Andreas Tille wrote: >> >> > IgDiscover needs it in a version different from 0.8 to circumvent a >> > bug that the testing of their plot routine triggers >> > https://github.com/NBISweden/IgDiscover/issues/78. I somewhat >happily >> > address the update to 0.9. > >I tried to upgrade seaborn to version 0.9 in Git[1]. Unfortunately >the build time test suite throws a lot of errors: > > > debian/rules override_dh_auto_test >make[1]: Entering directory '/build/seaborn-0.9.0' >xvfb-run --auto-servernum --server-num=20 dh_auto_test >override_dh_auto_test >I: pybuild base:217: cd >/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build; python2.7 -m >nose -v. >Test that bootstrapping gives the right answer in dumb cases. ... ERROR >Test that we get a bootstrap array of the right shape. ... ERROR >... >====================================================================== >ERROR: Test that bootstrapping gives the right answer in dumb cases. >---------------------------------------------------------------------- >Traceback (most recent call last): >File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in >runTest > self.test(*self.arg) >TypeError: test_bootstrap() takes exactly 1 argument (0 given) >-------------------- >> begin captured logging << -------------------- >matplotlib: DEBUG: >$HOME=/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn >matplotlib: DEBUG: matplotlib data path /usr/share/matplotlib2/mpl-data >matplotlib: DEBUG: loaded rc file >/build/seaborn-0.9.0/build/matplotlibrc >matplotlib: DEBUG: matplotlib version 2.2.3 >matplotlib: DEBUG: interactive is False >matplotlib: DEBUG: platform is linux2 >matplotlib: DEBUG: loaded modules: ['email.MIMEAudio', >'numpy.core.info', 'nose.plugins.doctest', 'nose.plugins.tempfile', >'ctypes.os', 'hotshot.warnings', 'runpy', 'gc', 'pkg_resources >File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in >runTest > self.test(*self.arg) >TypeError: test_bootstrap() takes exactly 1 argument (0 given) >-------------------- >> begin captured logging << -------------------- >matplotlib: DEBUG: >$HOME=/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn >matplotlib: DEBUG: matplotlib data path /usr/share/matplotlib2/mpl-data >... >matplotlib.font_manager: DEBUG: createFontDict: >/usr/share/matplotlib2/mpl-data/fonts/afm/phvbo8an.afm >matplotlib.font_manager: DEBUG: createFontDict: >/usr/share/matplotlib2/mpl-data/fonts/pdfcorefonts/Courier-BoldOblique.afm >matplotlib.font_manager: INFO: generated new fontManager >matplotlib.backends: DEBUG: backend agg version v2.2 >--------------------- >> end captured logging << --------------------- > >====================================================================== >ERROR: Test that we get a bootstrap array of the right shape. >---------------------------------------------------------------------- >Traceback (most recent call last): >File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in >runTest > self.test(*self.arg) >TypeError: test_bootstrap_length() takes exactly 1 argument (0 given) > >====================================================================== >ERROR: Test that boostrapping a random array stays within the right >range. >---------------------------------------------------------------------- >Traceback (most recent call last): >File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in >runTest > self.test(*self.arg) >TypeError: test_bootstrap_range() takes exactly 1 argument (0 given) >... >====================================================================== >FAIL: >seaborn.tests.test_regression.TestRegressionPlots.test_three_point_colors >---------------------------------------------------------------------- >Traceback (most recent call last): >File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in >runTest > self.test(*self.arg) >File >"/build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build/seaborn/tests/test_regression.py", >line 589, in test_three_point_colors > (1, 0, 0)) >File >"/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", >line 568, in assert_almost_equal > return assert_array_almost_equal(actual, desired, decimal, err_msg) >File >"/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", >line 980, in assert_array_almost_equal > precision=decimal) >File >"/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", >line 796, in assert_array_compare > raise AssertionError(msg) >AssertionError:. >Arrays are not almost equal to 7 decimals > >(mismatch 100.0%) > x: array([0.4 , 0.7607843, 0.6470588]) > y: array([1, 0, 0]) > >---------------------------------------------------------------------- >Ran 523 tests in 55.053s > >FAILED (SKIP=5, errors=99, failures=28) >E: pybuild pybuild:338: test: plugin distutils failed with: exit >code=1: cd /build/seaborn-0.9.0/.pybuild/cpython2_2.7_seaborn/build; >python2.7 -m nose -v. > > > >Any idea how to fix this? > >Kind regards > > Andreas. > >[1] https://salsa.debian.org/science-team/seaborn
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web