Hi,
adding the two lines
  print mayavi
  print mayavi.engine
at the beginning of the script (run with mayavi2 -x script.py -o) gives:

<__main__.MayaviOffscreen object at 0xc0fd4dc>
ERROR|2011-04-01 11:30:24,454|'MayaviOffscreen' object has no attribute
'engine'
Traceback (most recent call last):
  File "/usr/bin/mayavi2", line 413, in run_script
    execfile(script_name, g, g)
  File "script.py", line 2, in <module>
    print mayavi.engine
AttributeError: 'MayaviOffscreen' object has no attribute 'engine'

thank you for helping!
   giovanni

On Fri, 2011-04-01 at 07:29 +0200, Gael Varoquaux wrote:
> On Thu, Mar 31, 2011 at 04:32:38PM -0700, Giovanni Ghigliotti wrote:
> > here there are more details on the fact that my script does not run with
> > the flag -o.
> > the command:
> >  mayavi2 -x script.py -o
> > gives:
> > ERROR|2011-03-31 12:34:48,079|'MayaviOffscreen' object has no attribute
> > 'new_scene'
> > Traceback (most recent call last):
> >   File "/usr/bin/mayavi2", line 413, in run_script
> >     execfile(script_name, g, g)
> >   File "script.py", line 1, in <module>
> >     mayavi.new_scene()
> > AttributeError: 'MayaviOffscreen' object has no attribute 'new_scene'
> 
> I must admit I don't understand: I cannot reproduce the problem. Can you
> add the following lines:
> 
> print mayavi
> print mayavi.engine
> 
> Gael


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to