TST test failure on Ubuntu, random.seed #1682

Closed
josef-pkt opened this Issue May 22, 2014 · 0 comments

Projects

None yet

1 participant

@josef-pkt
Member

test failure on Ubuntu pythonxy testing introduced in #1679

https://launchpadlibrarian.net/176078294/buildlog_ubuntu-saucy-i386.statsmodels_0.6.0~ppa18~revno-1649~ubuntu13.10.1_UPLOADING.txt.gz

64bit version is green
seed too large ?

======================================================================
ERROR: statsmodels.genmod.tests.test_glm.TestGlmPoissonOffset.test_offset_exposure
----------------------------------------------------------------------
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/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/genmod/tests/test_glm.py", line 499, in test_offset_exposure
    np.random.seed(38230482384)
  File "mtrand.pyx", line 600, in mtrand.RandomState.seed (numpy/random/mtrand/mtrand.c:5270)
ValueError: object of too small depth for desired array

======================================================================
ERROR: statsmodels.genmod.tests.test_glm.TestGlmPoissonOffset.test_predict
----------------------------------------------------------------------
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/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/genmod/tests/test_glm.py", line 512, in test_predict
    np.random.seed(38230482384)
  File "mtrand.pyx", line 600, in mtrand.RandomState.seed (numpy/random/mtrand/mtrand.c:5270)
ValueError: object of too small depth for desired array

same test failure on both Debian nipy testing machines with different error message, and breaks on a different line

======================================================================
ERROR: statsmodels.genmod.tests.test_glm.TestGlmPoissonOffset.test_offset_exposure
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/statsmodels-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/buildslave/nd-bb-slave-sparc-sid/statsmodels-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/statsmodels-0.6.0-py2.7-linux-sparc64.egg/statsmodels/genmod/tests/test_glm.py", line 499, in test_offset_exposure
    np.random.seed(38230482384)
  File "mtrand.pyx", line 606, in mtrand.RandomState.seed (numpy/random/mtrand/mtrand.c:5712)
OverflowError: long int too large to convert

======================================================================
ERROR: statsmodels.genmod.tests.test_glm.TestGlmPoissonOffset.test_predict
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/statsmodels-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/buildslave/nd-bb-slave-sparc-sid/statsmodels-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/statsmodels-0.6.0-py2.7-linux-sparc64.egg/statsmodels/genmod/tests/test_glm.py", line 512, in test_predict
    np.random.seed(38230482384)
  File "mtrand.pyx", line 606, in mtrand.RandomState.seed (numpy/random/mtrand/mtrand.c:5712)
OverflowError: long int too large to convert

----------------------------------------------------------------------
@josef-pkt josef-pkt changed the title from TST test failure on Ubuntu in to TST test failure on Ubuntu, random.seed May 22, 2014
@josef-pkt josef-pkt closed this in 9fbe277 May 22, 2014
@Padarn Padarn added a commit to Padarn/statsmodels that referenced this issue May 23, 2014
@josef-pkt @Padarn josef-pkt + Padarn TST: GLM shorten random seed closes #1682 a8d84d4
@PierreBdR PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this issue Sep 2, 2014
@josef-pkt josef-pkt TST: GLM shorten random seed closes #1682 083bb82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment