Hi,
I tried to install SfePy on my openSUSE 13.2 64bit machine. I had a hard time installing PyTables, but I could handle this by installing it using
/usr/bin/pip2.7 install tables
...after installing python-pip, hdf5-devel, python-devel and python-numpy-devel.
Everything else went smooth and SfePy compiled successfully. But most tests failed and importing in python did not work.
Importing in Python:
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sfepy.base.base import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sfepy.base.base
Test:
useraccount@linux:~/Programmes/sfepy> ./run_tests.py
<<< directory: tests, test files: 82
tests/test_assembling.py
--- test_assemble_matrix: failed!
--- test_assemble_matrix_complex: failed!
--- test_assemble_vector: failed!
--- test_assemble_vector_complex: failed!
tests/test_base.py
+++ test_resolve_deps: ok
+++ test_struct_add: ok
+++ test_struct_i_add: ok
+++ test_verbose_output: ok
tests/test_cmesh.py
--- test_cmesh_counts: failed!
tests/test_domain.py
--- test instance creation failed
tests/test_ebcs.py
--- test instance creation failed
tests/test_elasticity_small_strain.py
--- test_get_solution: failed!
--- test_linear_terms: failed!
tests/test_fem.py
--- test instance creation failed
tests/test_functions.py
--- test instance creation failed
tests/test_high_level.py
--- test instance creation failed
tests/test_homogenization_perfusion.py
--- test_solution: failed!
tests/test_hyperelastic_tlul.py
--- test_solution: failed!
tests/test_input_acoustics.py
--- test instance creation failed
tests/test_input_acoustics3d.py
--- test instance creation failed
tests/test_input_active_fibres.py
--- test instance creation failed
tests/test_input_biot.py
--- test instance creation failed
tests/test_input_biot_npbc.py
--- test instance creation failed
tests/test_input_biot_npbc_lagrange.py
--- test instance creation failed
tests/test_input_cube.py
--- test instance creation failed
tests/test_input_elastic_contact_planes.py
--- test instance creation failed
tests/test_input_elastic_contact_sphere.py
--- test instance creation failed
tests/test_input_elastic_shifted_periodic.py
--- test instance creation failed
tests/test_input_its2D_2.py
--- test instance creation failed
tests/test_input_laplace_coupling_lcbcs.py
--- test instance creation failed
tests/test_input_laplace_time_ebcs.py
--- test instance creation failed
tests/test_input_linear_elastic.py
--- test instance creation failed
tests/test_input_linear_elastic_damping.py
--- test instance creation failed
tests/test_input_linear_elastic_mM.py
--- test instance creation failed
tests/test_input_linear_elastic_probes.py
--- test instance creation failed
tests/test_input_linear_elastic_tractions.py
--- test instance creation failed
tests/test_input_linear_elastic_up.py
--- test instance creation failed
tests/test_input_linear_viscoelastic.py
--- test instance creation failed
tests/test_input_material_nonlinearity.py
--- test instance creation failed
tests/test_input_navier_stokes.py
--- test instance creation failed
tests/test_input_navier_stokes2d.py
--- test instance creation failed
tests/test_input_perfusion_tl.py
--- test instance creation failed
tests/test_input_piezo.py
--- test instance creation failed
tests/test_input_poisson.py
--- test instance creation failed
tests/test_input_poisson_field_dependent_material.py
--- test instance creation failed
tests/test_input_poisson_functions.py
--- test instance creation failed
tests/test_input_poisson_neumann.py
--- test instance creation failed
tests/test_input_poisson_periodic_boundary_condition.py
--- test instance creation failed
tests/test_input_prestress_fibres.py
--- test instance creation failed
tests/test_input_sinbc.py
--- test instance creation failed
tests/test_input_stabilized_navier_stokes.py
--- test instance creation failed
tests/test_input_stokes.py
--- test instance creation failed
tests/test_input_stokes_slip_bc.py
--- test instance creation failed
tests/test_input_thermo_elasticity.py
--- test instance creation failed
tests/test_input_thermo_elasticity_ess.py
--- test instance creation failed
tests/test_input_time_poisson.py
--- test instance creation failed
tests/test_input_vibro_acoustic3d.py
--- test instance creation failed
tests/test_io.py
+++ test_recursive_dict_hdf5: ok
+++ test_sparse_matrix_hdf5: ok
tests/test_laplace_unit_disk.py
--- test instance creation failed
tests/test_laplace_unit_square.py
--- test instance creation failed
tests/test_lcbc_2d.py
--- test_linear_rigid_body_bc: failed!
tests/test_lcbc_3d.py
--- test_linear_rigid_body_bc: failed!
tests/test_lcbcs.py
--- test_laplace_shifted_periodic: failed!
tests/test_linalg.py
--- test_assemble1d: failed!
--- test_geometry: failed!
--- test_tensors: failed!
--- test_unique_rows: failed!
tests/test_linear_solvers.py
--- test instance creation failed
tests/test_linearization.py
--- test_linearization: failed!
tests/test_matcoefs.py
+++ test_conversion_functions: ok
+++ test_elastic_constants: ok
+++ test_stiffness_tensors: ok
tests/test_mesh_generators.py
--- test_gen_block_mesh: failed!
--- test_gen_cylinder_mesh: failed!
--- test_gen_extended_block_mesh: failed!
tests/test_mesh_interp.py
--- test_interpolation: failed!
--- test_interpolation_two_meshes: failed!
--- test_invariance: failed!
--- test_invariance_qp: failed!
tests/test_mesh_smoothing.py
--- test_mesh_smoothing: failed!
tests/test_meshio.py
--- test instance creation failed
tests/test_msm_laplace.py
--- test instance creation failed
tests/test_msm_symbolic.py
--- test instance creation failed
tests/test_normals.py
--- test_normals: failed!
tests/test_parsing.py
--- test_parse_equations: failed!
--- test_parse_regions: failed!
tests/test_periodic_bc_2d.py
--- test instance creation failed
tests/test_periodic_bc_3d.py
--- test instance creation failed
tests/test_permutations.py
--- test_rcm: failed!
tests/test_poly_spaces.py
--- test instance creation failed
tests/test_projections.py
--- test instance creation failed
tests/test_quadratures.py
--- test_quadratures: failed!
--- test_weight_consistency: failed!
tests/test_regions.py
--- test instance creation failed
tests/test_semismooth_newton.py
--- test_semismooth_newton: failed!
tests/test_sparse.py
--- test_compose_sparse: failed!
tests/test_tensors.py
--- test_stress_transform: failed!
--- test_tensors: failed!
--- test_transform_data: failed!
--- test_transform_data4: failed!
tests/test_term_call_modes.py
--- test instance creation failed
tests/test_term_consistency.py
--- test instance creation failed
tests/test_units.py
+++ test_consistent_sets: ok
+++ test_units: ok
tests/test_volume.py
--- test instance creation failed
82 test file(s) executed in 0.46 s, 95 failure(s) of 106 test(s)
Test debug for test_term_consistency.py:
useraccount@linux:~/Programmes/sfepy> python run_tests.py --debug tests/test_term_consistency.py
<<< directory: tests, test files: 1
<<< tests/test_term_consistency.py
sfepy: left over: ['verbose', '__builtins__', '_integrate', 'test_terms', '__doc__', '__name__', 'get_pars', 'TestCommon', 'dim', 'data_dir', 'nm', '__package__', '_filename', '__file__']
--- test instance creation failed
Traceback (most recent call last):
File "run_tests.py", line 206, in <module>
main()
File "run_tests.py", line 197, in main
run_tests(stats, dirname, [filename])
File "run_tests.py", line 131, in run_tests
n_fail, n_total, test_time = run_test(conf_name, options)
File "run_tests.py", line 83, in run_test
test = conf.funmod.Test.from_conf(conf, options)
File "/home/sergeetienne/Programmes/sfepy/tests/test_term_consistency.py", line 94, in from_conf
from sfepy.discrete import Problem
File "/home/sergeetienne/Programmes/sfepy/sfepy/discrete/__init__.py", line 8, in <module>
from variables import Variables, Variable, FieldVariable, create_adof_conns
File "/home/sergeetienne/Programmes/sfepy/sfepy/discrete/variables.py", line 12, in <module>
import sfepy.linalg as la
File "/home/sergeetienne/Programmes/sfepy/sfepy/linalg/__init__.py", line 1, in <module>
from extmods.crcm import rcm, permute_in_place
ImportError: No module named crcm