New issue 163 by torsten....@gmail.com: Catch only ImportError where
sufficient
http://code.google.com/p/sfepy/issues/detail?id=163
In sfepy/postprocess/viewer.py, it should be:
try:
from enthought.traits.api \
import HasTraits, Instance, Button, Int, Bool, on_trait_change
...
except ImportError:
...
Alternatively, add some further exception classes. But currently, all
exceptions are caught. This can lead to misguiding tracebacks. In my
case, no X terminal was found, yet the interpreter reported an import error
(with one of the modules after the "except").
It must be "no X server" of cause.
Comment #2 on issue 163 by robert.c...@gmail.com: Catch only ImportError
where sufficient
http://code.google.com/p/sfepy/issues/detail?id=163
This try: clause is a workaround for incompatibility between mayavi 4.0.0
and 3.x.x. I have 4.0.0. and catching just ImportError works for me, so
it's in. Thanks!
Comment #3 on issue 163 by robert.c...@gmail.com: Catch only ImportError
where sufficient
http://code.google.com/p/sfepy/issues/detail?id=163#c3
Migrated to http://github.com/sfepy/sfepy/issues/165