Issue 163 in sfepy: Catch only ImportError where sufficient

2 views
Skip to first unread message

sf...@googlecode.com

unread,
Dec 21, 2011, 11:32:20 PM12/21/11
to sfepy-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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").


sf...@googlecode.com

unread,
Dec 21, 2011, 11:36:23 PM12/21/11
to sfepy-...@googlegroups.com

Comment #1 on issue 163 by torsten....@gmail.com: Catch only ImportError
where sufficient
http://code.google.com/p/sfepy/issues/detail?id=163

It must be "no X server" of cause.

sf...@googlecode.com

unread,
Dec 22, 2011, 6:27:20 AM12/22/11
to sfepy-...@googlegroups.com
Updates:
Status: Fixed

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!

sf...@googlecode.com

unread,
Jan 30, 2012, 8:35:55 AM1/30/12
to sfepy-...@googlegroups.com
Updates:
Status: Migrated

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

Reply all
Reply to author
Forward
0 new messages