bob.ip.facedetect fails the test for Python 2.7 conda build

9 views
Skip to first unread message

Amir Mohammadi

unread,
Feb 26, 2016, 6:17:55 PM2/26/16
to bob-devel
The tests fail on Python 2.7 but pass on Python 3.5.
Python 2.7: https://travis-ci.org/bioidiap/bob.conda/jobs/112149880
Python 3.5: https://travis-ci.org/bioidiap/bob.conda/jobs/112149881

======================================================================

FAIL: bob.ip.facedetect.tests.test_scripts.test_training

----------------------------------------------------------------------

Traceback (most recent call last):

 File "/home/travis/miniconda/envs/_test/lib/python2.7/site-packages/nose/case.py", line 197, in runTest

   self.test(*self.arg)

 File "/home/travis/miniconda/envs/_test/lib/python2.7/site-packages/bob.ip.facedetect-2.0.4-py2.7-linux-x86_64.egg/bob/ip/facedetect/tests/test_scripts.py", line 133, in test_training

   assert os.path.exists(cascade_file)

AssertionError

======================================================================

FAIL: bob.ip.facedetect.tests.test_scripts.test_detection

----------------------------------------------------------------------

Traceback (most recent call last):

 File "/home/travis/miniconda/envs/_test/lib/python2.7/site-packages/nose/case.py", line 197, in runTest

   self.test(*self.arg)

 File "/home/travis/miniconda/envs/_test/lib/python2.7/site-packages/bob.ip.facedetect-2.0.4-py2.7-linux-x86_64.egg/bob/ip/facedetect/tests/test_scripts.py", line 147, in test_detection

   assert os.path.exists(cascade_file)

AssertionError




Manuel Günther

unread,
Feb 26, 2016, 6:47:18 PM2/26/16
to bob-devel
I don't really see, why it is not working with py27. Maybe you can replace the command line in subprocess.call(command, stdout=devnull),
to subprocess.call(command), so that the output of the script is not suppressed. Hopefully this given more insight on which of the steps do not work.

The second test failing is just a result of the first step failing, as these tests depend on each other.

Amir Mohammadi

unread,
Feb 27, 2016, 5:54:04 AM2/27/16
to bob-devel
This was an mkl issue related to conda.
They are going to release conda 4.0 next week which will take care of these mkl issues.
I added a temporary fix.
Reply all
Reply to author
Forward
0 new messages