Hello,
I am trying to use sfepy instead of comsol, and I have some issues with the installation. The sfepy website recommend to post the output of the failed test ran in debug mode here, so that's what I'm trying to do.
I am using a mac OS 10.13.4, with Python 3.6.4. A lot of tests are failing, the first one is assembling, so when I run:
python3 run_tests.py --debug tests/test_assembling.py
Here is the output:
<<< directory: tests, test files: 1 <<< [1] tests/test_assembling.py [1] sfepy: left over: ['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', '__cached__', '__builtins__', 'absolute_import', 'nm', 'sps', 'TestCommon', 'verbose', '_filename']
test instance prepared (4 test(s)) <class 'ModuleNotFoundError'>
ModuleNotFoundError Traceback (most recent call last) ~/sfepy/run_tests.py in <module>() 232 233 if __name__ == '__main__': --> 234 sys.exit(main()) global sys.exit = <built-in function exit> global main = <function main at 0x10a41fea0>
~/sfepy/run_tests.py in main() 221 for test_filename in options.test_filename: 222 dirname, filename = op.split(test_filename) --> 223 run_tests(stats, dirname, [filename]) run_tests = <function wrap_run_tests.<locals>.run_tests at 0x10996aea0> stats = [0, 0, 0, 0.0] dirname = 'tests' filename = 'test_assembling.py' 224 else: 225 for dirpath, dirnames, filenames in os.walk(options.test_dir):
~/sfepy/run_tests.py in run_tests(stats=[0, 0, 0, 0.0], dir_name='tests', filenames=['test_assembling.py']) 142 143 n_fail, n_total, test_time = run_test(conf_name, options, --> 144 stats[0] + 1) stats = [0, 0, 0, 0.0] 145 146 stats[0] += 1
~/sfepy/run_tests.py in run_test(conf_name='tests/test_assembling.py', options=Namespace(debug=True, filter_less=False, filter_...sts', test_filename=['tests/test_assembling.py']), ifile=1) 106 output.set_output_prefix(orig_prefix) 107 ok, n_fail, n_total = test.run(debug=options.raise_on_error, --> 108 ifile=ifile) ifile = 1 109 output.set_output_prefix('[%d] %s' % (ifile, orig_prefix)) 110 test_time = time.clock() - tt
~/sfepy/sfepy/base/testing.py in run(self=Test, debug=True, ifile=1) 65 66 try: ---> 67 ret = test_method() ret = undefined test_method = <bound method Test.test_assemble_matrix of Test> 68 except: 69 if debug:
~/sfepy/tests/test_assembling.py in test_assemble_matrix(self=Test) 62 63 def test_assemble_matrix(self): ---> 64 from sfepy.discrete.common.extmods.assemble import assemble_matrix global sfepy.discrete.common.extmods.assemble = undefined assemble_matrix = undefined 65 66 mtx = sps.csr_matrix(nm.ones((self.num, self.num),
~/sfepy/sfepy/discrete/__init__.py in <module>() 7 from .functions import Functions, Function 8 from .conditions import Conditions ----> 9 from .variables import Variables, Variable, FieldVariable, create_adof_conns global variables = undefined global Variables = undefined global Variable = undefined global FieldVariable = undefined global create_adof_conns = undefined 10 from .materials import Materials, Material 11 from .equations import Equations, Equation
~/sfepy/sfepy/discrete/variables.py in <module>() 12 output, OneTypeList, Container, Struct, basestr, 13 iter_dict_of_lists) ---> 14 import sfepy.linalg as la global sfepy.linalg = undefined global la = undefined 15 from sfepy.discrete.functions import Function 16 from sfepy.discrete.conditions import get_condition_value
~/sfepy/sfepy/linalg/__init__.py in <module>() 1 from __future__ import absolute_import ----> 2 from .extmods.crcm import rcm, permute_in_place global extmods.crcm = undefined global rcm = undefined global permute_in_place = undefined 3 from .sparse import * 4 from .utils import * 5 from .geometry import *
ModuleNotFoundError: No module named 'sfepy.linalg.extmods.crcm'
/Users/jeff/sfepy/sfepy/linalg/__init__.py(2)<module>() 1 from __future__ import absolute_import ----> 2 from .extmods.crcm import rcm, permute_in_place 3 from .sparse import * 4 from .utils import * 5 from .geometry import *
ipdb>
Thank you in advance for any help provided.