I do not have a mac build to test against and it looks like it is a VTK
problem.
Johan
On Wednesday January 11 2012 20:49:15 Ernesto Ismail wrote:
> The problem still persists and when running the provided code I get the
> error stream:
>
> #######
> ernesto@Woodchuck:fenics_code$ python poisson_modified.py
> Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
> Calling FFC just-in-time (JIT) compiler, this may take some time.
> Solving linear variational problem.
> Traceback (most recent call last):
> File "poisson_modified.py", line 31, in <module>
> plot(u, interactive=True)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/d
> olfin/common/plotting.py", line 121, in dolfin_plot return
> viper_dolfin.plot(make_viper_object(object, mesh=mesh), *args, **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 452, in plot fig = _plotter.plot(data,
> **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 401, in plot return self.autoplot(plot_object,
> *args, **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 415, in autoplot plotter = Viper(plot_object,
> *args, **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 60, in __init__ self.plot(data, *args,
> **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 85, in plot plot_method(data, *args, **kwargs)
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper_dolfin.py", line 165, in plot_genericfunction
> vmax=kwargs.get("vmax", None))
> File
> "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/v
> iper/viper.py", line 1299, in plot_xy renWin.SetSize(self.window_size)
> TypeError: function takes exactly 2 arguments (1 given)
>
> According to the Question linked above the error was solved in the
> current release of FEniCS. Despite this, I am running the most current
> release for OSX and the error persists. Is it possible that the .dmg
> file does not have the most up to date build of the plot function?
>
> Thanks for your efforts thus far,
>
> Ernesto
I do not have a mac build to test against and it looks like it is a VTK
problem.
Johan
On Wednesday January 11 2012 20:49:15 Ernesto Ismail wrote: Woodchuck: fenics_ code$ python poisson_modified.py modified. py", line 31, in <module> FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ d plotting. py", line 121, in dolfin_plot return plot(make_ viper_object( object, mesh=mesh), *args, **kwargs) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 452, in plot fig = _plotter.plot(data, FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 401, in plot return self.autoplot( plot_object, FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 415, in autoplot plotter = Viper(plot_object, FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 60, in __init__ self.plot(data, *args, FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 85, in plot plot_method(data, *args, **kwargs) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v dolfin. py", line 165, in plot_genericfun ction get("vmax" , None)) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ v SetSize( self.window_ size)
> The problem still persists and when running the provided code I get the
> error stream:
>
> #######
> ernesto@
> Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
> Calling FFC just-in-time (JIT) compiler, this may take some time.
> Solving linear variational problem.
> Traceback (most recent call last):
> File "poisson_
> plot(u, interactive=True)
> File
> "/Applications/
> olfin/common/
> viper_dolfin.
> File
> "/Applications/
> iper/viper_
> **kwargs)
> File
> "/Applications/
> iper/viper_
> *args, **kwargs)
> File
> "/Applications/
> iper/viper_
> *args, **kwargs)
> File
> "/Applications/
> iper/viper_
> **kwargs)
> File
> "/Applications/
> iper/viper_
> File
> "/Applications/
> iper/viper_
> vmax=kwargs.
> File
> "/Applications/
> iper/viper.py", line 1299, in plot_xy renWin.
> TypeError: function takes exactly 2 arguments (1 given)
>
> According to the Question linked above the error was solved in the
> current release of FEniCS. Despite this, I am running the most current
> release for OSX and the error persists. Is it possible that the .dmg
> file does not have the most up to date build of the plot function?
>
> Thanks for your efforts thus far,
>
> Ernesto