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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to