
OK. What was the actual error then? SfePy should not fail when matplotlib is missing. At least we could do something to raise a more meaningful error in that case. :)
Thanks, r.
On 10/24/2016 09:59 AM, firdaus prabowo wrote:
Hi Robert,
Thanks for the rapid response. :)
I caught the actual error by running all the tests using --raise. Somehow matplotlib is uninstalled. I reinstalled it using conda, and all tests are successfully executed.
Cheers, Firdaus
On Monday, 24 October 2016 15:34:58 UTC+8, Robert Cimrman wrote:
Hi,
On 10/24/2016 09:24 AM, firdaus prabowo wrote:
Hi,
I'm using Ubuntu 16.04, and used anaconda python 2.7 environment to run sfepy. Only 2 errors from the testing.
96 test file(s) executed in 194.69 s, 2 failure(s) of 157 test(s)
They are: +++ test_input: ok tests/test_input_balloon.py warp violation -9.511205e-01 at (iel: 196, iqp: 0)! warp violation -9.511205e-01 at (iel: 196, iqp: 1)! warp violation -9.511205e-01 at (iel: 196, iqp: 2)! warp violation -9.511205e-01 at (iel: 196, iqp: 3)!
and
+++ test_input: ok tests/test_input_linear_elastic_mM.py
/home/fp/anaconda3/envs/py27/lib/python2.7/site-packages/scikits/umfpack/umfpack.py:718:
UmfpackWarning: (almost) singular matrix! (estimated cond. number:
2.59e+12)
warnings.warn(msg, UmfpackWarning)
Those are just warnings and are expected. When run, separately, the tests report success, as you can see in the output you posted below. So I do not really understand, why the two failures are reported above, when all the tests are run together. Anyway, it seems that your installation works well.
What happens when you run all the tests with --raise?
r.
Below are the outputs using --raise argument:
Error 1: (py27) fp@fp-Aspire-S7-392:~/sfepy$ python run_tests.py --raise tests/test_input_balloon.py
<snip> > ... ../examples/large_deformation/balloon.py solved > +++ test_input: ok >>>> all passed in 24.77 s > 1 test file(s) executed in 24.77 s, 0 failure(s) of 1 test(s) > > > Error #2: > (py27) fp@fp-Aspire-S7-392:~/sfepy$ python run_tests.py --raise > ... ../examples/homogenization/linear_elastic_mM.py solved <snip> > +++ test_input: ok >>>> all passed in 3.28 s > 1 test file(s) executed in 3.28 s, 0 failure(s) of 1 test(s) > > >