Kindly, I seem to have a problem with visualizations. I was wondering of it has to do with mayavi2 package? I had a problem installing it because the installation directory is system-owned, to which I don't have administrative access. So I installed the ets toolkit. This has the latest version of mayavi but it imports as mayavi not mayavi2 but that shouldn't be a problem? Here's what I get:
./postproc.py cylinder.vtk Traceback (most recent call last): File "./postproc.py", line 51, in <module> from sfepy.postprocess.viewer import (Viewer, get_data_ranges, File "/home/gmh/sfepy/sfepy/postprocess/viewer.py", line 19, in <module> from traitsui.api \ File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/api.py", line 36, in <module> from .editors.api import ArrayEditor File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/editors/__init__.py", line 23, in <module> from .api import ArrayEditor File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/editors/api.py", line 24, in <module> from .code_editor import CodeEditor File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/editors/code_editor.py", line 36, in <module> class ToolkitEditorFactory ( EditorFactory ): File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/editors/code_editor.py", line 48, in ToolkitEditorFactory mark_color = Color( 0xECE9D8 ) File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traits/traits.py", line 489, in __call__ return self.maker_function( args, **metadata ) File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traits/traits.py", line 1203, in Color return ColorTrait( args, metadata ) File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/toolkit_traits.py", line 7, in ColorTrait return toolkit().color_trait( *args, traits ) File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traitsui/toolkit.py", line 125, in toolkit ETSConfig.toolkit = toolkit_name File "/opt/ioa/software/python/2.7.8/lib/python2.7/site-packages/traits/etsconfig/etsconfig.py", line 213, in _set_toolkit "already been set to %s" % (toolkit, self._toolkit) ValueError: cannot set toolkit to wx because it has already been set to qt4
Many thanks in advance
On Monday, December 14, 2015 at 3:19:38 PM UTC, Nina Halabi wrote: >
Dear Robert Thanks for getting back to me. Yes the other tests work perfectly well. Thanks again Cheers
On Thursday, December 10, 2015 at 2:46:59 PM UTC, Robert Cimrman wrote: >
On 12/09/2015 03:42 PM, Nina Halabi wrote:
Kindly , I'm trying to install SfePy on a redhat linux workstation.
I was running the python tests and test_linear_solvers.py failed. the command: python run_tests.py --debug tests/test_linear_solvers.py gave the below.
Please note that I got the message "mpi4py (optional) is available in version 1.3, but >= 1.3.1 is needed; you may get run-time errors" during compilation.
You need to worry about this only when using petsc solvers in parallel. But it might work anyway.
gmh@calx039$ python run_tests.py --debug tests/test_linear_solvers.py
... condition: 0, err0: 3.588e+00, err: 3.550e-12 ... solution times (rezidual norms): ... 0.05 [s] (3.288e-12) : i20 ls.scipy_iterative cg ... 0.07 [s] (2.835e-12) : i21 ls.scipy_iterative bicgstab ... 0.09 [s] (2.428e-12) : i10 ls.petsc cg icc ... 0.11 [s] (3.550e-12) : i22 ls.scipy_iterative qmr ... 1.34 [s] (1.554e-14) : d01 ls.scipy_direct superlu ... 1.49 [s] (4.898e-15) : d00 ls.scipy_direct umfpack ... 10000000000.00 [s] (1.000e+10) : i00 ls.pyamg ruge_stuben_solver ... 10000000000.00 [s] (1.000e+10) : i01 ls.pyamg smoothed_aggregation_solver +++ test_solvers: ok
all passed in 5.02 s 1 test file(s) executed in 5.02 s, 0 failure(s) of 1 test(s) WARNING! There are options you set that were not used! WARNING! could be spelling mistake, etc! Option left: name:-sub_pc_type (no value) gmh@calx039$
It is just a warning, the test passed. It seems that the petsc solvers work ok despite the warning.
The other tests worked correctly?