Hi,
the script t.py runs fine for me with
mayavi2 -x t.py
while with
mayavi2 -x t.py -o
I get always the same error:
ERROR|2011-04-04 10:40:53,231|'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 "t.py", line 4, in <module>
print mayavi, mayavi.engine
AttributeError: 'MayaviOffscreen' object has no attribute 'engine'
<__main__.MayaviOffscreen object at 0xae4f4dc>
my mayavi version is:
mayavi2 -V
Mayavi 3.3.2
which looks to be the latest accessible via Synaptic on Ubuntu 10.10.
Please don't waste too much time on this, I can have my work done even
without the flag -o.
thank you,
giovanni
On Sat, 2011-04-02 at 11:50 +0530, Prabhu Ramachandran wrote:
> On Saturday 02 April 2011 12:01 AM, Giovanni Ghigliotti wrote:
> > 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'
>
> Hmm, what version of Mayavi is this? Can you try this:
>
> mayavi2 -V
>
> Also the script I attach works perfectly fine for me. Could you please
> check if it works for you?
>
> cheers,
> prabhu
------------------------------------------------------------------------------
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