mayavi2 crashed with KeyError in _get_module()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mayavi2 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: mayavi2
1) Description: Ubuntu hardy (development branch)
Release: 8.04
2) mayavi2:
Installed: 2.0.2a1-4ubuntu2
Candidate: 2.0.2a1-4ubuntu2
Version table:
*** 2.0.2a1-4ubuntu2 0
500 http://
100 /var/lib/
The program crashes with the following error message when run:
Set Envisage to use the workbench UI: True
Set Envisage to use the workbench UI: True
Traceback (most recent call last):
File "/usr/bin/mayavi2", line 4, in <module>
mayavi2.main()
File "/usr/lib/
m.main(
File "/usr/lib/
app.start()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
definitions
File "/usr/lib/
definitions = self._get_
File "/usr/lib/
definition = value()
File "/usr/lib/
self.
File "/usr/lib/
module = self._get_module()
File "/usr/lib/
return sys.modules[
KeyError: 'envisage.
ProblemType: Crash
Architecture: i386
Date: Wed Apr 2 16:53:10 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.5
NonfreeKernelMo
Package: mayavi2 2.0.2a1-4ubuntu2
PackageArchitec
ProcCmdline: python /usr/bin/mayavi2
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_US.UTF-8
PythonArgs: ['/usr/
SourcePackage: mayavi2
Title: mayavi2 crashed with KeyError in _get_module()
Uname: Linux 2.6.24-12-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare scanner video
Changed in mayavi2: | |
importance: | Undecided → Medium |
status: | New → Fix Released |
> Can you try to access Mayavi functionnality throught ipython, for
> instance, run "ipython -wthread", and run the following commands:
> from enthought.mayavi import mlab contour3d( )
> mlab.test_
> You should see a window poping up, with 3 isosurfaces. You should be able
> to rotate the view with the mouse. Going to fullscreen yields a crash
> with the version you have.
I managed to import mlab with In [1]: from enthought. mayavi. tools import mlab as suggested here http:// gael-varoquaux. info/blog/ ?p=3
I get the following errors:
In [1]: from enthought. mayavi. tools import mlab
Set Envisage to use the workbench UI: True
Set Envisage to use the workbench UI: True
In [2]: mlab.test_ contour3d( ) ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- KeyError' > Traceback (most recent call last)
-------
<type 'exceptions.
/home/svetlin/ <ipython console> in <module>()
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/helper_ functions. py in test_contour3d()
358 scalars = x*x*0.5 + y*y + z*z*2.0
359
--> 360 obj = contour3d(scalars, contours=4, transparent=True)
361 return obj, scalars
362
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/helper_ functions. py in the_function(*args, **kwargs) pipeline( pipeline) :
28 def document_
29 def the_function(*args, **kwargs):
---> 30 return pipeline(*args, **kwargs)
31
32 if hasattr(pipeline, 'doc'):
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/helper_ functions. py in __call__(self, *args, **kwargs) kwargs( kwargs) function( *args, **kwargs)
59 the last object created by the pipeline."""
60 self.store_
---> 61 self.source = self._source_
62 # Copy the pipeline so as not to modify it for the next call
63 self.pipeline = self._pipeline[:]
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/sources. py in scalarfield(*args, **kwargs) add_data( data_source, name)
240
241 name = kwargs.pop('name', 'ScalarField')
--> 242 return tools._
243
244
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/tools. py in _add_data( tvtk_data, name) figure( ).add_source( d)
67 if len(name) > 0:
68 d.name = name
---> 69 _make_default_
70 return d
71
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/tools. py in _make_default_ figure( ) get_service( IMAYAVI)
42 application = get_application()
43 if application is None:
---> 44 fig = figure()
45 application = get_application()
46 mayavi = application.
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/tools. py in figure()
248 you! This returns the current running MayaVi script instance.
249 """
--> 250 mayavi = get_mayavi()
251 mayavi.new_scene()
252 view(40, 50)
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ tools/tools. py in get_mayavi()
240 return mayavi
241 m = Mayavi()
--> 242 m.main()
243 mayavi = m.script
244 return mayavi
/usr/lib/ python2. 5/site- packages/ enthought/ mayavi/ app.py in main(self, argv, pl...