Solved. Explanation below is for future reference, if someone will experience similar problem (as Massimo pointed it in a very gentle way, maybe not that obvious to an external reader, and this solution is applicable I guess to a very wide range of problems). *Solution: It is always worth updating web2py to a newest version. * I was a bit afraid it may screw something with my app, but I was SOOOO wrong! Problem existed in version 1.99 and magically (yeach, sure!) disappeared in 2.5.1. Thanks, Marian TAG: library problem, compatibility issues, environment variables, external library, matplotlib
On Wed, Jul 17, 2013 at 11:06 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/bNsGtWbV7AU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.