Based on this: github.com/web2py/web2py
you are right
On Tuesday, 16 July 2013 14:21:51 UTC-5, Marian Siwiak wrote:
>
> Hi,
>
> I try to run a module starting with:
>
> def mymodule(*variables*):
> import matplotlib
> matplotlib.use('Agg')
> from pymol import *
>
> When I call it, I get error - piece of traceback is included below.
>
> File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 343, in figure
> **kwargs)
> File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py",
> line 80, in new_figure_manager
> window = Tk.Tk()
> File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
> self.tk = _tkinter.create(screenName, baseName, className, interactive,
> wantobjects, useTk, sync, use)
> TclError: no display name and no $DISPLAY environment variable
>
>
> Google says this tclerror usually means that tk tries to get interactive,
> but I thought matplotlib.use('Agg') should prevent that.
> Any advice?
> Thanks in advance.
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.