On Wed, 2009-04-15 at 09:36 +0200, Robert Cimrman wrote:
Hi osman,
thanks for the report!
osman wrote:
On Tue, 2009-04-14 at 10:11 +0200, Robert Cimrman wrote:
Hi all,
To try it out, clone the sfepy git repository as described at [1]. You also need ETS (mayavi2) [2].
Bug reports welcome! r. Hi Robert, I just cloned a new copy. Looks like some of the mesh test files are missing (abaqus ones). Also cube.bdf is misspelled cude.bdf. After correcting for these, I am getting one failure from the tests:
Yes, this is known, but I am waiting for new (smaller) abaqus meshes to include into the repository. It should be ok for the next release (to be soon).
tests/test_input_biot_npbc.py --- test_input: failed!
This is imho related to your scipy version. I have used .find() sparse matrix method, which had been apparently added only recently. To verify this, try
./runTests.py tests/test_input_biot_npbc.py --debug
stargate:/home/osman/SFE/sfepy-bash-> ./runTests.py tests/test_input_biot_npbc.py --debug <<< tests/test_input_biot_npbc.py sfepy: left over: ['__builtins__', '_filename', '__file__', 'TestInput', 'input_name', '__name__', 'output_name', '__doc__'] sfepy: left over: ['dim', '_filename', 'filename', 'geom', 'output_dir']
test instance prepared (1 test(s)) ... solving input/biot_npbc.py... sfepy: reading mesh (database/simple.mesh)... sfepy: ...done in 0.01 s sfepy: setting up domain edges... sfepy: ...done in 0.02 s sfepy: setting up domain faces... sfepy: ...done in 0.01 s sfepy: creating regions... sfepy: leaf Omega region_Omega__2 sfepy: leaf Rigid region_Rigid__0 sfepy: leaf Inlet region_Inlet__3 sfepy: leaf Outlet region_Outlet__4 sfepy: op Walls region_Walls__1 sfepy: ...done in 0.10 s sfepy: equation "eq_2": sfepy: dw_biot.i1.Omega( m.alpha, u, q ) + dw_diffusion.i1.Omega( m.K, q, p ) = 0 sfepy: equation "eq_1": sfepy: dw_lin_elastic.i1.Omega( m.D, v, u ) - dw_biot.i1.Omega( m.alpha, v, p ) = 0 sfepy: setting up dof connectivities... sfepy: ...done in 0.00 s sfepy: describing geometries... sfepy: ...done in 0.01 s sfepy: using solvers: nls: newton ls: ls u no_penetration Walls (196,)
Traceback (most recent call last): File "./runTests.py", line 219, in <module> main() File "./runTests.py", line 207, in main stats = run_test( test_filename, options ) File "./runTests.py", line 111, in run_test ok, n_fail, n_total = test.run( options.debug ) File "/home/osman/SFE/sfepy/sfepy/base/testing.py", line 38, in run ret = test_method() File "tests/testsBasic.py", line 37, in test_input dpb, vec_dp, data = solve_stationary( self.test_conf, nls_status = status ) File "/home/osman/SFE/sfepy/sfepy/solvers/generic.py", line 57, in solve_stationary problem.time_update( None ) File "/home/osman/SFE/sfepy/sfepy/fem/problemDef.py", line 279, in time_update create_matrix ) File "/home/osman/SFE/sfepy/sfepy/fem/problemDef.py", line 230, in update_bc self.variables.setup_lcbc_operators( conf_lcbc, self.domain.regions ) File "/home/osman/SFE/sfepy/sfepy/fem/variables.py", line 443, in setup_lcbc_operators lcbc_op = var.create_lcbc_operators( bcs, regions, offset ) File "/home/osman/SFE/sfepy/sfepy/fem/variables.py", line 1390, in create_lcbc_operators n_dof, op_lc = create_lcbc_no_penetration( normals ) File "/home/osman/SFE/sfepy/sfepy/fem/variables.py", line 187, in create_lcbc_no_penetration op = sp.coo_matrix( (data, (rows, cols)), shape = (n_nod * dim, n_np_dof) ) TypeError: __init__() got an unexpected keyword argument 'shape' stargate:/home/osman/SFE/sfepy-bash->
I have ubuntu 8.04 64 bit, and have installed mayavi and mayavi2. They both work, but ./postproc.py output-tests/test_poisson.vtk does not: ./postproc.py output-tests/test_poisson.vtk Traceback (most recent call last): File "./postproc.py", line 38, in <module> main() File "./postproc.py", line 35, in main view(is_3d=options.is_3d, rel_scaling=options.rel_scaling) File "/home/osman/SFE/sfepy/sfepy/postprocess/viewer.py", line 61, in __call__ mlab.options.offscreen = self.offscreen enthought.traits.trait_errors.TraitError: Cannot set the undefined 'offscreen' attribute of a 'MayaviConfig' object.
Does it work when you comment that line (61) out? It is a feature that is in ets-3.1.0 (mayavi2 3.1.0).
No I had to comment out the next line then it failed again this time:
AttributeError: 'module' object has no attribute 'open' Now cannot even open the file!! So I quit.